/var/runtime/node_modules/@aws-sdk/client-shield/dist-cjs
This explorer reads the filesystem of the server it runs on, so /workspace/user isn't present here. Browsing and the terminal still work against this server's own disk from /.
"use strict";var __defProp = Object.defineProperty;var __getOwnPropDesc = Object.getOwnPropertyDescriptor;var __getOwnPropNames = Object.getOwnPropertyNames;var __hasOwnProp = Object.prototype.hasOwnProperty;var __name = (target, value) => __defProp(target, "name", { value, configurable: true });var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true });};var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to;};var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); // src/index.tsvar index_exports = {};__export(index_exports, { AccessDeniedException: () => AccessDeniedException, AccessDeniedForDependencyException: () => AccessDeniedForDependencyException, ApplicationLayerAutomaticResponseStatus: () => ApplicationLayerAutomaticResponseStatus, AssociateDRTLogBucketCommand: () => AssociateDRTLogBucketCommand, AssociateDRTRoleCommand: () => AssociateDRTRoleCommand, AssociateHealthCheckCommand: () => AssociateHealthCheckCommand, AssociateProactiveEngagementDetailsCommand: () => AssociateProactiveEngagementDetailsCommand, AttackLayer: () => AttackLayer, AttackPropertyIdentifier: () => AttackPropertyIdentifier, AutoRenew: () => AutoRenew, CreateProtectionCommand: () => CreateProtectionCommand, CreateProtectionGroupCommand: () => CreateProtectionGroupCommand, CreateSubscriptionCommand: () => CreateSubscriptionCommand, DeleteProtectionCommand: () => DeleteProtectionCommand, DeleteProtectionGroupCommand: () => DeleteProtectionGroupCommand, DeleteSubscriptionCommand: () => DeleteSubscriptionCommand, DescribeAttackCommand: () => DescribeAttackCommand, DescribeAttackStatisticsCommand: () => DescribeAttackStatisticsCommand, DescribeDRTAccessCommand: () => DescribeDRTAccessCommand, DescribeEmergencyContactSettingsCommand: () => DescribeEmergencyContactSettingsCommand, DescribeProtectionCommand: () => DescribeProtectionCommand, DescribeProtectionGroupCommand: () => DescribeProtectionGroupCommand, DescribeSubscriptionCommand: () => DescribeSubscriptionCommand, DisableApplicationLayerAutomaticResponseCommand: () => DisableApplicationLayerAutomaticResponseCommand, DisableProactiveEngagementCommand: () => DisableProactiveEngagementCommand, DisassociateDRTLogBucketCommand: () => DisassociateDRTLogBucketCommand, DisassociateDRTRoleCommand: () => DisassociateDRTRoleCommand, DisassociateHealthCheckCommand: () => DisassociateHealthCheckCommand, EnableApplicationLayerAutomaticResponseCommand: () => EnableApplicationLayerAutomaticResponseCommand, EnableProactiveEngagementCommand: () => EnableProactiveEngagementCommand, GetSubscriptionStateCommand: () => GetSubscriptionStateCommand, InternalErrorException: () => InternalErrorException, InvalidOperationException: () => InvalidOperationException, InvalidPaginationTokenException: () => InvalidPaginationTokenException, InvalidParameterException: () => InvalidParameterException, InvalidResourceException: () => InvalidResourceException, LimitsExceededException: () => LimitsExceededException, ListAttacksCommand: () => ListAttacksCommand, ListProtectionGroupsCommand: () => ListProtectionGroupsCommand, ListProtectionsCommand: () => ListProtectionsCommand, ListResourcesInProtectionGroupCommand: () => ListResourcesInProtectionGroupCommand, ListTagsForResourceCommand: () => ListTagsForResourceCommand, LockedSubscriptionException: () => LockedSubscriptionException, NoAssociatedRoleException: () => NoAssociatedRoleException, OptimisticLockException: () => OptimisticLockException, ProactiveEngagementStatus: () => ProactiveEngagementStatus, ProtectedResourceType: () => ProtectedResourceType, ProtectionGroupAggregation: () => ProtectionGroupAggregation, ProtectionGroupPattern: () => ProtectionGroupPattern, ResourceAlreadyExistsException: () => ResourceAlreadyExistsException, ResourceNotFoundException: () => ResourceNotFoundException, Shield: () => Shield, ShieldClient: () => ShieldClient, ShieldServiceException: () => ShieldServiceException, SubResourceType: () => SubResourceType, SubscriptionState: () => SubscriptionState, TagResourceCommand: () => TagResourceCommand, Unit: () => Unit, UntagResourceCommand: () => UntagResourceCommand, UpdateApplicationLayerAutomaticResponseCommand: () => UpdateApplicationLayerAutomaticResponseCommand, UpdateEmergencyContactSettingsCommand: () => UpdateEmergencyContactSettingsCommand, UpdateProtectionGroupCommand: () => UpdateProtectionGroupCommand, UpdateSubscriptionCommand: () => UpdateSubscriptionCommand, ValidationExceptionReason: () => ValidationExceptionReason, __Client: () => import_smithy_client.Client, paginateListAttacks: () => paginateListAttacks, paginateListProtectionGroups: () => paginateListProtectionGroups, paginateListProtections: () => paginateListProtections, paginateListResourcesInProtectionGroup: () => paginateListResourcesInProtectionGroup});module.exports = __toCommonJS(index_exports); // src/ShieldClient.tsvar import_middleware_host_header = require("@aws-sdk/middleware-host-header");var import_middleware_logger = require("@aws-sdk/middleware-logger");var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");var import_config_resolver = require("@smithy/config-resolver");var import_core = require("@smithy/core");var import_middleware_content_length = require("@smithy/middleware-content-length");var import_middleware_endpoint = require("@smithy/middleware-endpoint");var import_middleware_retry = require("@smithy/middleware-retry"); var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider"); // src/endpoint/EndpointParameters.tsvar resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => { return Object.assign(options, { useDualstackEndpoint: options.useDualstackEndpoint ?? false, useFipsEndpoint: options.useFipsEndpoint ?? false, defaultSigningName: "shield" });}, "resolveClientEndpointParameters");var commonParams = { UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, Endpoint: { type: "builtInParams", name: "endpoint" }, Region: { type: "builtInParams", name: "region" }, UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }}; // src/ShieldClient.tsvar import_runtimeConfig = require("././runtimeConfig"); // src/runtimeExtensions.tsvar import_region_config_resolver = require("@aws-sdk/region-config-resolver");var import_protocol_http = require("@smithy/protocol-http");var import_smithy_client = require("@smithy/smithy-client"); // src/auth/httpAuthExtensionConfiguration.tsvar getHttpAuthExtensionConfiguration = /* @__PURE__ */ __name((runtimeConfig) => { const _httpAuthSchemes = runtimeConfig.httpAuthSchemes; let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider; let _credentials = runtimeConfig.credentials; return { setHttpAuthScheme(httpAuthScheme) { const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId); if (index === -1) { _httpAuthSchemes.push(httpAuthScheme); } else { _httpAuthSchemes.splice(index, 1, httpAuthScheme); } }, httpAuthSchemes() { return _httpAuthSchemes; }, setHttpAuthSchemeProvider(httpAuthSchemeProvider) { _httpAuthSchemeProvider = httpAuthSchemeProvider; }, httpAuthSchemeProvider() { return _httpAuthSchemeProvider; }, setCredentials(credentials) { _credentials = credentials; }, credentials() { return _credentials; } };}, "getHttpAuthExtensionConfiguration");var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => { return { httpAuthSchemes: config.httpAuthSchemes(), httpAuthSchemeProvider: config.httpAuthSchemeProvider(), credentials: config.credentials() };}, "resolveHttpAuthRuntimeConfig"); // src/runtimeExtensions.tsvar resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => { const extensionConfiguration = Object.assign( (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig), (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig), (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig) ); extensions.forEach((extension) => extension.configure(extensionConfiguration)); return Object.assign( runtimeConfig, (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration), (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration) );}, "resolveRuntimeExtensions"); // src/ShieldClient.tsvar ShieldClient = class extends import_smithy_client.Client { static { __name(this, "ShieldClient"); } /** * The resolved configuration of ShieldClient class. This is resolved and normalized from the {@link ShieldClientConfig | constructor configuration interface}. */ config; constructor(...[configuration]) { const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {}); super(_config_0); this.initConfig = _config_0; const _config_1 = resolveClientEndpointParameters(_config_0); const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1); const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2); const _config_4 = (0, import_config_resolver.resolveRegionConfig)(_config_3); const _config_5 = (0, import_middleware_host_header.resolveHostHeaderConfig)(_config_4); const _config_6 = (0, import_middleware_endpoint.resolveEndpointConfig)(_config_5); const _config_7 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_6); const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); this.config = _config_8; this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config)); this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config)); this.middlewareStack.use( (0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, { httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultShieldHttpAuthSchemeParametersProvider, identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({ "aws.auth#sigv4": config.credentials }), "identityProviderConfigProvider") }) ); this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config)); } /** * Destroy underlying resources, like sockets. It's usually not necessary to do this. * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. * Otherwise, sockets might stay open for quite a long time before the server terminates them. */ destroy() { super.destroy(); }}; // src/Shield.ts // src/commands/AssociateDRTLogBucketCommand.ts var import_middleware_serde = require("@smithy/middleware-serde"); // src/protocols/Aws_json1_1.tsvar import_core2 = require("@aws-sdk/core"); // src/models/ShieldServiceException.ts var ShieldServiceException = class _ShieldServiceException extends import_smithy_client.ServiceException { static { __name(this, "ShieldServiceException"); } /** * @internal */ constructor(options) { super(options); Object.setPrototypeOf(this, _ShieldServiceException.prototype); }}; // src/models/models_0.tsvar AccessDeniedException = class _AccessDeniedException extends ShieldServiceException { static { __name(this, "AccessDeniedException"); } name = "AccessDeniedException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "AccessDeniedException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _AccessDeniedException.prototype); }};var AccessDeniedForDependencyException = class _AccessDeniedForDependencyException extends ShieldServiceException { static { __name(this, "AccessDeniedForDependencyException"); } name = "AccessDeniedForDependencyException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "AccessDeniedForDependencyException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _AccessDeniedForDependencyException.prototype); }};var ApplicationLayerAutomaticResponseStatus = { DISABLED: "DISABLED", ENABLED: "ENABLED"};var InternalErrorException = class _InternalErrorException extends ShieldServiceException { static { __name(this, "InternalErrorException"); } name = "InternalErrorException"; $fault = "server"; /** * @internal */ constructor(opts) { super({ name: "InternalErrorException", $fault: "server", ...opts }); Object.setPrototypeOf(this, _InternalErrorException.prototype); }};var InvalidOperationException = class _InvalidOperationException extends ShieldServiceException { static { __name(this, "InvalidOperationException"); } name = "InvalidOperationException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "InvalidOperationException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidOperationException.prototype); }};var ValidationExceptionReason = { FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED", OTHER: "OTHER"};var InvalidParameterException = class _InvalidParameterException extends ShieldServiceException { static { __name(this, "InvalidParameterException"); } name = "InvalidParameterException"; $fault = "client"; /** * <p>Additional information about the exception.</p> * @public */ reason; /** * <p>Fields that caused the exception.</p> * @public */ fields; /** * @internal */ constructor(opts) { super({ name: "InvalidParameterException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidParameterException.prototype); this.reason = opts.reason; this.fields = opts.fields; }};var LimitsExceededException = class _LimitsExceededException extends ShieldServiceException { static { __name(this, "LimitsExceededException"); } name = "LimitsExceededException"; $fault = "client"; /** * <p>The type of limit that would be exceeded.</p> * @public */ Type; /** * <p>The threshold that would be exceeded.</p> * @public */ Limit; /** * @internal */ constructor(opts) { super({ name: "LimitsExceededException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _LimitsExceededException.prototype); this.Type = opts.Type; this.Limit = opts.Limit; }};var NoAssociatedRoleException = class _NoAssociatedRoleException extends ShieldServiceException { static { __name(this, "NoAssociatedRoleException"); } name = "NoAssociatedRoleException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "NoAssociatedRoleException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _NoAssociatedRoleException.prototype); }};var OptimisticLockException = class _OptimisticLockException extends ShieldServiceException { static { __name(this, "OptimisticLockException"); } name = "OptimisticLockException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "OptimisticLockException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _OptimisticLockException.prototype); }};var ResourceNotFoundException = class _ResourceNotFoundException extends ShieldServiceException { static { __name(this, "ResourceNotFoundException"); } name = "ResourceNotFoundException"; $fault = "client"; /** * <p>Type of resource.</p> * @public */ resourceType; /** * @internal */ constructor(opts) { super({ name: "ResourceNotFoundException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ResourceNotFoundException.prototype); this.resourceType = opts.resourceType; }};var InvalidResourceException = class _InvalidResourceException extends ShieldServiceException { static { __name(this, "InvalidResourceException"); } name = "InvalidResourceException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "InvalidResourceException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidResourceException.prototype); }};var AttackLayer = { APPLICATION: "APPLICATION", NETWORK: "NETWORK"};var AttackPropertyIdentifier = { DESTINATION_URL: "DESTINATION_URL", REFERRER: "REFERRER", SOURCE_ASN: "SOURCE_ASN", SOURCE_COUNTRY: "SOURCE_COUNTRY", SOURCE_IP_ADDRESS: "SOURCE_IP_ADDRESS", SOURCE_USER_AGENT: "SOURCE_USER_AGENT", WORDPRESS_PINGBACK_REFLECTOR: "WORDPRESS_PINGBACK_REFLECTOR", WORDPRESS_PINGBACK_SOURCE: "WORDPRESS_PINGBACK_SOURCE"};var Unit = { BITS: "BITS", BYTES: "BYTES", PACKETS: "PACKETS", REQUESTS: "REQUESTS"};var SubResourceType = { IP: "IP", URL: "URL"};var AutoRenew = { DISABLED: "DISABLED", ENABLED: "ENABLED"};var ResourceAlreadyExistsException = class _ResourceAlreadyExistsException extends ShieldServiceException { static { __name(this, "ResourceAlreadyExistsException"); } name = "ResourceAlreadyExistsException"; $fault = "client"; /** * <p>The type of resource that already exists.</p> * @public */ resourceType; /** * @internal */ constructor(opts) { super({ name: "ResourceAlreadyExistsException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _ResourceAlreadyExistsException.prototype); this.resourceType = opts.resourceType; }};var ProtectionGroupAggregation = { MAX: "MAX", MEAN: "MEAN", SUM: "SUM"};var ProtectionGroupPattern = { ALL: "ALL", ARBITRARY: "ARBITRARY", BY_RESOURCE_TYPE: "BY_RESOURCE_TYPE"};var ProtectedResourceType = { APPLICATION_LOAD_BALANCER: "APPLICATION_LOAD_BALANCER", CLASSIC_LOAD_BALANCER: "CLASSIC_LOAD_BALANCER", CLOUDFRONT_DISTRIBUTION: "CLOUDFRONT_DISTRIBUTION", ELASTIC_IP_ALLOCATION: "ELASTIC_IP_ALLOCATION", GLOBAL_ACCELERATOR: "GLOBAL_ACCELERATOR", ROUTE_53_HOSTED_ZONE: "ROUTE_53_HOSTED_ZONE"};var LockedSubscriptionException = class _LockedSubscriptionException extends ShieldServiceException { static { __name(this, "LockedSubscriptionException"); } name = "LockedSubscriptionException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "LockedSubscriptionException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _LockedSubscriptionException.prototype); }};var ProactiveEngagementStatus = { DISABLED: "DISABLED", ENABLED: "ENABLED", PENDING: "PENDING"};var SubscriptionState = { ACTIVE: "ACTIVE", INACTIVE: "INACTIVE"};var InvalidPaginationTokenException = class _InvalidPaginationTokenException extends ShieldServiceException { static { __name(this, "InvalidPaginationTokenException"); } name = "InvalidPaginationTokenException"; $fault = "client"; /** * @internal */ constructor(opts) { super({ name: "InvalidPaginationTokenException", $fault: "client", ...opts }); Object.setPrototypeOf(this, _InvalidPaginationTokenException.prototype); }}; // src/protocols/Aws_json1_1.tsvar se_AssociateDRTLogBucketCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("AssociateDRTLogBucket"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_AssociateDRTLogBucketCommand");var se_AssociateDRTRoleCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("AssociateDRTRole"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_AssociateDRTRoleCommand");var se_AssociateHealthCheckCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("AssociateHealthCheck"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_AssociateHealthCheckCommand");var se_AssociateProactiveEngagementDetailsCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("AssociateProactiveEngagementDetails"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_AssociateProactiveEngagementDetailsCommand");var se_CreateProtectionCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("CreateProtection"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_CreateProtectionCommand");var se_CreateProtectionGroupCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("CreateProtectionGroup"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_CreateProtectionGroupCommand");var se_CreateSubscriptionCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("CreateSubscription"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_CreateSubscriptionCommand");var se_DeleteProtectionCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("DeleteProtection"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_DeleteProtectionCommand");var se_DeleteProtectionGroupCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("DeleteProtectionGroup"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_DeleteProtectionGroupCommand");var se_DeleteSubscriptionCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("DeleteSubscription"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_DeleteSubscriptionCommand");var se_DescribeAttackCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("DescribeAttack"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_DescribeAttackCommand");var se_DescribeAttackStatisticsCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("DescribeAttackStatistics"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_DescribeAttackStatisticsCommand");var se_DescribeDRTAccessCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("DescribeDRTAccess"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_DescribeDRTAccessCommand");var se_DescribeEmergencyContactSettingsCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("DescribeEmergencyContactSettings"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_DescribeEmergencyContactSettingsCommand");var se_DescribeProtectionCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("DescribeProtection"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_DescribeProtectionCommand");var se_DescribeProtectionGroupCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("DescribeProtectionGroup"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_DescribeProtectionGroupCommand");var se_DescribeSubscriptionCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("DescribeSubscription"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_DescribeSubscriptionCommand");var se_DisableApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("DisableApplicationLayerAutomaticResponse"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_DisableApplicationLayerAutomaticResponseCommand");var se_DisableProactiveEngagementCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("DisableProactiveEngagement"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_DisableProactiveEngagementCommand");var se_DisassociateDRTLogBucketCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("DisassociateDRTLogBucket"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_DisassociateDRTLogBucketCommand");var se_DisassociateDRTRoleCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("DisassociateDRTRole"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_DisassociateDRTRoleCommand");var se_DisassociateHealthCheckCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("DisassociateHealthCheck"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_DisassociateHealthCheckCommand");var se_EnableApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("EnableApplicationLayerAutomaticResponse"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_EnableApplicationLayerAutomaticResponseCommand");var se_EnableProactiveEngagementCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("EnableProactiveEngagement"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_EnableProactiveEngagementCommand");var se_GetSubscriptionStateCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("GetSubscriptionState"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_GetSubscriptionStateCommand");var se_ListAttacksCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("ListAttacks"); let body; body = JSON.stringify(se_ListAttacksRequest(input, context)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_ListAttacksCommand");var se_ListProtectionGroupsCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("ListProtectionGroups"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_ListProtectionGroupsCommand");var se_ListProtectionsCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("ListProtections"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_ListProtectionsCommand");var se_ListResourcesInProtectionGroupCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("ListResourcesInProtectionGroup"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_ListResourcesInProtectionGroupCommand");var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("ListTagsForResource"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_ListTagsForResourceCommand");var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("TagResource"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_TagResourceCommand");var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("UntagResource"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_UntagResourceCommand");var se_UpdateApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("UpdateApplicationLayerAutomaticResponse"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_UpdateApplicationLayerAutomaticResponseCommand");var se_UpdateEmergencyContactSettingsCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("UpdateEmergencyContactSettings"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_UpdateEmergencyContactSettingsCommand");var se_UpdateProtectionGroupCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("UpdateProtectionGroup"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_UpdateProtectionGroupCommand");var se_UpdateSubscriptionCommand = /* @__PURE__ */ __name(async (input, context) => { const headers = sharedHeaders("UpdateSubscription"); let body; body = JSON.stringify((0, import_smithy_client._json)(input)); return buildHttpRpcRequest(context, headers, "/", void 0, body);}, "se_UpdateSubscriptionCommand");var de_AssociateDRTLogBucketCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_AssociateDRTLogBucketCommand");var de_AssociateDRTRoleCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_AssociateDRTRoleCommand");var de_AssociateHealthCheckCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_AssociateHealthCheckCommand");var de_AssociateProactiveEngagementDetailsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_AssociateProactiveEngagementDetailsCommand");var de_CreateProtectionCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_CreateProtectionCommand");var de_CreateProtectionGroupCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_CreateProtectionGroupCommand");var de_CreateSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_CreateSubscriptionCommand");var de_DeleteProtectionCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_DeleteProtectionCommand");var de_DeleteProtectionGroupCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_DeleteProtectionGroupCommand");var de_DeleteSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_DeleteSubscriptionCommand");var de_DescribeAttackCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = de_DescribeAttackResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_DescribeAttackCommand");var de_DescribeAttackStatisticsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = de_DescribeAttackStatisticsResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_DescribeAttackStatisticsCommand");var de_DescribeDRTAccessCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_DescribeDRTAccessCommand");var de_DescribeEmergencyContactSettingsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_DescribeEmergencyContactSettingsCommand");var de_DescribeProtectionCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_DescribeProtectionCommand");var de_DescribeProtectionGroupCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_DescribeProtectionGroupCommand");var de_DescribeSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = de_DescribeSubscriptionResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_DescribeSubscriptionCommand");var de_DisableApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_DisableApplicationLayerAutomaticResponseCommand");var de_DisableProactiveEngagementCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_DisableProactiveEngagementCommand");var de_DisassociateDRTLogBucketCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_DisassociateDRTLogBucketCommand");var de_DisassociateDRTRoleCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_DisassociateDRTRoleCommand");var de_DisassociateHealthCheckCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_DisassociateHealthCheckCommand");var de_EnableApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_EnableApplicationLayerAutomaticResponseCommand");var de_EnableProactiveEngagementCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_EnableProactiveEngagementCommand");var de_GetSubscriptionStateCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_GetSubscriptionStateCommand");var de_ListAttacksCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = de_ListAttacksResponse(data, context); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_ListAttacksCommand");var de_ListProtectionGroupsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_ListProtectionGroupsCommand");var de_ListProtectionsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_ListProtectionsCommand");var de_ListResourcesInProtectionGroupCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_ListResourcesInProtectionGroupCommand");var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_ListTagsForResourceCommand");var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_TagResourceCommand");var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_UntagResourceCommand");var de_UpdateApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_UpdateApplicationLayerAutomaticResponseCommand");var de_UpdateEmergencyContactSettingsCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_UpdateEmergencyContactSettingsCommand");var de_UpdateProtectionGroupCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_UpdateProtectionGroupCommand");var de_UpdateSubscriptionCommand = /* @__PURE__ */ __name(async (output, context) => { if (output.statusCode >= 300) { return de_CommandError(output, context); } const data = await (0, import_core2.parseJsonBody)(output.body, context); let contents = {}; contents = (0, import_smithy_client._json)(data); const response = { $metadata: deserializeMetadata(output), ...contents }; return response;}, "de_UpdateSubscriptionCommand");var de_CommandError = /* @__PURE__ */ __name(async (output, context) => { const parsedOutput = { ...output, body: await (0, import_core2.parseJsonErrorBody)(output.body, context) }; const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body); switch (errorCode) { case "AccessDeniedForDependencyException": case "com.amazonaws.shield#AccessDeniedForDependencyException": throw await de_AccessDeniedForDependencyExceptionRes(parsedOutput, context); case "InternalErrorException": case "com.amazonaws.shield#InternalErrorException": throw await de_InternalErrorExceptionRes(parsedOutput, context); case "InvalidOperationException": case "com.amazonaws.shield#InvalidOperationException": throw await de_InvalidOperationExceptionRes(parsedOutput, context); case "InvalidParameterException": case "com.amazonaws.shield#InvalidParameterException": throw await de_InvalidParameterExceptionRes(parsedOutput, context); case "LimitsExceededException": case "com.amazonaws.shield#LimitsExceededException": throw await de_LimitsExceededExceptionRes(parsedOutput, context); case "NoAssociatedRoleException": case "com.amazonaws.shield#NoAssociatedRoleException": throw await de_NoAssociatedRoleExceptionRes(parsedOutput, context); case "OptimisticLockException": case "com.amazonaws.shield#OptimisticLockException": throw await de_OptimisticLockExceptionRes(parsedOutput, context); case "ResourceNotFoundException": case "com.amazonaws.shield#ResourceNotFoundException": throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); case "InvalidResourceException": case "com.amazonaws.shield#InvalidResourceException": throw await de_InvalidResourceExceptionRes(parsedOutput, context); case "ResourceAlreadyExistsException": case "com.amazonaws.shield#ResourceAlreadyExistsException": throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context); case "LockedSubscriptionException": case "com.amazonaws.shield#LockedSubscriptionException": throw await de_LockedSubscriptionExceptionRes(parsedOutput, context); case "AccessDeniedException": case "com.amazonaws.shield#AccessDeniedException": throw await de_AccessDeniedExceptionRes(parsedOutput, context); case "InvalidPaginationTokenException": case "com.amazonaws.shield#InvalidPaginationTokenException": throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context); default: const parsedBody = parsedOutput.body; return throwDefaultError({ output, parsedBody, errorCode }); }}, "de_CommandError");var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new AccessDeniedException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_AccessDeniedExceptionRes");var de_AccessDeniedForDependencyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new AccessDeniedForDependencyException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_AccessDeniedForDependencyExceptionRes");var de_InternalErrorExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new InternalErrorException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_InternalErrorExceptionRes");var de_InvalidOperationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new InvalidOperationException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_InvalidOperationExceptionRes");var de_InvalidPaginationTokenExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new InvalidPaginationTokenException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_InvalidPaginationTokenExceptionRes");var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new InvalidParameterException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_InvalidParameterExceptionRes");var de_InvalidResourceExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new InvalidResourceException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_InvalidResourceExceptionRes");var de_LimitsExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new LimitsExceededException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_LimitsExceededExceptionRes");var de_LockedSubscriptionExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new LockedSubscriptionException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_LockedSubscriptionExceptionRes");var de_NoAssociatedRoleExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new NoAssociatedRoleException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_NoAssociatedRoleExceptionRes");var de_OptimisticLockExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new OptimisticLockException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_OptimisticLockExceptionRes");var de_ResourceAlreadyExistsExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new ResourceAlreadyExistsException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_ResourceAlreadyExistsExceptionRes");var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => { const body = parsedOutput.body; const deserialized = (0, import_smithy_client._json)(body); const exception = new ResourceNotFoundException({ $metadata: deserializeMetadata(parsedOutput), ...deserialized }); return (0, import_smithy_client.decorateServiceException)(exception, body);}, "de_ResourceNotFoundExceptionRes");var se_ListAttacksRequest = /* @__PURE__ */ __name((input, context) => { return (0, import_smithy_client.take)(input, { EndTime: /* @__PURE__ */ __name((_) => se_TimeRange(_, context), "EndTime"), MaxResults: [], NextToken: [], ResourceArns: import_smithy_client._json, StartTime: /* @__PURE__ */ __name((_) => se_TimeRange(_, context), "StartTime") });}, "se_ListAttacksRequest");var se_TimeRange = /* @__PURE__ */ __name((input, context) => { return (0, import_smithy_client.take)(input, { FromInclusive: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "FromInclusive"), ToExclusive: /* @__PURE__ */ __name((_) => _.getTime() / 1e3, "ToExclusive") });}, "se_TimeRange");var de_AttackDetail = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { AttackCounters: /* @__PURE__ */ __name((_) => de_SummarizedCounterList(_, context), "AttackCounters"), AttackId: import_smithy_client.expectString, AttackProperties: import_smithy_client._json, EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"), Mitigations: import_smithy_client._json, ResourceArn: import_smithy_client.expectString, StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime"), SubResources: /* @__PURE__ */ __name((_) => de_SubResourceSummaryList(_, context), "SubResources") });}, "de_AttackDetail");var de_AttackStatisticsDataItem = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { AttackCount: import_smithy_client.expectLong, AttackVolume: /* @__PURE__ */ __name((_) => de_AttackVolume(_, context), "AttackVolume") });}, "de_AttackStatisticsDataItem");var de_AttackStatisticsDataList = /* @__PURE__ */ __name((output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_AttackStatisticsDataItem(entry, context); }); return retVal;}, "de_AttackStatisticsDataList");var de_AttackSummaries = /* @__PURE__ */ __name((output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_AttackSummary(entry, context); }); return retVal;}, "de_AttackSummaries");var de_AttackSummary = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { AttackId: import_smithy_client.expectString, AttackVectors: import_smithy_client._json, EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"), ResourceArn: import_smithy_client.expectString, StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime") });}, "de_AttackSummary");var de_AttackVolume = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { BitsPerSecond: /* @__PURE__ */ __name((_) => de_AttackVolumeStatistics(_, context), "BitsPerSecond"), PacketsPerSecond: /* @__PURE__ */ __name((_) => de_AttackVolumeStatistics(_, context), "PacketsPerSecond"), RequestsPerSecond: /* @__PURE__ */ __name((_) => de_AttackVolumeStatistics(_, context), "RequestsPerSecond") });}, "de_AttackVolume");var de_AttackVolumeStatistics = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { Max: import_smithy_client.limitedParseDouble });}, "de_AttackVolumeStatistics");var de_DescribeAttackResponse = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { Attack: /* @__PURE__ */ __name((_) => de_AttackDetail(_, context), "Attack") });}, "de_DescribeAttackResponse");var de_DescribeAttackStatisticsResponse = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { DataItems: /* @__PURE__ */ __name((_) => de_AttackStatisticsDataList(_, context), "DataItems"), TimeRange: /* @__PURE__ */ __name((_) => de_TimeRange(_, context), "TimeRange") });}, "de_DescribeAttackStatisticsResponse");var de_DescribeSubscriptionResponse = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { Subscription: /* @__PURE__ */ __name((_) => de_Subscription(_, context), "Subscription") });}, "de_DescribeSubscriptionResponse");var de_ListAttacksResponse = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { AttackSummaries: /* @__PURE__ */ __name((_) => de_AttackSummaries(_, context), "AttackSummaries"), NextToken: import_smithy_client.expectString });}, "de_ListAttacksResponse");var de_SubResourceSummary = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { AttackVectors: /* @__PURE__ */ __name((_) => de_SummarizedAttackVectorList(_, context), "AttackVectors"), Counters: /* @__PURE__ */ __name((_) => de_SummarizedCounterList(_, context), "Counters"), Id: import_smithy_client.expectString, Type: import_smithy_client.expectString });}, "de_SubResourceSummary");var de_SubResourceSummaryList = /* @__PURE__ */ __name((output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_SubResourceSummary(entry, context); }); return retVal;}, "de_SubResourceSummaryList");var de_Subscription = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { AutoRenew: import_smithy_client.expectString, EndTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "EndTime"), Limits: import_smithy_client._json, ProactiveEngagementStatus: import_smithy_client.expectString, StartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "StartTime"), SubscriptionArn: import_smithy_client.expectString, SubscriptionLimits: import_smithy_client._json, TimeCommitmentInSeconds: import_smithy_client.expectLong });}, "de_Subscription");var de_SummarizedAttackVector = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { VectorCounters: /* @__PURE__ */ __name((_) => de_SummarizedCounterList(_, context), "VectorCounters"), VectorType: import_smithy_client.expectString });}, "de_SummarizedAttackVector");var de_SummarizedAttackVectorList = /* @__PURE__ */ __name((output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_SummarizedAttackVector(entry, context); }); return retVal;}, "de_SummarizedAttackVectorList");var de_SummarizedCounter = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { Average: import_smithy_client.limitedParseDouble, Max: import_smithy_client.limitedParseDouble, N: import_smithy_client.expectInt32, Name: import_smithy_client.expectString, Sum: import_smithy_client.limitedParseDouble, Unit: import_smithy_client.expectString });}, "de_SummarizedCounter");var de_SummarizedCounterList = /* @__PURE__ */ __name((output, context) => { const retVal = (output || []).filter((e) => e != null).map((entry) => { return de_SummarizedCounter(entry, context); }); return retVal;}, "de_SummarizedCounterList");var de_TimeRange = /* @__PURE__ */ __name((output, context) => { return (0, import_smithy_client.take)(output, { FromInclusive: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "FromInclusive"), ToExclusive: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "ToExclusive") });}, "de_TimeRange");var deserializeMetadata = /* @__PURE__ */ __name((output) => ({ httpStatusCode: output.statusCode, requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], extendedRequestId: output.headers["x-amz-id-2"], cfId: output.headers["x-amz-cf-id"]}), "deserializeMetadata");var throwDefaultError = (0, import_smithy_client.withBaseException)(ShieldServiceException);var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => { const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); const contents = { protocol, hostname, port, method: "POST", path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, headers }; if (resolvedHostname !== void 0) { contents.hostname = resolvedHostname; } if (body !== void 0) { contents.body = body; } return new import_protocol_http.HttpRequest(contents);}, "buildHttpRpcRequest");function sharedHeaders(operation) { return { "content-type": "application/x-amz-json-1.1", "x-amz-target": `AWSShield_20160616.${operation}` };}__name(sharedHeaders, "sharedHeaders"); // src/commands/AssociateDRTLogBucketCommand.tsvar AssociateDRTLogBucketCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "AssociateDRTLogBucket", {}).n("ShieldClient", "AssociateDRTLogBucketCommand").f(void 0, void 0).ser(se_AssociateDRTLogBucketCommand).de(de_AssociateDRTLogBucketCommand).build() { static { __name(this, "AssociateDRTLogBucketCommand"); }}; // src/commands/AssociateDRTRoleCommand.ts var AssociateDRTRoleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "AssociateDRTRole", {}).n("ShieldClient", "AssociateDRTRoleCommand").f(void 0, void 0).ser(se_AssociateDRTRoleCommand).de(de_AssociateDRTRoleCommand).build() { static { __name(this, "AssociateDRTRoleCommand"); }}; // src/commands/AssociateHealthCheckCommand.ts var AssociateHealthCheckCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "AssociateHealthCheck", {}).n("ShieldClient", "AssociateHealthCheckCommand").f(void 0, void 0).ser(se_AssociateHealthCheckCommand).de(de_AssociateHealthCheckCommand).build() { static { __name(this, "AssociateHealthCheckCommand"); }}; // src/commands/AssociateProactiveEngagementDetailsCommand.ts var AssociateProactiveEngagementDetailsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "AssociateProactiveEngagementDetails", {}).n("ShieldClient", "AssociateProactiveEngagementDetailsCommand").f(void 0, void 0).ser(se_AssociateProactiveEngagementDetailsCommand).de(de_AssociateProactiveEngagementDetailsCommand).build() { static { __name(this, "AssociateProactiveEngagementDetailsCommand"); }}; // src/commands/CreateProtectionCommand.ts var CreateProtectionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "CreateProtection", {}).n("ShieldClient", "CreateProtectionCommand").f(void 0, void 0).ser(se_CreateProtectionCommand).de(de_CreateProtectionCommand).build() { static { __name(this, "CreateProtectionCommand"); }}; // src/commands/CreateProtectionGroupCommand.ts var CreateProtectionGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "CreateProtectionGroup", {}).n("ShieldClient", "CreateProtectionGroupCommand").f(void 0, void 0).ser(se_CreateProtectionGroupCommand).de(de_CreateProtectionGroupCommand).build() { static { __name(this, "CreateProtectionGroupCommand"); }}; // src/commands/CreateSubscriptionCommand.ts var CreateSubscriptionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "CreateSubscription", {}).n("ShieldClient", "CreateSubscriptionCommand").f(void 0, void 0).ser(se_CreateSubscriptionCommand).de(de_CreateSubscriptionCommand).build() { static { __name(this, "CreateSubscriptionCommand"); }}; // src/commands/DeleteProtectionCommand.ts var DeleteProtectionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "DeleteProtection", {}).n("ShieldClient", "DeleteProtectionCommand").f(void 0, void 0).ser(se_DeleteProtectionCommand).de(de_DeleteProtectionCommand).build() { static { __name(this, "DeleteProtectionCommand"); }}; // src/commands/DeleteProtectionGroupCommand.ts var DeleteProtectionGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "DeleteProtectionGroup", {}).n("ShieldClient", "DeleteProtectionGroupCommand").f(void 0, void 0).ser(se_DeleteProtectionGroupCommand).de(de_DeleteProtectionGroupCommand).build() { static { __name(this, "DeleteProtectionGroupCommand"); }}; // src/commands/DeleteSubscriptionCommand.ts var DeleteSubscriptionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "DeleteSubscription", {}).n("ShieldClient", "DeleteSubscriptionCommand").f(void 0, void 0).ser(se_DeleteSubscriptionCommand).de(de_DeleteSubscriptionCommand).build() { static { __name(this, "DeleteSubscriptionCommand"); }}; // src/commands/DescribeAttackCommand.ts var DescribeAttackCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "DescribeAttack", {}).n("ShieldClient", "DescribeAttackCommand").f(void 0, void 0).ser(se_DescribeAttackCommand).de(de_DescribeAttackCommand).build() { static { __name(this, "DescribeAttackCommand"); }}; // src/commands/DescribeAttackStatisticsCommand.ts var DescribeAttackStatisticsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "DescribeAttackStatistics", {}).n("ShieldClient", "DescribeAttackStatisticsCommand").f(void 0, void 0).ser(se_DescribeAttackStatisticsCommand).de(de_DescribeAttackStatisticsCommand).build() { static { __name(this, "DescribeAttackStatisticsCommand"); }}; // src/commands/DescribeDRTAccessCommand.ts var DescribeDRTAccessCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "DescribeDRTAccess", {}).n("ShieldClient", "DescribeDRTAccessCommand").f(void 0, void 0).ser(se_DescribeDRTAccessCommand).de(de_DescribeDRTAccessCommand).build() { static { __name(this, "DescribeDRTAccessCommand"); }}; // src/commands/DescribeEmergencyContactSettingsCommand.ts var DescribeEmergencyContactSettingsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "DescribeEmergencyContactSettings", {}).n("ShieldClient", "DescribeEmergencyContactSettingsCommand").f(void 0, void 0).ser(se_DescribeEmergencyContactSettingsCommand).de(de_DescribeEmergencyContactSettingsCommand).build() { static { __name(this, "DescribeEmergencyContactSettingsCommand"); }}; // src/commands/DescribeProtectionCommand.ts var DescribeProtectionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "DescribeProtection", {}).n("ShieldClient", "DescribeProtectionCommand").f(void 0, void 0).ser(se_DescribeProtectionCommand).de(de_DescribeProtectionCommand).build() { static { __name(this, "DescribeProtectionCommand"); }}; // src/commands/DescribeProtectionGroupCommand.ts var DescribeProtectionGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "DescribeProtectionGroup", {}).n("ShieldClient", "DescribeProtectionGroupCommand").f(void 0, void 0).ser(se_DescribeProtectionGroupCommand).de(de_DescribeProtectionGroupCommand).build() { static { __name(this, "DescribeProtectionGroupCommand"); }}; // src/commands/DescribeSubscriptionCommand.ts var DescribeSubscriptionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "DescribeSubscription", {}).n("ShieldClient", "DescribeSubscriptionCommand").f(void 0, void 0).ser(se_DescribeSubscriptionCommand).de(de_DescribeSubscriptionCommand).build() { static { __name(this, "DescribeSubscriptionCommand"); }}; // src/commands/DisableApplicationLayerAutomaticResponseCommand.ts var DisableApplicationLayerAutomaticResponseCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "DisableApplicationLayerAutomaticResponse", {}).n("ShieldClient", "DisableApplicationLayerAutomaticResponseCommand").f(void 0, void 0).ser(se_DisableApplicationLayerAutomaticResponseCommand).de(de_DisableApplicationLayerAutomaticResponseCommand).build() { static { __name(this, "DisableApplicationLayerAutomaticResponseCommand"); }}; // src/commands/DisableProactiveEngagementCommand.ts var DisableProactiveEngagementCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "DisableProactiveEngagement", {}).n("ShieldClient", "DisableProactiveEngagementCommand").f(void 0, void 0).ser(se_DisableProactiveEngagementCommand).de(de_DisableProactiveEngagementCommand).build() { static { __name(this, "DisableProactiveEngagementCommand"); }}; // src/commands/DisassociateDRTLogBucketCommand.ts var DisassociateDRTLogBucketCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "DisassociateDRTLogBucket", {}).n("ShieldClient", "DisassociateDRTLogBucketCommand").f(void 0, void 0).ser(se_DisassociateDRTLogBucketCommand).de(de_DisassociateDRTLogBucketCommand).build() { static { __name(this, "DisassociateDRTLogBucketCommand"); }}; // src/commands/DisassociateDRTRoleCommand.ts var DisassociateDRTRoleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "DisassociateDRTRole", {}).n("ShieldClient", "DisassociateDRTRoleCommand").f(void 0, void 0).ser(se_DisassociateDRTRoleCommand).de(de_DisassociateDRTRoleCommand).build() { static { __name(this, "DisassociateDRTRoleCommand"); }}; // src/commands/DisassociateHealthCheckCommand.ts var DisassociateHealthCheckCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "DisassociateHealthCheck", {}).n("ShieldClient", "DisassociateHealthCheckCommand").f(void 0, void 0).ser(se_DisassociateHealthCheckCommand).de(de_DisassociateHealthCheckCommand).build() { static { __name(this, "DisassociateHealthCheckCommand"); }}; // src/commands/EnableApplicationLayerAutomaticResponseCommand.ts var EnableApplicationLayerAutomaticResponseCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "EnableApplicationLayerAutomaticResponse", {}).n("ShieldClient", "EnableApplicationLayerAutomaticResponseCommand").f(void 0, void 0).ser(se_EnableApplicationLayerAutomaticResponseCommand).de(de_EnableApplicationLayerAutomaticResponseCommand).build() { static { __name(this, "EnableApplicationLayerAutomaticResponseCommand"); }}; // src/commands/EnableProactiveEngagementCommand.ts var EnableProactiveEngagementCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "EnableProactiveEngagement", {}).n("ShieldClient", "EnableProactiveEngagementCommand").f(void 0, void 0).ser(se_EnableProactiveEngagementCommand).de(de_EnableProactiveEngagementCommand).build() { static { __name(this, "EnableProactiveEngagementCommand"); }}; // src/commands/GetSubscriptionStateCommand.ts var GetSubscriptionStateCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "GetSubscriptionState", {}).n("ShieldClient", "GetSubscriptionStateCommand").f(void 0, void 0).ser(se_GetSubscriptionStateCommand).de(de_GetSubscriptionStateCommand).build() { static { __name(this, "GetSubscriptionStateCommand"); }}; // src/commands/ListAttacksCommand.ts var ListAttacksCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "ListAttacks", {}).n("ShieldClient", "ListAttacksCommand").f(void 0, void 0).ser(se_ListAttacksCommand).de(de_ListAttacksCommand).build() { static { __name(this, "ListAttacksCommand"); }}; // src/commands/ListProtectionGroupsCommand.ts var ListProtectionGroupsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "ListProtectionGroups", {}).n("ShieldClient", "ListProtectionGroupsCommand").f(void 0, void 0).ser(se_ListProtectionGroupsCommand).de(de_ListProtectionGroupsCommand).build() { static { __name(this, "ListProtectionGroupsCommand"); }}; // src/commands/ListProtectionsCommand.ts var ListProtectionsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "ListProtections", {}).n("ShieldClient", "ListProtectionsCommand").f(void 0, void 0).ser(se_ListProtectionsCommand).de(de_ListProtectionsCommand).build() { static { __name(this, "ListProtectionsCommand"); }}; // src/commands/ListResourcesInProtectionGroupCommand.ts var ListResourcesInProtectionGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "ListResourcesInProtectionGroup", {}).n("ShieldClient", "ListResourcesInProtectionGroupCommand").f(void 0, void 0).ser(se_ListResourcesInProtectionGroupCommand).de(de_ListResourcesInProtectionGroupCommand).build() { static { __name(this, "ListResourcesInProtectionGroupCommand"); }}; // src/commands/ListTagsForResourceCommand.ts var ListTagsForResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "ListTagsForResource", {}).n("ShieldClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() { static { __name(this, "ListTagsForResourceCommand"); }}; // src/commands/TagResourceCommand.ts var TagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "TagResource", {}).n("ShieldClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() { static { __name(this, "TagResourceCommand"); }}; // src/commands/UntagResourceCommand.ts var UntagResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "UntagResource", {}).n("ShieldClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() { static { __name(this, "UntagResourceCommand"); }}; // src/commands/UpdateApplicationLayerAutomaticResponseCommand.ts var UpdateApplicationLayerAutomaticResponseCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "UpdateApplicationLayerAutomaticResponse", {}).n("ShieldClient", "UpdateApplicationLayerAutomaticResponseCommand").f(void 0, void 0).ser(se_UpdateApplicationLayerAutomaticResponseCommand).de(de_UpdateApplicationLayerAutomaticResponseCommand).build() { static { __name(this, "UpdateApplicationLayerAutomaticResponseCommand"); }}; // src/commands/UpdateEmergencyContactSettingsCommand.ts var UpdateEmergencyContactSettingsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "UpdateEmergencyContactSettings", {}).n("ShieldClient", "UpdateEmergencyContactSettingsCommand").f(void 0, void 0).ser(se_UpdateEmergencyContactSettingsCommand).de(de_UpdateEmergencyContactSettingsCommand).build() { static { __name(this, "UpdateEmergencyContactSettingsCommand"); }}; // src/commands/UpdateProtectionGroupCommand.ts var UpdateProtectionGroupCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "UpdateProtectionGroup", {}).n("ShieldClient", "UpdateProtectionGroupCommand").f(void 0, void 0).ser(se_UpdateProtectionGroupCommand).de(de_UpdateProtectionGroupCommand).build() { static { __name(this, "UpdateProtectionGroupCommand"); }}; // src/commands/UpdateSubscriptionCommand.ts var UpdateSubscriptionCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) { return [ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize), (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions()) ];}).s("AWSShield_20160616", "UpdateSubscription", {}).n("ShieldClient", "UpdateSubscriptionCommand").f(void 0, void 0).ser(se_UpdateSubscriptionCommand).de(de_UpdateSubscriptionCommand).build() { static { __name(this, "UpdateSubscriptionCommand"); }}; // src/Shield.tsvar commands = { AssociateDRTLogBucketCommand, AssociateDRTRoleCommand, AssociateHealthCheckCommand, AssociateProactiveEngagementDetailsCommand, CreateProtectionCommand, CreateProtectionGroupCommand, CreateSubscriptionCommand, DeleteProtectionCommand, DeleteProtectionGroupCommand, DeleteSubscriptionCommand, DescribeAttackCommand, DescribeAttackStatisticsCommand, DescribeDRTAccessCommand, DescribeEmergencyContactSettingsCommand, DescribeProtectionCommand, DescribeProtectionGroupCommand, DescribeSubscriptionCommand, DisableApplicationLayerAutomaticResponseCommand, DisableProactiveEngagementCommand, DisassociateDRTLogBucketCommand, DisassociateDRTRoleCommand, DisassociateHealthCheckCommand, EnableApplicationLayerAutomaticResponseCommand, EnableProactiveEngagementCommand, GetSubscriptionStateCommand, ListAttacksCommand, ListProtectionGroupsCommand, ListProtectionsCommand, ListResourcesInProtectionGroupCommand, ListTagsForResourceCommand, TagResourceCommand, UntagResourceCommand, UpdateApplicationLayerAutomaticResponseCommand, UpdateEmergencyContactSettingsCommand, UpdateProtectionGroupCommand, UpdateSubscriptionCommand};var Shield = class extends ShieldClient { static { __name(this, "Shield"); }};(0, import_smithy_client.createAggregatedClient)(commands, Shield); // src/pagination/ListAttacksPaginator.ts var paginateListAttacks = (0, import_core.createPaginator)(ShieldClient, ListAttacksCommand, "NextToken", "NextToken", "MaxResults"); // src/pagination/ListProtectionGroupsPaginator.ts var paginateListProtectionGroups = (0, import_core.createPaginator)(ShieldClient, ListProtectionGroupsCommand, "NextToken", "NextToken", "MaxResults"); // src/pagination/ListProtectionsPaginator.ts var paginateListProtections = (0, import_core.createPaginator)(ShieldClient, ListProtectionsCommand, "NextToken", "NextToken", "MaxResults"); // src/pagination/ListResourcesInProtectionGroupPaginator.ts var paginateListResourcesInProtectionGroup = (0, import_core.createPaginator)(ShieldClient, ListResourcesInProtectionGroupCommand, "NextToken", "NextToken", "MaxResults");// Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { ShieldServiceException, __Client, ShieldClient, Shield, $Command, AssociateDRTLogBucketCommand, AssociateDRTRoleCommand, AssociateHealthCheckCommand, AssociateProactiveEngagementDetailsCommand, CreateProtectionCommand, CreateProtectionGroupCommand, CreateSubscriptionCommand, DeleteProtectionCommand, DeleteProtectionGroupCommand, DeleteSubscriptionCommand, DescribeAttackCommand, DescribeAttackStatisticsCommand, DescribeDRTAccessCommand, DescribeEmergencyContactSettingsCommand, DescribeProtectionCommand, DescribeProtectionGroupCommand, DescribeSubscriptionCommand, DisableApplicationLayerAutomaticResponseCommand, DisableProactiveEngagementCommand, DisassociateDRTLogBucketCommand, DisassociateDRTRoleCommand, DisassociateHealthCheckCommand, EnableApplicationLayerAutomaticResponseCommand, EnableProactiveEngagementCommand, GetSubscriptionStateCommand, ListAttacksCommand, ListProtectionGroupsCommand, ListProtectionsCommand, ListResourcesInProtectionGroupCommand, ListTagsForResourceCommand, TagResourceCommand, UntagResourceCommand, UpdateApplicationLayerAutomaticResponseCommand, UpdateEmergencyContactSettingsCommand, UpdateProtectionGroupCommand, UpdateSubscriptionCommand, paginateListAttacks, paginateListProtectionGroups, paginateListProtections, paginateListResourcesInProtectionGroup, AccessDeniedException, AccessDeniedForDependencyException, ApplicationLayerAutomaticResponseStatus, InternalErrorException, InvalidOperationException, ValidationExceptionReason, InvalidParameterException, LimitsExceededException, NoAssociatedRoleException, OptimisticLockException, ResourceNotFoundException, InvalidResourceException, AttackLayer, AttackPropertyIdentifier, Unit, SubResourceType, AutoRenew, ResourceAlreadyExistsException, ProtectionGroupAggregation, ProtectionGroupPattern, ProtectedResourceType, LockedSubscriptionException, ProactiveEngagementStatus, SubscriptionState, InvalidPaginationTokenException});