File Explorer

/var/runtime/node_modules/@aws-sdk/client-accessanalyzer/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 /.

2 dirs
3 files
index.js131 KB · 3131 lines
"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, {  AccessAnalyzer: () => AccessAnalyzer,  AccessAnalyzerClient: () => AccessAnalyzerClient,  AccessAnalyzerServiceException: () => AccessAnalyzerServiceException,  AccessCheckPolicyType: () => AccessCheckPolicyType,  AccessCheckResourceType: () => AccessCheckResourceType,  AccessDeniedException: () => AccessDeniedException,  AccessPreviewStatus: () => AccessPreviewStatus,  AccessPreviewStatusReasonCode: () => AccessPreviewStatusReasonCode,  AclGrantee: () => AclGrantee,  AclPermission: () => AclPermission,  AnalyzerConfiguration: () => AnalyzerConfiguration,  ApplyArchiveRuleCommand: () => ApplyArchiveRuleCommand,  CancelPolicyGenerationCommand: () => CancelPolicyGenerationCommand,  CheckAccessNotGrantedCommand: () => CheckAccessNotGrantedCommand,  CheckAccessNotGrantedRequestFilterSensitiveLog: () => CheckAccessNotGrantedRequestFilterSensitiveLog,  CheckAccessNotGrantedResult: () => CheckAccessNotGrantedResult,  CheckNoNewAccessCommand: () => CheckNoNewAccessCommand,  CheckNoNewAccessRequestFilterSensitiveLog: () => CheckNoNewAccessRequestFilterSensitiveLog,  CheckNoNewAccessResult: () => CheckNoNewAccessResult,  CheckNoPublicAccessCommand: () => CheckNoPublicAccessCommand,  CheckNoPublicAccessRequestFilterSensitiveLog: () => CheckNoPublicAccessRequestFilterSensitiveLog,  CheckNoPublicAccessResult: () => CheckNoPublicAccessResult,  Configuration: () => Configuration,  ConflictException: () => ConflictException,  CreateAccessPreviewCommand: () => CreateAccessPreviewCommand,  CreateAnalyzerCommand: () => CreateAnalyzerCommand,  CreateArchiveRuleCommand: () => CreateArchiveRuleCommand,  DeleteAnalyzerCommand: () => DeleteAnalyzerCommand,  DeleteArchiveRuleCommand: () => DeleteArchiveRuleCommand,  FindingChangeType: () => FindingChangeType,  FindingDetails: () => FindingDetails,  FindingType: () => FindingType,  FindingsStatistics: () => FindingsStatistics,  GenerateFindingRecommendationCommand: () => GenerateFindingRecommendationCommand,  GetAccessPreviewCommand: () => GetAccessPreviewCommand,  GetAnalyzedResourceCommand: () => GetAnalyzedResourceCommand,  GetAnalyzerCommand: () => GetAnalyzerCommand,  GetArchiveRuleCommand: () => GetArchiveRuleCommand,  GetFindingCommand: () => GetFindingCommand,  GetFindingRecommendationCommand: () => GetFindingRecommendationCommand,  GetFindingV2Command: () => GetFindingV2Command,  GetFindingsStatisticsCommand: () => GetFindingsStatisticsCommand,  GetGeneratedPolicyCommand: () => GetGeneratedPolicyCommand,  InternalAccessType: () => InternalAccessType,  InternalServerException: () => InternalServerException,  InvalidParameterException: () => InvalidParameterException,  JobErrorCode: () => JobErrorCode,  JobStatus: () => JobStatus,  KmsGrantOperation: () => KmsGrantOperation,  ListAccessPreviewFindingsCommand: () => ListAccessPreviewFindingsCommand,  ListAccessPreviewsCommand: () => ListAccessPreviewsCommand,  ListAnalyzedResourcesCommand: () => ListAnalyzedResourcesCommand,  ListAnalyzersCommand: () => ListAnalyzersCommand,  ListArchiveRulesCommand: () => ListArchiveRulesCommand,  ListFindingsCommand: () => ListFindingsCommand,  ListFindingsV2Command: () => ListFindingsV2Command,  ListPolicyGenerationsCommand: () => ListPolicyGenerationsCommand,  ListTagsForResourceCommand: () => ListTagsForResourceCommand,  Locale: () => Locale,  NetworkOriginConfiguration: () => NetworkOriginConfiguration,  PathElement: () => PathElement,  PolicyType: () => PolicyType,  PrincipalType: () => PrincipalType,  RdsDbClusterSnapshotAttributeValue: () => RdsDbClusterSnapshotAttributeValue,  RdsDbSnapshotAttributeValue: () => RdsDbSnapshotAttributeValue,  RecommendationType: () => RecommendationType,  RecommendedRemediationAction: () => RecommendedRemediationAction,  RecommendedStep: () => RecommendedStep,  ResourceControlPolicyRestriction: () => ResourceControlPolicyRestriction,  ResourceNotFoundException: () => ResourceNotFoundException,  ServiceControlPolicyRestriction: () => ServiceControlPolicyRestriction,  ServiceQuotaExceededException: () => ServiceQuotaExceededException,  StartPolicyGenerationCommand: () => StartPolicyGenerationCommand,  StartResourceScanCommand: () => StartResourceScanCommand,  Status: () => Status,  TagResourceCommand: () => TagResourceCommand,  ThrottlingException: () => ThrottlingException,  UnprocessableEntityException: () => UnprocessableEntityException,  UntagResourceCommand: () => UntagResourceCommand,  UpdateAnalyzerCommand: () => UpdateAnalyzerCommand,  UpdateArchiveRuleCommand: () => UpdateArchiveRuleCommand,  UpdateFindingsCommand: () => UpdateFindingsCommand,  ValidatePolicyCommand: () => ValidatePolicyCommand,  ValidatePolicyFindingType: () => ValidatePolicyFindingType,  ValidatePolicyResourceType: () => ValidatePolicyResourceType,  ValidationException: () => ValidationException,  ValidationExceptionReason: () => ValidationExceptionReason,  __Client: () => import_smithy_client.Client,  paginateGetFindingRecommendation: () => paginateGetFindingRecommendation,  paginateGetFindingV2: () => paginateGetFindingV2,  paginateListAccessPreviewFindings: () => paginateListAccessPreviewFindings,  paginateListAccessPreviews: () => paginateListAccessPreviews,  paginateListAnalyzedResources: () => paginateListAnalyzedResources,  paginateListAnalyzers: () => paginateListAnalyzers,  paginateListArchiveRules: () => paginateListArchiveRules,  paginateListFindings: () => paginateListFindings,  paginateListFindingsV2: () => paginateListFindingsV2,  paginateListPolicyGenerations: () => paginateListPolicyGenerations,  paginateValidatePolicy: () => paginateValidatePolicy});module.exports = __toCommonJS(index_exports); // src/AccessAnalyzerClient.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: "access-analyzer"  });}, "resolveClientEndpointParameters");var commonParams = {  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },  Endpoint: { type: "builtInParams", name: "endpoint" },  Region: { type: "builtInParams", name: "region" },  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }}; // src/AccessAnalyzerClient.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/AccessAnalyzerClient.tsvar AccessAnalyzerClient = class extends import_smithy_client.Client {  static {    __name(this, "AccessAnalyzerClient");  }  /**   * The resolved configuration of AccessAnalyzerClient class. This is resolved and normalized from the {@link AccessAnalyzerClientConfig | 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.defaultAccessAnalyzerHttpAuthSchemeParametersProvider,        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/AccessAnalyzer.ts  // src/commands/ApplyArchiveRuleCommand.ts var import_middleware_serde = require("@smithy/middleware-serde");  // src/protocols/Aws_restJson1.tsvar import_core2 = require("@aws-sdk/core");  var import_uuid = require("uuid"); // src/models/AccessAnalyzerServiceException.ts var AccessAnalyzerServiceException = class _AccessAnalyzerServiceException extends import_smithy_client.ServiceException {  static {    __name(this, "AccessAnalyzerServiceException");  }  /**   * @internal   */  constructor(options) {    super(options);    Object.setPrototypeOf(this, _AccessAnalyzerServiceException.prototype);  }}; // src/models/models_0.ts var AccessDeniedException = class _AccessDeniedException extends AccessAnalyzerServiceException {  static {    __name(this, "AccessDeniedException");  }  name = "AccessDeniedException";  $fault = "client";  /**   * @internal   */  constructor(opts) {    super({      name: "AccessDeniedException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _AccessDeniedException.prototype);  }};var ConflictException = class _ConflictException extends AccessAnalyzerServiceException {  static {    __name(this, "ConflictException");  }  name = "ConflictException";  $fault = "client";  /**   * <p>The ID of the resource.</p>   * @public   */  resourceId;  /**   * <p>The resource type.</p>   * @public   */  resourceType;  /**   * @internal   */  constructor(opts) {    super({      name: "ConflictException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _ConflictException.prototype);    this.resourceId = opts.resourceId;    this.resourceType = opts.resourceType;  }};var InternalServerException = class _InternalServerException extends AccessAnalyzerServiceException {  static {    __name(this, "InternalServerException");  }  name = "InternalServerException";  $fault = "server";  $retryable = {};  /**   * <p>The seconds to wait to retry.</p>   * @public   */  retryAfterSeconds;  /**   * @internal   */  constructor(opts) {    super({      name: "InternalServerException",      $fault: "server",      ...opts    });    Object.setPrototypeOf(this, _InternalServerException.prototype);    this.retryAfterSeconds = opts.retryAfterSeconds;  }};var ResourceNotFoundException = class _ResourceNotFoundException extends AccessAnalyzerServiceException {  static {    __name(this, "ResourceNotFoundException");  }  name = "ResourceNotFoundException";  $fault = "client";  /**   * <p>The ID of the resource.</p>   * @public   */  resourceId;  /**   * <p>The type of the resource.</p>   * @public   */  resourceType;  /**   * @internal   */  constructor(opts) {    super({      name: "ResourceNotFoundException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);    this.resourceId = opts.resourceId;    this.resourceType = opts.resourceType;  }};var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends AccessAnalyzerServiceException {  static {    __name(this, "ServiceQuotaExceededException");  }  name = "ServiceQuotaExceededException";  $fault = "client";  /**   * <p>The resource ID.</p>   * @public   */  resourceId;  /**   * <p>The resource type.</p>   * @public   */  resourceType;  /**   * @internal   */  constructor(opts) {    super({      name: "ServiceQuotaExceededException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);    this.resourceId = opts.resourceId;    this.resourceType = opts.resourceType;  }};var ThrottlingException = class _ThrottlingException extends AccessAnalyzerServiceException {  static {    __name(this, "ThrottlingException");  }  name = "ThrottlingException";  $fault = "client";  $retryable = {    throttling: true  };  /**   * <p>The seconds to wait to retry.</p>   * @public   */  retryAfterSeconds;  /**   * @internal   */  constructor(opts) {    super({      name: "ThrottlingException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _ThrottlingException.prototype);    this.retryAfterSeconds = opts.retryAfterSeconds;  }};var ValidationExceptionReason = {  CANNOT_PARSE: "cannotParse",  FIELD_VALIDATION_FAILED: "fieldValidationFailed",  NOT_SUPPORTED: "notSupported",  OTHER: "other",  UNKNOWN_OPERATION: "unknownOperation"};var ValidationException = class _ValidationException extends AccessAnalyzerServiceException {  static {    __name(this, "ValidationException");  }  name = "ValidationException";  $fault = "client";  /**   * <p>The reason for the exception.</p>   * @public   */  reason;  /**   * <p>A list of fields that didn't validate.</p>   * @public   */  fieldList;  /**   * @internal   */  constructor(opts) {    super({      name: "ValidationException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _ValidationException.prototype);    this.reason = opts.reason;    this.fieldList = opts.fieldList;  }};var AnalyzerConfiguration;((AnalyzerConfiguration3) => {  AnalyzerConfiguration3.visit = /* @__PURE__ */ __name((value, visitor) => {    if (value.unusedAccess !== void 0) return visitor.unusedAccess(value.unusedAccess);    if (value.internalAccess !== void 0) return visitor.internalAccess(value.internalAccess);    return visitor._(value.$unknown[0], value.$unknown[1]);  }, "visit");})(AnalyzerConfiguration || (AnalyzerConfiguration = {}));var AccessCheckPolicyType = {  IDENTITY_POLICY: "IDENTITY_POLICY",  RESOURCE_POLICY: "RESOURCE_POLICY"};var CheckAccessNotGrantedResult = {  FAIL: "FAIL",  PASS: "PASS"};var InvalidParameterException = class _InvalidParameterException extends AccessAnalyzerServiceException {  static {    __name(this, "InvalidParameterException");  }  name = "InvalidParameterException";  $fault = "client";  /**   * @internal   */  constructor(opts) {    super({      name: "InvalidParameterException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _InvalidParameterException.prototype);  }};var UnprocessableEntityException = class _UnprocessableEntityException extends AccessAnalyzerServiceException {  static {    __name(this, "UnprocessableEntityException");  }  name = "UnprocessableEntityException";  $fault = "client";  $retryable = {};  /**   * @internal   */  constructor(opts) {    super({      name: "UnprocessableEntityException",      $fault: "client",      ...opts    });    Object.setPrototypeOf(this, _UnprocessableEntityException.prototype);  }};var CheckNoNewAccessResult = {  FAIL: "FAIL",  PASS: "PASS"};var AccessCheckResourceType = {  API_GATEWAY_REST_API: "AWS::ApiGateway::RestApi",  BACKUP_VAULT: "AWS::Backup::BackupVault",  CLOUDTRAIL_DASHBOARD: "AWS::CloudTrail::Dashboard",  CLOUDTRAIL_EVENT_DATA_STORE: "AWS::CloudTrail::EventDataStore",  CODE_ARTIFACT_DOMAIN: "AWS::CodeArtifact::Domain",  DYNAMODB_STREAM: "AWS::DynamoDB::Stream",  DYNAMODB_TABLE: "AWS::DynamoDB::Table",  EFS_FILESYSTEM: "AWS::EFS::FileSystem",  KINESIS_DATA_STREAM: "AWS::Kinesis::Stream",  KINESIS_STREAM_CONSUMER: "AWS::Kinesis::StreamConsumer",  KMS_KEY: "AWS::KMS::Key",  LAMBDA_FUNCTION: "AWS::Lambda::Function",  OPENSEARCHSERVICE_DOMAIN: "AWS::OpenSearchService::Domain",  ROLE_TRUST: "AWS::IAM::AssumeRolePolicyDocument",  S3EXPRESS_DIRECTORYBUCKET: "AWS::S3Express::DirectoryBucket",  S3_ACCESS_POINT: "AWS::S3::AccessPoint",  S3_BUCKET: "AWS::S3::Bucket",  S3_EXPRESS_ACCESS_POINT: "AWS::S3Express::AccessPoint",  S3_GLACIER: "AWS::S3::Glacier",  S3_OUTPOSTS_ACCESS_POINT: "AWS::S3Outposts::AccessPoint",  S3_OUTPOSTS_BUCKET: "AWS::S3Outposts::Bucket",  S3_TABLE: "AWS::S3Tables::Table",  S3_TABLE_BUCKET: "AWS::S3Tables::TableBucket",  SECRETSMANAGER_SECRET: "AWS::SecretsManager::Secret",  SNS_TOPIC: "AWS::SNS::Topic",  SQS_QUEUE: "AWS::SQS::Queue"};var CheckNoPublicAccessResult = {  FAIL: "FAIL",  PASS: "PASS"};var KmsGrantOperation = {  CREATE_GRANT: "CreateGrant",  DECRYPT: "Decrypt",  DESCRIBE_KEY: "DescribeKey",  ENCRYPT: "Encrypt",  GENERATE_DATA_KEY: "GenerateDataKey",  GENERATE_DATA_KEY_PAIR: "GenerateDataKeyPair",  GENERATE_DATA_KEY_PAIR_WITHOUT_PLAINTEXT: "GenerateDataKeyPairWithoutPlaintext",  GENERATE_DATA_KEY_WITHOUT_PLAINTEXT: "GenerateDataKeyWithoutPlaintext",  GET_PUBLIC_KEY: "GetPublicKey",  REENCRYPT_FROM: "ReEncryptFrom",  REENCRYPT_TO: "ReEncryptTo",  RETIRE_GRANT: "RetireGrant",  SIGN: "Sign",  VERIFY: "Verify"};var RdsDbClusterSnapshotAttributeValue;((RdsDbClusterSnapshotAttributeValue3) => {  RdsDbClusterSnapshotAttributeValue3.visit = /* @__PURE__ */ __name((value, visitor) => {    if (value.accountIds !== void 0) return visitor.accountIds(value.accountIds);    return visitor._(value.$unknown[0], value.$unknown[1]);  }, "visit");})(RdsDbClusterSnapshotAttributeValue || (RdsDbClusterSnapshotAttributeValue = {}));var RdsDbSnapshotAttributeValue;((RdsDbSnapshotAttributeValue3) => {  RdsDbSnapshotAttributeValue3.visit = /* @__PURE__ */ __name((value, visitor) => {    if (value.accountIds !== void 0) return visitor.accountIds(value.accountIds);    return visitor._(value.$unknown[0], value.$unknown[1]);  }, "visit");})(RdsDbSnapshotAttributeValue || (RdsDbSnapshotAttributeValue = {}));var NetworkOriginConfiguration;((NetworkOriginConfiguration3) => {  NetworkOriginConfiguration3.visit = /* @__PURE__ */ __name((value, visitor) => {    if (value.vpcConfiguration !== void 0) return visitor.vpcConfiguration(value.vpcConfiguration);    if (value.internetConfiguration !== void 0) return visitor.internetConfiguration(value.internetConfiguration);    return visitor._(value.$unknown[0], value.$unknown[1]);  }, "visit");})(NetworkOriginConfiguration || (NetworkOriginConfiguration = {}));var AclGrantee;((AclGrantee3) => {  AclGrantee3.visit = /* @__PURE__ */ __name((value, visitor) => {    if (value.id !== void 0) return visitor.id(value.id);    if (value.uri !== void 0) return visitor.uri(value.uri);    return visitor._(value.$unknown[0], value.$unknown[1]);  }, "visit");})(AclGrantee || (AclGrantee = {}));var AclPermission = {  FULL_CONTROL: "FULL_CONTROL",  READ: "READ",  READ_ACP: "READ_ACP",  WRITE: "WRITE",  WRITE_ACP: "WRITE_ACP"};var Configuration;((Configuration3) => {  Configuration3.visit = /* @__PURE__ */ __name((value, visitor) => {    if (value.ebsSnapshot !== void 0) return visitor.ebsSnapshot(value.ebsSnapshot);    if (value.ecrRepository !== void 0) return visitor.ecrRepository(value.ecrRepository);    if (value.iamRole !== void 0) return visitor.iamRole(value.iamRole);    if (value.efsFileSystem !== void 0) return visitor.efsFileSystem(value.efsFileSystem);    if (value.kmsKey !== void 0) return visitor.kmsKey(value.kmsKey);    if (value.rdsDbClusterSnapshot !== void 0) return visitor.rdsDbClusterSnapshot(value.rdsDbClusterSnapshot);    if (value.rdsDbSnapshot !== void 0) return visitor.rdsDbSnapshot(value.rdsDbSnapshot);    if (value.secretsManagerSecret !== void 0) return visitor.secretsManagerSecret(value.secretsManagerSecret);    if (value.s3Bucket !== void 0) return visitor.s3Bucket(value.s3Bucket);    if (value.snsTopic !== void 0) return visitor.snsTopic(value.snsTopic);    if (value.sqsQueue !== void 0) return visitor.sqsQueue(value.sqsQueue);    if (value.s3ExpressDirectoryBucket !== void 0)      return visitor.s3ExpressDirectoryBucket(value.s3ExpressDirectoryBucket);    if (value.dynamodbStream !== void 0) return visitor.dynamodbStream(value.dynamodbStream);    if (value.dynamodbTable !== void 0) return visitor.dynamodbTable(value.dynamodbTable);    return visitor._(value.$unknown[0], value.$unknown[1]);  }, "visit");})(Configuration || (Configuration = {}));var AccessPreviewStatus = {  COMPLETED: "COMPLETED",  CREATING: "CREATING",  FAILED: "FAILED"};var AccessPreviewStatusReasonCode = {  INTERNAL_ERROR: "INTERNAL_ERROR",  INVALID_CONFIGURATION: "INVALID_CONFIGURATION"};var ResourceControlPolicyRestriction = {  APPLICABLE: "APPLICABLE",  APPLIED: "APPLIED",  FAILED_TO_EVALUATE_RCP: "FAILED_TO_EVALUATE_RCP",  NOT_APPLICABLE: "NOT_APPLICABLE"};var RecommendationType = {  UNUSED_PERMISSION_RECOMMENDATION: "UnusedPermissionRecommendation"};var RecommendedRemediationAction = {  CREATE_POLICY: "CREATE_POLICY",  DETACH_POLICY: "DETACH_POLICY"};var RecommendedStep;((RecommendedStep3) => {  RecommendedStep3.visit = /* @__PURE__ */ __name((value, visitor) => {    if (value.unusedPermissionsRecommendedStep !== void 0)      return visitor.unusedPermissionsRecommendedStep(value.unusedPermissionsRecommendedStep);    return visitor._(value.$unknown[0], value.$unknown[1]);  }, "visit");})(RecommendedStep || (RecommendedStep = {}));var Status = {  FAILED: "FAILED",  IN_PROGRESS: "IN_PROGRESS",  SUCCEEDED: "SUCCEEDED"};var FindingsStatistics;((FindingsStatistics2) => {  FindingsStatistics2.visit = /* @__PURE__ */ __name((value, visitor) => {    if (value.externalAccessFindingsStatistics !== void 0)      return visitor.externalAccessFindingsStatistics(value.externalAccessFindingsStatistics);    if (value.internalAccessFindingsStatistics !== void 0)      return visitor.internalAccessFindingsStatistics(value.internalAccessFindingsStatistics);    if (value.unusedAccessFindingsStatistics !== void 0)      return visitor.unusedAccessFindingsStatistics(value.unusedAccessFindingsStatistics);    return visitor._(value.$unknown[0], value.$unknown[1]);  }, "visit");})(FindingsStatistics || (FindingsStatistics = {}));var InternalAccessType = {  INTRA_ACCOUNT: "INTRA_ACCOUNT",  INTRA_ORG: "INTRA_ORG"};var PrincipalType = {  IAM_ROLE: "IAM_ROLE",  IAM_USER: "IAM_USER"};var ServiceControlPolicyRestriction = {  APPLICABLE: "APPLICABLE",  APPLIED: "APPLIED",  FAILED_TO_EVALUATE_SCP: "FAILED_TO_EVALUATE_SCP",  NOT_APPLICABLE: "NOT_APPLICABLE"};var FindingDetails;((FindingDetails3) => {  FindingDetails3.visit = /* @__PURE__ */ __name((value, visitor) => {    if (value.internalAccessDetails !== void 0) return visitor.internalAccessDetails(value.internalAccessDetails);    if (value.externalAccessDetails !== void 0) return visitor.externalAccessDetails(value.externalAccessDetails);    if (value.unusedPermissionDetails !== void 0)      return visitor.unusedPermissionDetails(value.unusedPermissionDetails);    if (value.unusedIamUserAccessKeyDetails !== void 0)      return visitor.unusedIamUserAccessKeyDetails(value.unusedIamUserAccessKeyDetails);    if (value.unusedIamRoleDetails !== void 0) return visitor.unusedIamRoleDetails(value.unusedIamRoleDetails);    if (value.unusedIamUserPasswordDetails !== void 0)      return visitor.unusedIamUserPasswordDetails(value.unusedIamUserPasswordDetails);    return visitor._(value.$unknown[0], value.$unknown[1]);  }, "visit");})(FindingDetails || (FindingDetails = {}));var FindingType = {  EXTERNAL_ACCESS: "ExternalAccess",  INTERNAL_ACCESS: "InternalAccess",  UNUSED_IAM_ROLE: "UnusedIAMRole",  UNUSED_IAM_USER_ACCESS_KEY: "UnusedIAMUserAccessKey",  UNUSED_IAM_USER_PASSWORD: "UnusedIAMUserPassword",  UNUSED_PERMISSION: "UnusedPermission"};var JobErrorCode = {  AUTHORIZATION_ERROR: "AUTHORIZATION_ERROR",  RESOURCE_NOT_FOUND_ERROR: "RESOURCE_NOT_FOUND_ERROR",  SERVICE_ERROR: "SERVICE_ERROR",  SERVICE_QUOTA_EXCEEDED_ERROR: "SERVICE_QUOTA_EXCEEDED_ERROR"};var JobStatus = {  CANCELED: "CANCELED",  FAILED: "FAILED",  IN_PROGRESS: "IN_PROGRESS",  SUCCEEDED: "SUCCEEDED"};var FindingChangeType = {  CHANGED: "CHANGED",  NEW: "NEW",  UNCHANGED: "UNCHANGED"};var Locale = {  DE: "DE",  EN: "EN",  ES: "ES",  FR: "FR",  IT: "IT",  JA: "JA",  KO: "KO",  PT_BR: "PT_BR",  ZH_CN: "ZH_CN",  ZH_TW: "ZH_TW"};var PolicyType = {  IDENTITY_POLICY: "IDENTITY_POLICY",  RESOURCE_CONTROL_POLICY: "RESOURCE_CONTROL_POLICY",  RESOURCE_POLICY: "RESOURCE_POLICY",  SERVICE_CONTROL_POLICY: "SERVICE_CONTROL_POLICY"};var ValidatePolicyResourceType = {  DYNAMODB_TABLE: "AWS::DynamoDB::Table",  ROLE_TRUST: "AWS::IAM::AssumeRolePolicyDocument",  S3_ACCESS_POINT: "AWS::S3::AccessPoint",  S3_BUCKET: "AWS::S3::Bucket",  S3_MULTI_REGION_ACCESS_POINT: "AWS::S3::MultiRegionAccessPoint",  S3_OBJECT_LAMBDA_ACCESS_POINT: "AWS::S3ObjectLambda::AccessPoint"};var ValidatePolicyFindingType = {  ERROR: "ERROR",  SECURITY_WARNING: "SECURITY_WARNING",  SUGGESTION: "SUGGESTION",  WARNING: "WARNING"};var PathElement;((PathElement2) => {  PathElement2.visit = /* @__PURE__ */ __name((value, visitor) => {    if (value.index !== void 0) return visitor.index(value.index);    if (value.key !== void 0) return visitor.key(value.key);    if (value.substring !== void 0) return visitor.substring(value.substring);    if (value.value !== void 0) return visitor.value(value.value);    return visitor._(value.$unknown[0], value.$unknown[1]);  }, "visit");})(PathElement || (PathElement = {}));var CheckAccessNotGrantedRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.policyDocument && { policyDocument: import_smithy_client.SENSITIVE_STRING }}), "CheckAccessNotGrantedRequestFilterSensitiveLog");var CheckNoNewAccessRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.newPolicyDocument && { newPolicyDocument: import_smithy_client.SENSITIVE_STRING },  ...obj.existingPolicyDocument && { existingPolicyDocument: import_smithy_client.SENSITIVE_STRING }}), "CheckNoNewAccessRequestFilterSensitiveLog");var CheckNoPublicAccessRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({  ...obj,  ...obj.policyDocument && { policyDocument: import_smithy_client.SENSITIVE_STRING }}), "CheckNoPublicAccessRequestFilterSensitiveLog"); // src/protocols/Aws_restJson1.tsvar se_ApplyArchiveRuleCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/archive-rule");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      analyzerArn: [],      clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],      ruleName: []    })  );  b.m("PUT").h(headers).b(body);  return b.build();}, "se_ApplyArchiveRuleCommand");var se_CancelPolicyGenerationCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/policy/generation/{jobId}");  b.p("jobId", () => input.jobId, "{jobId}", false);  let body;  b.m("PUT").h(headers).b(body);  return b.build();}, "se_CancelPolicyGenerationCommand");var se_CheckAccessNotGrantedCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/policy/check-access-not-granted");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      access: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "access"),      policyDocument: [],      policyType: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_CheckAccessNotGrantedCommand");var se_CheckNoNewAccessCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/policy/check-no-new-access");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      existingPolicyDocument: [],      newPolicyDocument: [],      policyType: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_CheckNoNewAccessCommand");var se_CheckNoPublicAccessCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/policy/check-no-public-access");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      policyDocument: [],      resourceType: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_CheckNoPublicAccessCommand");var se_CreateAccessPreviewCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/access-preview");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      analyzerArn: [],      clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],      configurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "configurations")    })  );  b.m("PUT").h(headers).b(body);  return b.build();}, "se_CreateAccessPreviewCommand");var se_CreateAnalyzerCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/analyzer");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      analyzerName: [],      archiveRules: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "archiveRules"),      clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],      configuration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "configuration"),      tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags"),      type: []    })  );  b.m("PUT").h(headers).b(body);  return b.build();}, "se_CreateAnalyzerCommand");var se_CreateArchiveRuleCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/analyzer/{analyzerName}/archive-rule");  b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],      filter: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "filter"),      ruleName: []    })  );  b.m("PUT").h(headers).b(body);  return b.build();}, "se_CreateArchiveRuleCommand");var se_DeleteAnalyzerCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/analyzer/{analyzerName}");  b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);  const query = (0, import_smithy_client.map)({    [_cT]: [, input[_cT] ?? (0, import_uuid.v4)()]  });  let body;  b.m("DELETE").h(headers).q(query).b(body);  return b.build();}, "se_DeleteAnalyzerCommand");var se_DeleteArchiveRuleCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/analyzer/{analyzerName}/archive-rule/{ruleName}");  b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);  b.p("ruleName", () => input.ruleName, "{ruleName}", false);  const query = (0, import_smithy_client.map)({    [_cT]: [, input[_cT] ?? (0, import_uuid.v4)()]  });  let body;  b.m("DELETE").h(headers).q(query).b(body);  return b.build();}, "se_DeleteArchiveRuleCommand");var se_GenerateFindingRecommendationCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/recommendation/{id}");  b.p("id", () => input.id, "{id}", false);  const query = (0, import_smithy_client.map)({    [_aA]: [, (0, import_smithy_client.expectNonNull)(input[_aA], `analyzerArn`)]  });  let body;  b.m("POST").h(headers).q(query).b(body);  return b.build();}, "se_GenerateFindingRecommendationCommand");var se_GetAccessPreviewCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/access-preview/{accessPreviewId}");  b.p("accessPreviewId", () => input.accessPreviewId, "{accessPreviewId}", false);  const query = (0, import_smithy_client.map)({    [_aA]: [, (0, import_smithy_client.expectNonNull)(input[_aA], `analyzerArn`)]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_GetAccessPreviewCommand");var se_GetAnalyzedResourceCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/analyzed-resource");  const query = (0, import_smithy_client.map)({    [_aA]: [, (0, import_smithy_client.expectNonNull)(input[_aA], `analyzerArn`)],    [_rA]: [, (0, import_smithy_client.expectNonNull)(input[_rA], `resourceArn`)]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_GetAnalyzedResourceCommand");var se_GetAnalyzerCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/analyzer/{analyzerName}");  b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);  let body;  b.m("GET").h(headers).b(body);  return b.build();}, "se_GetAnalyzerCommand");var se_GetArchiveRuleCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/analyzer/{analyzerName}/archive-rule/{ruleName}");  b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);  b.p("ruleName", () => input.ruleName, "{ruleName}", false);  let body;  b.m("GET").h(headers).b(body);  return b.build();}, "se_GetArchiveRuleCommand");var se_GetFindingCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/finding/{id}");  b.p("id", () => input.id, "{id}", false);  const query = (0, import_smithy_client.map)({    [_aA]: [, (0, import_smithy_client.expectNonNull)(input[_aA], `analyzerArn`)]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_GetFindingCommand");var se_GetFindingRecommendationCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/recommendation/{id}");  b.p("id", () => input.id, "{id}", false);  const query = (0, import_smithy_client.map)({    [_aA]: [, (0, import_smithy_client.expectNonNull)(input[_aA], `analyzerArn`)],    [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],    [_nT]: [, input[_nT]]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_GetFindingRecommendationCommand");var se_GetFindingsStatisticsCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/analyzer/findings/statistics");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      analyzerArn: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_GetFindingsStatisticsCommand");var se_GetFindingV2Command = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/findingv2/{id}");  b.p("id", () => input.id, "{id}", false);  const query = (0, import_smithy_client.map)({    [_aA]: [, (0, import_smithy_client.expectNonNull)(input[_aA], `analyzerArn`)],    [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],    [_nT]: [, input[_nT]]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_GetFindingV2Command");var se_GetGeneratedPolicyCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/policy/generation/{jobId}");  b.p("jobId", () => input.jobId, "{jobId}", false);  const query = (0, import_smithy_client.map)({    [_iRP]: [() => input.includeResourcePlaceholders !== void 0, () => input[_iRP].toString()],    [_iSLT]: [() => input.includeServiceLevelTemplate !== void 0, () => input[_iSLT].toString()]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_GetGeneratedPolicyCommand");var se_ListAccessPreviewFindingsCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/access-preview/{accessPreviewId}");  b.p("accessPreviewId", () => input.accessPreviewId, "{accessPreviewId}", false);  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      analyzerArn: [],      filter: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "filter"),      maxResults: [],      nextToken: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_ListAccessPreviewFindingsCommand");var se_ListAccessPreviewsCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/access-preview");  const query = (0, import_smithy_client.map)({    [_aA]: [, (0, import_smithy_client.expectNonNull)(input[_aA], `analyzerArn`)],    [_nT]: [, input[_nT]],    [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_ListAccessPreviewsCommand");var se_ListAnalyzedResourcesCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/analyzed-resource");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      analyzerArn: [],      maxResults: [],      nextToken: [],      resourceType: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_ListAnalyzedResourcesCommand");var se_ListAnalyzersCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/analyzer");  const query = (0, import_smithy_client.map)({    [_nT]: [, input[_nT]],    [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],    [_t]: [, input[_t]]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_ListAnalyzersCommand");var se_ListArchiveRulesCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/analyzer/{analyzerName}/archive-rule");  b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);  const query = (0, import_smithy_client.map)({    [_nT]: [, input[_nT]],    [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_ListArchiveRulesCommand");var se_ListFindingsCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/finding");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      analyzerArn: [],      filter: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "filter"),      maxResults: [],      nextToken: [],      sort: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "sort")    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_ListFindingsCommand");var se_ListFindingsV2Command = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/findingv2");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      analyzerArn: [],      filter: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "filter"),      maxResults: [],      nextToken: [],      sort: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "sort")    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_ListFindingsV2Command");var se_ListPolicyGenerationsCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/policy/generation");  const query = (0, import_smithy_client.map)({    [_pA]: [, input[_pA]],    [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],    [_nT]: [, input[_nT]]  });  let body;  b.m("GET").h(headers).q(query).b(body);  return b.build();}, "se_ListPolicyGenerationsCommand");var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/tags/{resourceArn}");  b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);  let body;  b.m("GET").h(headers).b(body);  return b.build();}, "se_ListTagsForResourceCommand");var se_StartPolicyGenerationCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/policy/generation");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],      cloudTrailDetails: /* @__PURE__ */ __name((_) => se_CloudTrailDetails(_, context), "cloudTrailDetails"),      policyGenerationDetails: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "policyGenerationDetails")    })  );  b.m("PUT").h(headers).b(body);  return b.build();}, "se_StartPolicyGenerationCommand");var se_StartResourceScanCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/resource/scan");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      analyzerArn: [],      resourceArn: [],      resourceOwnerAccount: []    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_StartResourceScanCommand");var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/tags/{resourceArn}");  b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")    })  );  b.m("POST").h(headers).b(body);  return b.build();}, "se_TagResourceCommand");var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {};  b.bp("/tags/{resourceArn}");  b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);  const query = (0, import_smithy_client.map)({    [_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]  });  let body;  b.m("DELETE").h(headers).q(query).b(body);  return b.build();}, "se_UntagResourceCommand");var se_UpdateAnalyzerCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/analyzer/{analyzerName}");  b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      configuration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "configuration")    })  );  b.m("PUT").h(headers).b(body);  return b.build();}, "se_UpdateAnalyzerCommand");var se_UpdateArchiveRuleCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/analyzer/{analyzerName}/archive-rule/{ruleName}");  b.p("analyzerName", () => input.analyzerName, "{analyzerName}", false);  b.p("ruleName", () => input.ruleName, "{ruleName}", false);  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],      filter: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "filter")    })  );  b.m("PUT").h(headers).b(body);  return b.build();}, "se_UpdateArchiveRuleCommand");var se_UpdateFindingsCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/finding");  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      analyzerArn: [],      clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],      ids: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "ids"),      resourceArn: [],      status: []    })  );  b.m("PUT").h(headers).b(body);  return b.build();}, "se_UpdateFindingsCommand");var se_ValidatePolicyCommand = /* @__PURE__ */ __name(async (input, context) => {  const b = (0, import_core.requestBuilder)(input, context);  const headers = {    "content-type": "application/json"  };  b.bp("/policy/validation");  const query = (0, import_smithy_client.map)({    [_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],    [_nT]: [, input[_nT]]  });  let body;  body = JSON.stringify(    (0, import_smithy_client.take)(input, {      locale: [],      policyDocument: [],      policyType: [],      validatePolicyResourceType: []    })  );  b.m("POST").h(headers).q(query).b(body);  return b.build();}, "se_ValidatePolicyCommand");var de_ApplyArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_ApplyArchiveRuleCommand");var de_CancelPolicyGenerationCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_CancelPolicyGenerationCommand");var de_CheckAccessNotGrantedCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    message: import_smithy_client.expectString,    reasons: import_smithy_client._json,    result: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_CheckAccessNotGrantedCommand");var de_CheckNoNewAccessCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    message: import_smithy_client.expectString,    reasons: import_smithy_client._json,    result: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_CheckNoNewAccessCommand");var de_CheckNoPublicAccessCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    message: import_smithy_client.expectString,    reasons: import_smithy_client._json,    result: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_CheckNoPublicAccessCommand");var de_CreateAccessPreviewCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    id: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_CreateAccessPreviewCommand");var de_CreateAnalyzerCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    arn: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_CreateAnalyzerCommand");var de_CreateArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_CreateArchiveRuleCommand");var de_DeleteAnalyzerCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_DeleteAnalyzerCommand");var de_DeleteArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_DeleteArchiveRuleCommand");var de_GenerateFindingRecommendationCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_GenerateFindingRecommendationCommand");var de_GetAccessPreviewCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    accessPreview: /* @__PURE__ */ __name((_) => de_AccessPreview(_, context), "accessPreview")  });  Object.assign(contents, doc);  return contents;}, "de_GetAccessPreviewCommand");var de_GetAnalyzedResourceCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    resource: /* @__PURE__ */ __name((_) => de_AnalyzedResource(_, context), "resource")  });  Object.assign(contents, doc);  return contents;}, "de_GetAnalyzedResourceCommand");var de_GetAnalyzerCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    analyzer: /* @__PURE__ */ __name((_) => de_AnalyzerSummary(_, context), "analyzer")  });  Object.assign(contents, doc);  return contents;}, "de_GetAnalyzerCommand");var de_GetArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    archiveRule: /* @__PURE__ */ __name((_) => de_ArchiveRuleSummary(_, context), "archiveRule")  });  Object.assign(contents, doc);  return contents;}, "de_GetArchiveRuleCommand");var de_GetFindingCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    finding: /* @__PURE__ */ __name((_) => de_Finding(_, context), "finding")  });  Object.assign(contents, doc);  return contents;}, "de_GetFindingCommand");var de_GetFindingRecommendationCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    completedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "completedAt"),    error: import_smithy_client._json,    nextToken: import_smithy_client.expectString,    recommendationType: import_smithy_client.expectString,    recommendedSteps: /* @__PURE__ */ __name((_) => de_RecommendedStepList(_, context), "recommendedSteps"),    resourceArn: import_smithy_client.expectString,    startedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "startedAt"),    status: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_GetFindingRecommendationCommand");var de_GetFindingsStatisticsCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    findingsStatistics: import_smithy_client._json,    lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastUpdatedAt")  });  Object.assign(contents, doc);  return contents;}, "de_GetFindingsStatisticsCommand");var de_GetFindingV2Command = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    analyzedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "analyzedAt"),    createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),    error: import_smithy_client.expectString,    findingDetails: /* @__PURE__ */ __name((_) => de_FindingDetailsList(_, context), "findingDetails"),    findingType: import_smithy_client.expectString,    id: import_smithy_client.expectString,    nextToken: import_smithy_client.expectString,    resource: import_smithy_client.expectString,    resourceOwnerAccount: import_smithy_client.expectString,    resourceType: import_smithy_client.expectString,    status: import_smithy_client.expectString,    updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updatedAt")  });  Object.assign(contents, doc);  return contents;}, "de_GetFindingV2Command");var de_GetGeneratedPolicyCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    generatedPolicyResult: /* @__PURE__ */ __name((_) => de_GeneratedPolicyResult(_, context), "generatedPolicyResult"),    jobDetails: /* @__PURE__ */ __name((_) => de_JobDetails(_, context), "jobDetails")  });  Object.assign(contents, doc);  return contents;}, "de_GetGeneratedPolicyCommand");var de_ListAccessPreviewFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    findings: /* @__PURE__ */ __name((_) => de_AccessPreviewFindingsList(_, context), "findings"),    nextToken: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_ListAccessPreviewFindingsCommand");var de_ListAccessPreviewsCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    accessPreviews: /* @__PURE__ */ __name((_) => de_AccessPreviewsList(_, context), "accessPreviews"),    nextToken: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_ListAccessPreviewsCommand");var de_ListAnalyzedResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    analyzedResources: import_smithy_client._json,    nextToken: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_ListAnalyzedResourcesCommand");var de_ListAnalyzersCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    analyzers: /* @__PURE__ */ __name((_) => de_AnalyzersList(_, context), "analyzers"),    nextToken: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_ListAnalyzersCommand");var de_ListArchiveRulesCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    archiveRules: /* @__PURE__ */ __name((_) => de_ArchiveRulesList(_, context), "archiveRules"),    nextToken: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_ListArchiveRulesCommand");var de_ListFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    findings: /* @__PURE__ */ __name((_) => de_FindingsList(_, context), "findings"),    nextToken: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_ListFindingsCommand");var de_ListFindingsV2Command = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    findings: /* @__PURE__ */ __name((_) => de_FindingsListV2(_, context), "findings"),    nextToken: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_ListFindingsV2Command");var de_ListPolicyGenerationsCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    nextToken: import_smithy_client.expectString,    policyGenerations: /* @__PURE__ */ __name((_) => de_PolicyGenerationList(_, context), "policyGenerations")  });  Object.assign(contents, doc);  return contents;}, "de_ListPolicyGenerationsCommand");var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    tags: import_smithy_client._json  });  Object.assign(contents, doc);  return contents;}, "de_ListTagsForResourceCommand");var de_StartPolicyGenerationCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    jobId: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_StartPolicyGenerationCommand");var de_StartResourceScanCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_StartResourceScanCommand");var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_TagResourceCommand");var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_UntagResourceCommand");var de_UpdateAnalyzerCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    configuration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "configuration")  });  Object.assign(contents, doc);  return contents;}, "de_UpdateAnalyzerCommand");var de_UpdateArchiveRuleCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_UpdateArchiveRuleCommand");var de_UpdateFindingsCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  await (0, import_smithy_client.collectBody)(output.body, context);  return contents;}, "de_UpdateFindingsCommand");var de_ValidatePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {  if (output.statusCode !== 200 && output.statusCode >= 300) {    return de_CommandError(output, context);  }  const contents = (0, import_smithy_client.map)({    $metadata: deserializeMetadata(output)  });  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");  const doc = (0, import_smithy_client.take)(data, {    findings: import_smithy_client._json,    nextToken: import_smithy_client.expectString  });  Object.assign(contents, doc);  return contents;}, "de_ValidatePolicyCommand");var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {  const parsedOutput = {    ...output,    body: await (0, import_core2.parseJsonErrorBody)(output.body, context)  };  const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);  switch (errorCode) {    case "AccessDeniedException":    case "com.amazonaws.accessanalyzer#AccessDeniedException":      throw await de_AccessDeniedExceptionRes(parsedOutput, context);    case "InternalServerException":    case "com.amazonaws.accessanalyzer#InternalServerException":      throw await de_InternalServerExceptionRes(parsedOutput, context);    case "ResourceNotFoundException":    case "com.amazonaws.accessanalyzer#ResourceNotFoundException":      throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);    case "ThrottlingException":    case "com.amazonaws.accessanalyzer#ThrottlingException":      throw await de_ThrottlingExceptionRes(parsedOutput, context);    case "ValidationException":    case "com.amazonaws.accessanalyzer#ValidationException":      throw await de_ValidationExceptionRes(parsedOutput, context);    case "InvalidParameterException":    case "com.amazonaws.accessanalyzer#InvalidParameterException":      throw await de_InvalidParameterExceptionRes(parsedOutput, context);    case "UnprocessableEntityException":    case "com.amazonaws.accessanalyzer#UnprocessableEntityException":      throw await de_UnprocessableEntityExceptionRes(parsedOutput, context);    case "ConflictException":    case "com.amazonaws.accessanalyzer#ConflictException":      throw await de_ConflictExceptionRes(parsedOutput, context);    case "ServiceQuotaExceededException":    case "com.amazonaws.accessanalyzer#ServiceQuotaExceededException":      throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);    default:      const parsedBody = parsedOutput.body;      return throwDefaultError({        output,        parsedBody,        errorCode      });  }}, "de_CommandError");var throwDefaultError = (0, import_smithy_client.withBaseException)(AccessAnalyzerServiceException);var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    message: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new AccessDeniedException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_AccessDeniedExceptionRes");var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    message: import_smithy_client.expectString,    resourceId: import_smithy_client.expectString,    resourceType: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new ConflictException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ConflictExceptionRes");var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({    [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]  });  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    message: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new InternalServerException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_InternalServerExceptionRes");var de_InvalidParameterExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    message: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new InvalidParameterException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_InvalidParameterExceptionRes");var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    message: import_smithy_client.expectString,    resourceId: import_smithy_client.expectString,    resourceType: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new ResourceNotFoundException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ResourceNotFoundExceptionRes");var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    message: import_smithy_client.expectString,    resourceId: import_smithy_client.expectString,    resourceType: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new ServiceQuotaExceededException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ServiceQuotaExceededExceptionRes");var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({    [_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]  });  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    message: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new ThrottlingException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ThrottlingExceptionRes");var de_UnprocessableEntityExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    message: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new UnprocessableEntityException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_UnprocessableEntityExceptionRes");var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {  const contents = (0, import_smithy_client.map)({});  const data = parsedOutput.body;  const doc = (0, import_smithy_client.take)(data, {    fieldList: import_smithy_client._json,    message: import_smithy_client.expectString,    reason: import_smithy_client.expectString  });  Object.assign(contents, doc);  const exception = new ValidationException({    $metadata: deserializeMetadata(parsedOutput),    ...contents  });  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);}, "de_ValidationExceptionRes");var se_CloudTrailDetails = /* @__PURE__ */ __name((input, context) => {  return (0, import_smithy_client.take)(input, {    accessRole: [],    endTime: import_smithy_client.serializeDateTime,    startTime: import_smithy_client.serializeDateTime,    trails: import_smithy_client._json  });}, "se_CloudTrailDetails");var de_AccessPreview = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    analyzerArn: import_smithy_client.expectString,    configurations: import_smithy_client._json,    createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),    id: import_smithy_client.expectString,    status: import_smithy_client.expectString,    statusReason: import_smithy_client._json  });}, "de_AccessPreview");var de_AccessPreviewFinding = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    action: import_smithy_client._json,    changeType: import_smithy_client.expectString,    condition: import_smithy_client._json,    createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),    error: import_smithy_client.expectString,    existingFindingId: import_smithy_client.expectString,    existingFindingStatus: import_smithy_client.expectString,    id: import_smithy_client.expectString,    isPublic: import_smithy_client.expectBoolean,    principal: import_smithy_client._json,    resource: import_smithy_client.expectString,    resourceControlPolicyRestriction: import_smithy_client.expectString,    resourceOwnerAccount: import_smithy_client.expectString,    resourceType: import_smithy_client.expectString,    sources: import_smithy_client._json,    status: import_smithy_client.expectString  });}, "de_AccessPreviewFinding");var de_AccessPreviewFindingsList = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_AccessPreviewFinding(entry, context);  });  return retVal;}, "de_AccessPreviewFindingsList");var de_AccessPreviewsList = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_AccessPreviewSummary(entry, context);  });  return retVal;}, "de_AccessPreviewsList");var de_AccessPreviewSummary = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    analyzerArn: import_smithy_client.expectString,    createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),    id: import_smithy_client.expectString,    status: import_smithy_client.expectString,    statusReason: import_smithy_client._json  });}, "de_AccessPreviewSummary");var de_AnalyzedResource = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    actions: import_smithy_client._json,    analyzedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "analyzedAt"),    createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),    error: import_smithy_client.expectString,    isPublic: import_smithy_client.expectBoolean,    resourceArn: import_smithy_client.expectString,    resourceOwnerAccount: import_smithy_client.expectString,    resourceType: import_smithy_client.expectString,    sharedVia: import_smithy_client._json,    status: import_smithy_client.expectString,    updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updatedAt")  });}, "de_AnalyzedResource");var de_AnalyzersList = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_AnalyzerSummary(entry, context);  });  return retVal;}, "de_AnalyzersList");var de_AnalyzerSummary = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    arn: import_smithy_client.expectString,    configuration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)), "configuration"),    createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),    lastResourceAnalyzed: import_smithy_client.expectString,    lastResourceAnalyzedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastResourceAnalyzedAt"),    name: import_smithy_client.expectString,    status: import_smithy_client.expectString,    statusReason: import_smithy_client._json,    tags: import_smithy_client._json,    type: import_smithy_client.expectString  });}, "de_AnalyzerSummary");var de_ArchiveRulesList = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_ArchiveRuleSummary(entry, context);  });  return retVal;}, "de_ArchiveRulesList");var de_ArchiveRuleSummary = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),    filter: import_smithy_client._json,    ruleName: import_smithy_client.expectString,    updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updatedAt")  });}, "de_ArchiveRuleSummary");var de_CloudTrailProperties = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    endTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "endTime"),    startTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "startTime"),    trailProperties: import_smithy_client._json  });}, "de_CloudTrailProperties");var de_Finding = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    action: import_smithy_client._json,    analyzedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "analyzedAt"),    condition: import_smithy_client._json,    createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),    error: import_smithy_client.expectString,    id: import_smithy_client.expectString,    isPublic: import_smithy_client.expectBoolean,    principal: import_smithy_client._json,    resource: import_smithy_client.expectString,    resourceControlPolicyRestriction: import_smithy_client.expectString,    resourceOwnerAccount: import_smithy_client.expectString,    resourceType: import_smithy_client.expectString,    sources: import_smithy_client._json,    status: import_smithy_client.expectString,    updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updatedAt")  });}, "de_Finding");var de_FindingDetails = /* @__PURE__ */ __name((output, context) => {  if (output.externalAccessDetails != null) {    return {      externalAccessDetails: (0, import_smithy_client._json)(output.externalAccessDetails)    };  }  if (output.internalAccessDetails != null) {    return {      internalAccessDetails: (0, import_smithy_client._json)(output.internalAccessDetails)    };  }  if (output.unusedIamRoleDetails != null) {    return {      unusedIamRoleDetails: de_UnusedIamRoleDetails(output.unusedIamRoleDetails, context)    };  }  if (output.unusedIamUserAccessKeyDetails != null) {    return {      unusedIamUserAccessKeyDetails: de_UnusedIamUserAccessKeyDetails(output.unusedIamUserAccessKeyDetails, context)    };  }  if (output.unusedIamUserPasswordDetails != null) {    return {      unusedIamUserPasswordDetails: de_UnusedIamUserPasswordDetails(output.unusedIamUserPasswordDetails, context)    };  }  if (output.unusedPermissionDetails != null) {    return {      unusedPermissionDetails: de_UnusedPermissionDetails(output.unusedPermissionDetails, context)    };  }  return { $unknown: Object.entries(output)[0] };}, "de_FindingDetails");var de_FindingDetailsList = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_FindingDetails((0, import_core2.awsExpectUnion)(entry), context);  });  return retVal;}, "de_FindingDetailsList");var de_FindingsList = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_FindingSummary(entry, context);  });  return retVal;}, "de_FindingsList");var de_FindingsListV2 = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_FindingSummaryV2(entry, context);  });  return retVal;}, "de_FindingsListV2");var de_FindingSummary = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    action: import_smithy_client._json,    analyzedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "analyzedAt"),    condition: import_smithy_client._json,    createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),    error: import_smithy_client.expectString,    id: import_smithy_client.expectString,    isPublic: import_smithy_client.expectBoolean,    principal: import_smithy_client._json,    resource: import_smithy_client.expectString,    resourceControlPolicyRestriction: import_smithy_client.expectString,    resourceOwnerAccount: import_smithy_client.expectString,    resourceType: import_smithy_client.expectString,    sources: import_smithy_client._json,    status: import_smithy_client.expectString,    updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updatedAt")  });}, "de_FindingSummary");var de_FindingSummaryV2 = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    analyzedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "analyzedAt"),    createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),    error: import_smithy_client.expectString,    findingType: import_smithy_client.expectString,    id: import_smithy_client.expectString,    resource: import_smithy_client.expectString,    resourceOwnerAccount: import_smithy_client.expectString,    resourceType: import_smithy_client.expectString,    status: import_smithy_client.expectString,    updatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "updatedAt")  });}, "de_FindingSummaryV2");var de_GeneratedPolicyProperties = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    cloudTrailProperties: /* @__PURE__ */ __name((_) => de_CloudTrailProperties(_, context), "cloudTrailProperties"),    isComplete: import_smithy_client.expectBoolean,    principalArn: import_smithy_client.expectString  });}, "de_GeneratedPolicyProperties");var de_GeneratedPolicyResult = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    generatedPolicies: import_smithy_client._json,    properties: /* @__PURE__ */ __name((_) => de_GeneratedPolicyProperties(_, context), "properties")  });}, "de_GeneratedPolicyResult");var de_JobDetails = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    completedOn: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "completedOn"),    jobError: import_smithy_client._json,    jobId: import_smithy_client.expectString,    startedOn: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "startedOn"),    status: import_smithy_client.expectString  });}, "de_JobDetails");var de_PolicyGeneration = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    completedOn: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "completedOn"),    jobId: import_smithy_client.expectString,    principalArn: import_smithy_client.expectString,    startedOn: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "startedOn"),    status: import_smithy_client.expectString  });}, "de_PolicyGeneration");var de_PolicyGenerationList = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_PolicyGeneration(entry, context);  });  return retVal;}, "de_PolicyGenerationList");var de_RecommendedStep = /* @__PURE__ */ __name((output, context) => {  if (output.unusedPermissionsRecommendedStep != null) {    return {      unusedPermissionsRecommendedStep: de_UnusedPermissionsRecommendedStep(        output.unusedPermissionsRecommendedStep,        context      )    };  }  return { $unknown: Object.entries(output)[0] };}, "de_RecommendedStep");var de_RecommendedStepList = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_RecommendedStep((0, import_core2.awsExpectUnion)(entry), context);  });  return retVal;}, "de_RecommendedStepList");var de_UnusedAction = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    action: import_smithy_client.expectString,    lastAccessed: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastAccessed")  });}, "de_UnusedAction");var de_UnusedActionList = /* @__PURE__ */ __name((output, context) => {  const retVal = (output || []).filter((e) => e != null).map((entry) => {    return de_UnusedAction(entry, context);  });  return retVal;}, "de_UnusedActionList");var de_UnusedIamRoleDetails = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    lastAccessed: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastAccessed")  });}, "de_UnusedIamRoleDetails");var de_UnusedIamUserAccessKeyDetails = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    accessKeyId: import_smithy_client.expectString,    lastAccessed: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastAccessed")  });}, "de_UnusedIamUserAccessKeyDetails");var de_UnusedIamUserPasswordDetails = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    lastAccessed: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastAccessed")  });}, "de_UnusedIamUserPasswordDetails");var de_UnusedPermissionDetails = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    actions: /* @__PURE__ */ __name((_) => de_UnusedActionList(_, context), "actions"),    lastAccessed: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastAccessed"),    serviceNamespace: import_smithy_client.expectString  });}, "de_UnusedPermissionDetails");var de_UnusedPermissionsRecommendedStep = /* @__PURE__ */ __name((output, context) => {  return (0, import_smithy_client.take)(output, {    existingPolicyId: import_smithy_client.expectString,    policyUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "policyUpdatedAt"),    recommendedAction: import_smithy_client.expectString,    recommendedPolicy: import_smithy_client.expectString  });}, "de_UnusedPermissionsRecommendedStep");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 _aA = "analyzerArn";var _cT = "clientToken";var _iRP = "includeResourcePlaceholders";var _iSLT = "includeServiceLevelTemplate";var _mR = "maxResults";var _nT = "nextToken";var _pA = "principalArn";var _rA = "resourceArn";var _rAS = "retryAfterSeconds";var _ra = "retry-after";var _t = "type";var _tK = "tagKeys"; // src/commands/ApplyArchiveRuleCommand.tsvar ApplyArchiveRuleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "ApplyArchiveRule", {}).n("AccessAnalyzerClient", "ApplyArchiveRuleCommand").f(void 0, void 0).ser(se_ApplyArchiveRuleCommand).de(de_ApplyArchiveRuleCommand).build() {  static {    __name(this, "ApplyArchiveRuleCommand");  }}; // src/commands/CancelPolicyGenerationCommand.ts   var CancelPolicyGenerationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "CancelPolicyGeneration", {}).n("AccessAnalyzerClient", "CancelPolicyGenerationCommand").f(void 0, void 0).ser(se_CancelPolicyGenerationCommand).de(de_CancelPolicyGenerationCommand).build() {  static {    __name(this, "CancelPolicyGenerationCommand");  }}; // src/commands/CheckAccessNotGrantedCommand.ts   var CheckAccessNotGrantedCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "CheckAccessNotGranted", {}).n("AccessAnalyzerClient", "CheckAccessNotGrantedCommand").f(CheckAccessNotGrantedRequestFilterSensitiveLog, void 0).ser(se_CheckAccessNotGrantedCommand).de(de_CheckAccessNotGrantedCommand).build() {  static {    __name(this, "CheckAccessNotGrantedCommand");  }}; // src/commands/CheckNoNewAccessCommand.ts   var CheckNoNewAccessCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "CheckNoNewAccess", {}).n("AccessAnalyzerClient", "CheckNoNewAccessCommand").f(CheckNoNewAccessRequestFilterSensitiveLog, void 0).ser(se_CheckNoNewAccessCommand).de(de_CheckNoNewAccessCommand).build() {  static {    __name(this, "CheckNoNewAccessCommand");  }}; // src/commands/CheckNoPublicAccessCommand.ts   var CheckNoPublicAccessCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "CheckNoPublicAccess", {}).n("AccessAnalyzerClient", "CheckNoPublicAccessCommand").f(CheckNoPublicAccessRequestFilterSensitiveLog, void 0).ser(se_CheckNoPublicAccessCommand).de(de_CheckNoPublicAccessCommand).build() {  static {    __name(this, "CheckNoPublicAccessCommand");  }}; // src/commands/CreateAccessPreviewCommand.ts   var CreateAccessPreviewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "CreateAccessPreview", {}).n("AccessAnalyzerClient", "CreateAccessPreviewCommand").f(void 0, void 0).ser(se_CreateAccessPreviewCommand).de(de_CreateAccessPreviewCommand).build() {  static {    __name(this, "CreateAccessPreviewCommand");  }}; // src/commands/CreateAnalyzerCommand.ts   var CreateAnalyzerCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "CreateAnalyzer", {}).n("AccessAnalyzerClient", "CreateAnalyzerCommand").f(void 0, void 0).ser(se_CreateAnalyzerCommand).de(de_CreateAnalyzerCommand).build() {  static {    __name(this, "CreateAnalyzerCommand");  }}; // src/commands/CreateArchiveRuleCommand.ts   var CreateArchiveRuleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "CreateArchiveRule", {}).n("AccessAnalyzerClient", "CreateArchiveRuleCommand").f(void 0, void 0).ser(se_CreateArchiveRuleCommand).de(de_CreateArchiveRuleCommand).build() {  static {    __name(this, "CreateArchiveRuleCommand");  }}; // src/commands/DeleteAnalyzerCommand.ts   var DeleteAnalyzerCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "DeleteAnalyzer", {}).n("AccessAnalyzerClient", "DeleteAnalyzerCommand").f(void 0, void 0).ser(se_DeleteAnalyzerCommand).de(de_DeleteAnalyzerCommand).build() {  static {    __name(this, "DeleteAnalyzerCommand");  }}; // src/commands/DeleteArchiveRuleCommand.ts   var DeleteArchiveRuleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "DeleteArchiveRule", {}).n("AccessAnalyzerClient", "DeleteArchiveRuleCommand").f(void 0, void 0).ser(se_DeleteArchiveRuleCommand).de(de_DeleteArchiveRuleCommand).build() {  static {    __name(this, "DeleteArchiveRuleCommand");  }}; // src/commands/GenerateFindingRecommendationCommand.ts   var GenerateFindingRecommendationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "GenerateFindingRecommendation", {}).n("AccessAnalyzerClient", "GenerateFindingRecommendationCommand").f(void 0, void 0).ser(se_GenerateFindingRecommendationCommand).de(de_GenerateFindingRecommendationCommand).build() {  static {    __name(this, "GenerateFindingRecommendationCommand");  }}; // src/commands/GetAccessPreviewCommand.ts   var GetAccessPreviewCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "GetAccessPreview", {}).n("AccessAnalyzerClient", "GetAccessPreviewCommand").f(void 0, void 0).ser(se_GetAccessPreviewCommand).de(de_GetAccessPreviewCommand).build() {  static {    __name(this, "GetAccessPreviewCommand");  }}; // src/commands/GetAnalyzedResourceCommand.ts   var GetAnalyzedResourceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "GetAnalyzedResource", {}).n("AccessAnalyzerClient", "GetAnalyzedResourceCommand").f(void 0, void 0).ser(se_GetAnalyzedResourceCommand).de(de_GetAnalyzedResourceCommand).build() {  static {    __name(this, "GetAnalyzedResourceCommand");  }}; // src/commands/GetAnalyzerCommand.ts   var GetAnalyzerCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "GetAnalyzer", {}).n("AccessAnalyzerClient", "GetAnalyzerCommand").f(void 0, void 0).ser(se_GetAnalyzerCommand).de(de_GetAnalyzerCommand).build() {  static {    __name(this, "GetAnalyzerCommand");  }}; // src/commands/GetArchiveRuleCommand.ts   var GetArchiveRuleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "GetArchiveRule", {}).n("AccessAnalyzerClient", "GetArchiveRuleCommand").f(void 0, void 0).ser(se_GetArchiveRuleCommand).de(de_GetArchiveRuleCommand).build() {  static {    __name(this, "GetArchiveRuleCommand");  }}; // src/commands/GetFindingCommand.ts   var GetFindingCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "GetFinding", {}).n("AccessAnalyzerClient", "GetFindingCommand").f(void 0, void 0).ser(se_GetFindingCommand).de(de_GetFindingCommand).build() {  static {    __name(this, "GetFindingCommand");  }}; // src/commands/GetFindingRecommendationCommand.ts   var GetFindingRecommendationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "GetFindingRecommendation", {}).n("AccessAnalyzerClient", "GetFindingRecommendationCommand").f(void 0, void 0).ser(se_GetFindingRecommendationCommand).de(de_GetFindingRecommendationCommand).build() {  static {    __name(this, "GetFindingRecommendationCommand");  }}; // src/commands/GetFindingsStatisticsCommand.ts   var GetFindingsStatisticsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "GetFindingsStatistics", {}).n("AccessAnalyzerClient", "GetFindingsStatisticsCommand").f(void 0, void 0).ser(se_GetFindingsStatisticsCommand).de(de_GetFindingsStatisticsCommand).build() {  static {    __name(this, "GetFindingsStatisticsCommand");  }}; // src/commands/GetFindingV2Command.ts   var GetFindingV2Command = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "GetFindingV2", {}).n("AccessAnalyzerClient", "GetFindingV2Command").f(void 0, void 0).ser(se_GetFindingV2Command).de(de_GetFindingV2Command).build() {  static {    __name(this, "GetFindingV2Command");  }}; // src/commands/GetGeneratedPolicyCommand.ts   var GetGeneratedPolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "GetGeneratedPolicy", {}).n("AccessAnalyzerClient", "GetGeneratedPolicyCommand").f(void 0, void 0).ser(se_GetGeneratedPolicyCommand).de(de_GetGeneratedPolicyCommand).build() {  static {    __name(this, "GetGeneratedPolicyCommand");  }}; // src/commands/ListAccessPreviewFindingsCommand.ts   var ListAccessPreviewFindingsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "ListAccessPreviewFindings", {}).n("AccessAnalyzerClient", "ListAccessPreviewFindingsCommand").f(void 0, void 0).ser(se_ListAccessPreviewFindingsCommand).de(de_ListAccessPreviewFindingsCommand).build() {  static {    __name(this, "ListAccessPreviewFindingsCommand");  }}; // src/commands/ListAccessPreviewsCommand.ts   var ListAccessPreviewsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "ListAccessPreviews", {}).n("AccessAnalyzerClient", "ListAccessPreviewsCommand").f(void 0, void 0).ser(se_ListAccessPreviewsCommand).de(de_ListAccessPreviewsCommand).build() {  static {    __name(this, "ListAccessPreviewsCommand");  }}; // src/commands/ListAnalyzedResourcesCommand.ts   var ListAnalyzedResourcesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "ListAnalyzedResources", {}).n("AccessAnalyzerClient", "ListAnalyzedResourcesCommand").f(void 0, void 0).ser(se_ListAnalyzedResourcesCommand).de(de_ListAnalyzedResourcesCommand).build() {  static {    __name(this, "ListAnalyzedResourcesCommand");  }}; // src/commands/ListAnalyzersCommand.ts   var ListAnalyzersCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "ListAnalyzers", {}).n("AccessAnalyzerClient", "ListAnalyzersCommand").f(void 0, void 0).ser(se_ListAnalyzersCommand).de(de_ListAnalyzersCommand).build() {  static {    __name(this, "ListAnalyzersCommand");  }}; // src/commands/ListArchiveRulesCommand.ts   var ListArchiveRulesCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "ListArchiveRules", {}).n("AccessAnalyzerClient", "ListArchiveRulesCommand").f(void 0, void 0).ser(se_ListArchiveRulesCommand).de(de_ListArchiveRulesCommand).build() {  static {    __name(this, "ListArchiveRulesCommand");  }}; // src/commands/ListFindingsCommand.ts   var ListFindingsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "ListFindings", {}).n("AccessAnalyzerClient", "ListFindingsCommand").f(void 0, void 0).ser(se_ListFindingsCommand).de(de_ListFindingsCommand).build() {  static {    __name(this, "ListFindingsCommand");  }}; // src/commands/ListFindingsV2Command.ts   var ListFindingsV2Command = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "ListFindingsV2", {}).n("AccessAnalyzerClient", "ListFindingsV2Command").f(void 0, void 0).ser(se_ListFindingsV2Command).de(de_ListFindingsV2Command).build() {  static {    __name(this, "ListFindingsV2Command");  }}; // src/commands/ListPolicyGenerationsCommand.ts   var ListPolicyGenerationsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "ListPolicyGenerations", {}).n("AccessAnalyzerClient", "ListPolicyGenerationsCommand").f(void 0, void 0).ser(se_ListPolicyGenerationsCommand).de(de_ListPolicyGenerationsCommand).build() {  static {    __name(this, "ListPolicyGenerationsCommand");  }}; // 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("AccessAnalyzer", "ListTagsForResource", {}).n("AccessAnalyzerClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {  static {    __name(this, "ListTagsForResourceCommand");  }}; // src/commands/StartPolicyGenerationCommand.ts   var StartPolicyGenerationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "StartPolicyGeneration", {}).n("AccessAnalyzerClient", "StartPolicyGenerationCommand").f(void 0, void 0).ser(se_StartPolicyGenerationCommand).de(de_StartPolicyGenerationCommand).build() {  static {    __name(this, "StartPolicyGenerationCommand");  }}; // src/commands/StartResourceScanCommand.ts   var StartResourceScanCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "StartResourceScan", {}).n("AccessAnalyzerClient", "StartResourceScanCommand").f(void 0, void 0).ser(se_StartResourceScanCommand).de(de_StartResourceScanCommand).build() {  static {    __name(this, "StartResourceScanCommand");  }}; // 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("AccessAnalyzer", "TagResource", {}).n("AccessAnalyzerClient", "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("AccessAnalyzer", "UntagResource", {}).n("AccessAnalyzerClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {  static {    __name(this, "UntagResourceCommand");  }}; // src/commands/UpdateAnalyzerCommand.ts   var UpdateAnalyzerCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "UpdateAnalyzer", {}).n("AccessAnalyzerClient", "UpdateAnalyzerCommand").f(void 0, void 0).ser(se_UpdateAnalyzerCommand).de(de_UpdateAnalyzerCommand).build() {  static {    __name(this, "UpdateAnalyzerCommand");  }}; // src/commands/UpdateArchiveRuleCommand.ts   var UpdateArchiveRuleCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "UpdateArchiveRule", {}).n("AccessAnalyzerClient", "UpdateArchiveRuleCommand").f(void 0, void 0).ser(se_UpdateArchiveRuleCommand).de(de_UpdateArchiveRuleCommand).build() {  static {    __name(this, "UpdateArchiveRuleCommand");  }}; // src/commands/UpdateFindingsCommand.ts   var UpdateFindingsCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "UpdateFindings", {}).n("AccessAnalyzerClient", "UpdateFindingsCommand").f(void 0, void 0).ser(se_UpdateFindingsCommand).de(de_UpdateFindingsCommand).build() {  static {    __name(this, "UpdateFindingsCommand");  }}; // src/commands/ValidatePolicyCommand.ts   var ValidatePolicyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {  return [    (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),    (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())  ];}).s("AccessAnalyzer", "ValidatePolicy", {}).n("AccessAnalyzerClient", "ValidatePolicyCommand").f(void 0, void 0).ser(se_ValidatePolicyCommand).de(de_ValidatePolicyCommand).build() {  static {    __name(this, "ValidatePolicyCommand");  }}; // src/AccessAnalyzer.tsvar commands = {  ApplyArchiveRuleCommand,  CancelPolicyGenerationCommand,  CheckAccessNotGrantedCommand,  CheckNoNewAccessCommand,  CheckNoPublicAccessCommand,  CreateAccessPreviewCommand,  CreateAnalyzerCommand,  CreateArchiveRuleCommand,  DeleteAnalyzerCommand,  DeleteArchiveRuleCommand,  GenerateFindingRecommendationCommand,  GetAccessPreviewCommand,  GetAnalyzedResourceCommand,  GetAnalyzerCommand,  GetArchiveRuleCommand,  GetFindingCommand,  GetFindingRecommendationCommand,  GetFindingsStatisticsCommand,  GetFindingV2Command,  GetGeneratedPolicyCommand,  ListAccessPreviewFindingsCommand,  ListAccessPreviewsCommand,  ListAnalyzedResourcesCommand,  ListAnalyzersCommand,  ListArchiveRulesCommand,  ListFindingsCommand,  ListFindingsV2Command,  ListPolicyGenerationsCommand,  ListTagsForResourceCommand,  StartPolicyGenerationCommand,  StartResourceScanCommand,  TagResourceCommand,  UntagResourceCommand,  UpdateAnalyzerCommand,  UpdateArchiveRuleCommand,  UpdateFindingsCommand,  ValidatePolicyCommand};var AccessAnalyzer = class extends AccessAnalyzerClient {  static {    __name(this, "AccessAnalyzer");  }};(0, import_smithy_client.createAggregatedClient)(commands, AccessAnalyzer); // src/pagination/GetFindingRecommendationPaginator.ts var paginateGetFindingRecommendation = (0, import_core.createPaginator)(AccessAnalyzerClient, GetFindingRecommendationCommand, "nextToken", "nextToken", "maxResults"); // src/pagination/GetFindingV2Paginator.ts var paginateGetFindingV2 = (0, import_core.createPaginator)(AccessAnalyzerClient, GetFindingV2Command, "nextToken", "nextToken", "maxResults"); // src/pagination/ListAccessPreviewFindingsPaginator.ts var paginateListAccessPreviewFindings = (0, import_core.createPaginator)(AccessAnalyzerClient, ListAccessPreviewFindingsCommand, "nextToken", "nextToken", "maxResults"); // src/pagination/ListAccessPreviewsPaginator.ts var paginateListAccessPreviews = (0, import_core.createPaginator)(AccessAnalyzerClient, ListAccessPreviewsCommand, "nextToken", "nextToken", "maxResults"); // src/pagination/ListAnalyzedResourcesPaginator.ts var paginateListAnalyzedResources = (0, import_core.createPaginator)(AccessAnalyzerClient, ListAnalyzedResourcesCommand, "nextToken", "nextToken", "maxResults"); // src/pagination/ListAnalyzersPaginator.ts var paginateListAnalyzers = (0, import_core.createPaginator)(AccessAnalyzerClient, ListAnalyzersCommand, "nextToken", "nextToken", "maxResults"); // src/pagination/ListArchiveRulesPaginator.ts var paginateListArchiveRules = (0, import_core.createPaginator)(AccessAnalyzerClient, ListArchiveRulesCommand, "nextToken", "nextToken", "maxResults"); // src/pagination/ListFindingsPaginator.ts var paginateListFindings = (0, import_core.createPaginator)(AccessAnalyzerClient, ListFindingsCommand, "nextToken", "nextToken", "maxResults"); // src/pagination/ListFindingsV2Paginator.ts var paginateListFindingsV2 = (0, import_core.createPaginator)(AccessAnalyzerClient, ListFindingsV2Command, "nextToken", "nextToken", "maxResults"); // src/pagination/ListPolicyGenerationsPaginator.ts var paginateListPolicyGenerations = (0, import_core.createPaginator)(AccessAnalyzerClient, ListPolicyGenerationsCommand, "nextToken", "nextToken", "maxResults"); // src/pagination/ValidatePolicyPaginator.ts var paginateValidatePolicy = (0, import_core.createPaginator)(AccessAnalyzerClient, ValidatePolicyCommand, "nextToken", "nextToken", "maxResults");// Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = {  AccessAnalyzerServiceException,  __Client,  AccessAnalyzerClient,  AccessAnalyzer,  $Command,  ApplyArchiveRuleCommand,  CancelPolicyGenerationCommand,  CheckAccessNotGrantedCommand,  CheckNoNewAccessCommand,  CheckNoPublicAccessCommand,  CreateAccessPreviewCommand,  CreateAnalyzerCommand,  CreateArchiveRuleCommand,  DeleteAnalyzerCommand,  DeleteArchiveRuleCommand,  GenerateFindingRecommendationCommand,  GetAccessPreviewCommand,  GetAnalyzedResourceCommand,  GetAnalyzerCommand,  GetArchiveRuleCommand,  GetFindingCommand,  GetFindingRecommendationCommand,  GetFindingV2Command,  GetFindingsStatisticsCommand,  GetGeneratedPolicyCommand,  ListAccessPreviewFindingsCommand,  ListAccessPreviewsCommand,  ListAnalyzedResourcesCommand,  ListAnalyzersCommand,  ListArchiveRulesCommand,  ListFindingsCommand,  ListFindingsV2Command,  ListPolicyGenerationsCommand,  ListTagsForResourceCommand,  StartPolicyGenerationCommand,  StartResourceScanCommand,  TagResourceCommand,  UntagResourceCommand,  UpdateAnalyzerCommand,  UpdateArchiveRuleCommand,  UpdateFindingsCommand,  ValidatePolicyCommand,  paginateGetFindingRecommendation,  paginateGetFindingV2,  paginateListAccessPreviewFindings,  paginateListAccessPreviews,  paginateListAnalyzedResources,  paginateListAnalyzers,  paginateListArchiveRules,  paginateListFindings,  paginateListFindingsV2,  paginateListPolicyGenerations,  paginateValidatePolicy,  AccessDeniedException,  ConflictException,  InternalServerException,  ResourceNotFoundException,  ServiceQuotaExceededException,  ThrottlingException,  ValidationExceptionReason,  ValidationException,  AnalyzerConfiguration,  AccessCheckPolicyType,  CheckAccessNotGrantedResult,  InvalidParameterException,  UnprocessableEntityException,  CheckNoNewAccessResult,  AccessCheckResourceType,  CheckNoPublicAccessResult,  KmsGrantOperation,  RdsDbClusterSnapshotAttributeValue,  RdsDbSnapshotAttributeValue,  NetworkOriginConfiguration,  AclGrantee,  AclPermission,  Configuration,  AccessPreviewStatus,  AccessPreviewStatusReasonCode,  ResourceControlPolicyRestriction,  RecommendationType,  RecommendedRemediationAction,  RecommendedStep,  Status,  FindingsStatistics,  InternalAccessType,  PrincipalType,  ServiceControlPolicyRestriction,  FindingDetails,  FindingType,  JobErrorCode,  JobStatus,  FindingChangeType,  Locale,  PolicyType,  ValidatePolicyResourceType,  ValidatePolicyFindingType,  PathElement,  CheckAccessNotGrantedRequestFilterSensitiveLog,  CheckNoNewAccessRequestFilterSensitiveLog,  CheckNoPublicAccessRequestFilterSensitiveLog});