File Explorer

/proc/self/root/var/runtime/node_modules/@aws-sdk/client-appconfig/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 /.

index.js36.5 KB · 986 lines
'use strict'; var client$1 = require('@aws-sdk/core/client');var core = require('@smithy/core');var client = require('@smithy/core/client');var config = require('@smithy/core/config');var endpoints = require('@smithy/core/endpoints');var protocols = require('@smithy/core/protocols');var retry = require('@smithy/core/retry');var schema = require('@smithy/core/schema');var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');var runtimeConfig = require('./runtimeConfig');var schemas_0 = require('./schemas/schemas_0');var errors = require('./models/errors');var AppConfigServiceException = require('./models/AppConfigServiceException'); const resolveClientEndpointParameters = (options) => {    return Object.assign(options, {        useDualstackEndpoint: options.useDualstackEndpoint ?? false,        useFipsEndpoint: options.useFipsEndpoint ?? false,        defaultSigningName: "appconfig",    });};const commonParams = {    UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },    Endpoint: { type: "builtInParams", name: "endpoint" },    Region: { type: "builtInParams", name: "region" },    UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },}; const getHttpAuthExtensionConfiguration = (runtimeConfig) => {    const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;    let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;    let _credentials = runtimeConfig.credentials;    return {        setHttpAuthScheme(httpAuthScheme) {            const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);            if (index === -1) {                _httpAuthSchemes.push(httpAuthScheme);            }            else {                _httpAuthSchemes.splice(index, 1, httpAuthScheme);            }        },        httpAuthSchemes() {            return _httpAuthSchemes;        },        setHttpAuthSchemeProvider(httpAuthSchemeProvider) {            _httpAuthSchemeProvider = httpAuthSchemeProvider;        },        httpAuthSchemeProvider() {            return _httpAuthSchemeProvider;        },        setCredentials(credentials) {            _credentials = credentials;        },        credentials() {            return _credentials;        },    };};const resolveHttpAuthRuntimeConfig = (config) => {    return {        httpAuthSchemes: config.httpAuthSchemes(),        httpAuthSchemeProvider: config.httpAuthSchemeProvider(),        credentials: config.credentials(),    };}; const resolveRuntimeExtensions = (runtimeConfig, extensions) => {    const extensionConfiguration = Object.assign(client$1.getAwsRegionExtensionConfiguration(runtimeConfig), client.getDefaultExtensionConfiguration(runtimeConfig), protocols.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));    extensions.forEach((extension) => extension.configure(extensionConfiguration));    return Object.assign(runtimeConfig, client$1.resolveAwsRegionExtensionConfiguration(extensionConfiguration), client.resolveDefaultRuntimeConfig(extensionConfiguration), protocols.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));}; class AppConfigClient extends client.Client {    config;    constructor(...[configuration]) {        const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});        super(_config_0);        this.initConfig = _config_0;        const _config_1 = resolveClientEndpointParameters(_config_0);        const _config_2 = client$1.resolveUserAgentConfig(_config_1);        const _config_3 = retry.resolveRetryConfig(_config_2);        const _config_4 = config.resolveRegionConfig(_config_3);        const _config_5 = client$1.resolveHostHeaderConfig(_config_4);        const _config_6 = endpoints.resolveEndpointConfig(_config_5);        const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);        const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);        this.config = _config_8;        this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));        this.middlewareStack.use(client$1.getUserAgentPlugin(this.config));        this.middlewareStack.use(retry.getRetryPlugin(this.config));        this.middlewareStack.use(protocols.getContentLengthPlugin(this.config));        this.middlewareStack.use(client$1.getHostHeaderPlugin(this.config));        this.middlewareStack.use(client$1.getLoggerPlugin(this.config));        this.middlewareStack.use(client$1.getRecursionDetectionPlugin(this.config));        this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {            httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultAppConfigHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(core.getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} class CreateApplicationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "CreateApplication", {})    .n("AppConfigClient", "CreateApplicationCommand")    .sc(schemas_0.CreateApplication$)    .build() {} class CreateConfigurationProfileCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "CreateConfigurationProfile", {})    .n("AppConfigClient", "CreateConfigurationProfileCommand")    .sc(schemas_0.CreateConfigurationProfile$)    .build() {} class CreateDeploymentStrategyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "CreateDeploymentStrategy", {})    .n("AppConfigClient", "CreateDeploymentStrategyCommand")    .sc(schemas_0.CreateDeploymentStrategy$)    .build() {} class CreateEnvironmentCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "CreateEnvironment", {})    .n("AppConfigClient", "CreateEnvironmentCommand")    .sc(schemas_0.CreateEnvironment$)    .build() {} class CreateExtensionAssociationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "CreateExtensionAssociation", {})    .n("AppConfigClient", "CreateExtensionAssociationCommand")    .sc(schemas_0.CreateExtensionAssociation$)    .build() {} class CreateExtensionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "CreateExtension", {})    .n("AppConfigClient", "CreateExtensionCommand")    .sc(schemas_0.CreateExtension$)    .build() {} class CreateHostedConfigurationVersionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "CreateHostedConfigurationVersion", {})    .n("AppConfigClient", "CreateHostedConfigurationVersionCommand")    .sc(schemas_0.CreateHostedConfigurationVersion$)    .build() {} class DeleteApplicationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "DeleteApplication", {})    .n("AppConfigClient", "DeleteApplicationCommand")    .sc(schemas_0.DeleteApplication$)    .build() {} class DeleteConfigurationProfileCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "DeleteConfigurationProfile", {})    .n("AppConfigClient", "DeleteConfigurationProfileCommand")    .sc(schemas_0.DeleteConfigurationProfile$)    .build() {} class DeleteDeploymentStrategyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "DeleteDeploymentStrategy", {})    .n("AppConfigClient", "DeleteDeploymentStrategyCommand")    .sc(schemas_0.DeleteDeploymentStrategy$)    .build() {} class DeleteEnvironmentCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "DeleteEnvironment", {})    .n("AppConfigClient", "DeleteEnvironmentCommand")    .sc(schemas_0.DeleteEnvironment$)    .build() {} class DeleteExtensionAssociationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "DeleteExtensionAssociation", {})    .n("AppConfigClient", "DeleteExtensionAssociationCommand")    .sc(schemas_0.DeleteExtensionAssociation$)    .build() {} class DeleteExtensionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "DeleteExtension", {})    .n("AppConfigClient", "DeleteExtensionCommand")    .sc(schemas_0.DeleteExtension$)    .build() {} class DeleteHostedConfigurationVersionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "DeleteHostedConfigurationVersion", {})    .n("AppConfigClient", "DeleteHostedConfigurationVersionCommand")    .sc(schemas_0.DeleteHostedConfigurationVersion$)    .build() {} class GetAccountSettingsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "GetAccountSettings", {})    .n("AppConfigClient", "GetAccountSettingsCommand")    .sc(schemas_0.GetAccountSettings$)    .build() {} class GetApplicationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "GetApplication", {})    .n("AppConfigClient", "GetApplicationCommand")    .sc(schemas_0.GetApplication$)    .build() {} class GetConfigurationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "GetConfiguration", {})    .n("AppConfigClient", "GetConfigurationCommand")    .sc(schemas_0.GetConfiguration$)    .build() {} class GetConfigurationProfileCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "GetConfigurationProfile", {})    .n("AppConfigClient", "GetConfigurationProfileCommand")    .sc(schemas_0.GetConfigurationProfile$)    .build() {} class GetDeploymentCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "GetDeployment", {})    .n("AppConfigClient", "GetDeploymentCommand")    .sc(schemas_0.GetDeployment$)    .build() {} class GetDeploymentStrategyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "GetDeploymentStrategy", {})    .n("AppConfigClient", "GetDeploymentStrategyCommand")    .sc(schemas_0.GetDeploymentStrategy$)    .build() {} class GetEnvironmentCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "GetEnvironment", {})    .n("AppConfigClient", "GetEnvironmentCommand")    .sc(schemas_0.GetEnvironment$)    .build() {} class GetExtensionAssociationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "GetExtensionAssociation", {})    .n("AppConfigClient", "GetExtensionAssociationCommand")    .sc(schemas_0.GetExtensionAssociation$)    .build() {} class GetExtensionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "GetExtension", {})    .n("AppConfigClient", "GetExtensionCommand")    .sc(schemas_0.GetExtension$)    .build() {} class GetHostedConfigurationVersionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "GetHostedConfigurationVersion", {})    .n("AppConfigClient", "GetHostedConfigurationVersionCommand")    .sc(schemas_0.GetHostedConfigurationVersion$)    .build() {} class ListApplicationsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "ListApplications", {})    .n("AppConfigClient", "ListApplicationsCommand")    .sc(schemas_0.ListApplications$)    .build() {} class ListConfigurationProfilesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "ListConfigurationProfiles", {})    .n("AppConfigClient", "ListConfigurationProfilesCommand")    .sc(schemas_0.ListConfigurationProfiles$)    .build() {} class ListDeploymentsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "ListDeployments", {})    .n("AppConfigClient", "ListDeploymentsCommand")    .sc(schemas_0.ListDeployments$)    .build() {} class ListDeploymentStrategiesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "ListDeploymentStrategies", {})    .n("AppConfigClient", "ListDeploymentStrategiesCommand")    .sc(schemas_0.ListDeploymentStrategies$)    .build() {} class ListEnvironmentsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "ListEnvironments", {})    .n("AppConfigClient", "ListEnvironmentsCommand")    .sc(schemas_0.ListEnvironments$)    .build() {} class ListExtensionAssociationsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "ListExtensionAssociations", {})    .n("AppConfigClient", "ListExtensionAssociationsCommand")    .sc(schemas_0.ListExtensionAssociations$)    .build() {} class ListExtensionsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "ListExtensions", {})    .n("AppConfigClient", "ListExtensionsCommand")    .sc(schemas_0.ListExtensions$)    .build() {} class ListHostedConfigurationVersionsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "ListHostedConfigurationVersions", {})    .n("AppConfigClient", "ListHostedConfigurationVersionsCommand")    .sc(schemas_0.ListHostedConfigurationVersions$)    .build() {} class ListTagsForResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "ListTagsForResource", {})    .n("AppConfigClient", "ListTagsForResourceCommand")    .sc(schemas_0.ListTagsForResource$)    .build() {} class StartDeploymentCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "StartDeployment", {})    .n("AppConfigClient", "StartDeploymentCommand")    .sc(schemas_0.StartDeployment$)    .build() {} class StopDeploymentCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "StopDeployment", {})    .n("AppConfigClient", "StopDeploymentCommand")    .sc(schemas_0.StopDeployment$)    .build() {} class TagResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "TagResource", {})    .n("AppConfigClient", "TagResourceCommand")    .sc(schemas_0.TagResource$)    .build() {} class UntagResourceCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "UntagResource", {})    .n("AppConfigClient", "UntagResourceCommand")    .sc(schemas_0.UntagResource$)    .build() {} class UpdateAccountSettingsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "UpdateAccountSettings", {})    .n("AppConfigClient", "UpdateAccountSettingsCommand")    .sc(schemas_0.UpdateAccountSettings$)    .build() {} class UpdateApplicationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "UpdateApplication", {})    .n("AppConfigClient", "UpdateApplicationCommand")    .sc(schemas_0.UpdateApplication$)    .build() {} class UpdateConfigurationProfileCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "UpdateConfigurationProfile", {})    .n("AppConfigClient", "UpdateConfigurationProfileCommand")    .sc(schemas_0.UpdateConfigurationProfile$)    .build() {} class UpdateDeploymentStrategyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "UpdateDeploymentStrategy", {})    .n("AppConfigClient", "UpdateDeploymentStrategyCommand")    .sc(schemas_0.UpdateDeploymentStrategy$)    .build() {} class UpdateEnvironmentCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "UpdateEnvironment", {})    .n("AppConfigClient", "UpdateEnvironmentCommand")    .sc(schemas_0.UpdateEnvironment$)    .build() {} class UpdateExtensionAssociationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "UpdateExtensionAssociation", {})    .n("AppConfigClient", "UpdateExtensionAssociationCommand")    .sc(schemas_0.UpdateExtensionAssociation$)    .build() {} class UpdateExtensionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "UpdateExtension", {})    .n("AppConfigClient", "UpdateExtensionCommand")    .sc(schemas_0.UpdateExtension$)    .build() {} class ValidateConfigurationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("AmazonAppConfig", "ValidateConfiguration", {})    .n("AppConfigClient", "ValidateConfigurationCommand")    .sc(schemas_0.ValidateConfiguration$)    .build() {} const paginateListApplications = core.createPaginator(AppConfigClient, ListApplicationsCommand, "NextToken", "NextToken", "MaxResults"); const paginateListConfigurationProfiles = core.createPaginator(AppConfigClient, ListConfigurationProfilesCommand, "NextToken", "NextToken", "MaxResults"); const paginateListDeployments = core.createPaginator(AppConfigClient, ListDeploymentsCommand, "NextToken", "NextToken", "MaxResults"); const paginateListDeploymentStrategies = core.createPaginator(AppConfigClient, ListDeploymentStrategiesCommand, "NextToken", "NextToken", "MaxResults"); const paginateListEnvironments = core.createPaginator(AppConfigClient, ListEnvironmentsCommand, "NextToken", "NextToken", "MaxResults"); const paginateListExtensionAssociations = core.createPaginator(AppConfigClient, ListExtensionAssociationsCommand, "NextToken", "NextToken", "MaxResults"); const paginateListExtensions = core.createPaginator(AppConfigClient, ListExtensionsCommand, "NextToken", "NextToken", "MaxResults"); const paginateListHostedConfigurationVersions = core.createPaginator(AppConfigClient, ListHostedConfigurationVersionsCommand, "NextToken", "NextToken", "MaxResults"); const checkState$1 = async (client$1, input) => {    let reason;    try {        let result = await client$1.send(new GetDeploymentCommand(input));        reason = result;        try {            const returnComparator = () => {                return result.State;            };            if (returnComparator() === "COMPLETE") {                return { state: client.WaiterState.SUCCESS, reason };            }        }        catch (e) { }        try {            const returnComparator = () => {                return result.State;            };            if (returnComparator() === "ROLLED_BACK") {                return { state: client.WaiterState.FAILURE, reason };            }        }        catch (e) { }        try {            const returnComparator = () => {                return result.State;            };            if (returnComparator() === "REVERTED") {                return { state: client.WaiterState.FAILURE, reason };            }        }        catch (e) { }    }    catch (exception) {        reason = exception;    }    return { state: client.WaiterState.RETRY, reason };};const waitForDeploymentComplete = async (params, input) => {    const serviceDefaults = { minDelay: 30, maxDelay: 120 };    return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);};const waitUntilDeploymentComplete = async (params, input) => {    const serviceDefaults = { minDelay: 30, maxDelay: 120 };    const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState$1);    return client.checkExceptions(result);}; const checkState = async (client$1, input) => {    let reason;    try {        let result = await client$1.send(new GetEnvironmentCommand(input));        reason = result;        try {            const returnComparator = () => {                return result.State;            };            if (returnComparator() === "ReadyForDeployment") {                return { state: client.WaiterState.SUCCESS, reason };            }        }        catch (e) { }        try {            const returnComparator = () => {                return result.State;            };            if (returnComparator() === "RolledBack") {                return { state: client.WaiterState.FAILURE, reason };            }        }        catch (e) { }        try {            const returnComparator = () => {                return result.State;            };            if (returnComparator() === "Reverted") {                return { state: client.WaiterState.FAILURE, reason };            }        }        catch (e) { }    }    catch (exception) {        reason = exception;    }    return { state: client.WaiterState.RETRY, reason };};const waitForEnvironmentReadyForDeployment = async (params, input) => {    const serviceDefaults = { minDelay: 30, maxDelay: 120 };    return client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);};const waitUntilEnvironmentReadyForDeployment = async (params, input) => {    const serviceDefaults = { minDelay: 30, maxDelay: 120 };    const result = await client.createWaiter({ ...serviceDefaults, ...params }, input, checkState);    return client.checkExceptions(result);}; const commands = {    CreateApplicationCommand,    CreateConfigurationProfileCommand,    CreateDeploymentStrategyCommand,    CreateEnvironmentCommand,    CreateExtensionCommand,    CreateExtensionAssociationCommand,    CreateHostedConfigurationVersionCommand,    DeleteApplicationCommand,    DeleteConfigurationProfileCommand,    DeleteDeploymentStrategyCommand,    DeleteEnvironmentCommand,    DeleteExtensionCommand,    DeleteExtensionAssociationCommand,    DeleteHostedConfigurationVersionCommand,    GetAccountSettingsCommand,    GetApplicationCommand,    GetConfigurationCommand,    GetConfigurationProfileCommand,    GetDeploymentCommand,    GetDeploymentStrategyCommand,    GetEnvironmentCommand,    GetExtensionCommand,    GetExtensionAssociationCommand,    GetHostedConfigurationVersionCommand,    ListApplicationsCommand,    ListConfigurationProfilesCommand,    ListDeploymentsCommand,    ListDeploymentStrategiesCommand,    ListEnvironmentsCommand,    ListExtensionAssociationsCommand,    ListExtensionsCommand,    ListHostedConfigurationVersionsCommand,    ListTagsForResourceCommand,    StartDeploymentCommand,    StopDeploymentCommand,    TagResourceCommand,    UntagResourceCommand,    UpdateAccountSettingsCommand,    UpdateApplicationCommand,    UpdateConfigurationProfileCommand,    UpdateDeploymentStrategyCommand,    UpdateEnvironmentCommand,    UpdateExtensionCommand,    UpdateExtensionAssociationCommand,    ValidateConfigurationCommand,};const paginators = {    paginateListApplications,    paginateListConfigurationProfiles,    paginateListDeployments,    paginateListDeploymentStrategies,    paginateListEnvironments,    paginateListExtensionAssociations,    paginateListExtensions,    paginateListHostedConfigurationVersions,};const waiters = {    waitUntilDeploymentComplete,    waitUntilEnvironmentReadyForDeployment,};class AppConfig extends AppConfigClient {}client.createAggregatedClient(commands, AppConfig, { paginators, waiters }); const ActionPoint = {    AT_DEPLOYMENT_TICK: "AT_DEPLOYMENT_TICK",    ON_DEPLOYMENT_BAKING: "ON_DEPLOYMENT_BAKING",    ON_DEPLOYMENT_COMPLETE: "ON_DEPLOYMENT_COMPLETE",    ON_DEPLOYMENT_ROLLED_BACK: "ON_DEPLOYMENT_ROLLED_BACK",    ON_DEPLOYMENT_START: "ON_DEPLOYMENT_START",    ON_DEPLOYMENT_STEP: "ON_DEPLOYMENT_STEP",    PRE_CREATE_HOSTED_CONFIGURATION_VERSION: "PRE_CREATE_HOSTED_CONFIGURATION_VERSION",    PRE_START_DEPLOYMENT: "PRE_START_DEPLOYMENT",};const BadRequestReason = {    INVALID_CONFIGURATION: "InvalidConfiguration",};const ValidatorType = {    JSON_SCHEMA: "JSON_SCHEMA",    LAMBDA: "LAMBDA",};const GrowthType = {    EXPONENTIAL: "EXPONENTIAL",    LINEAR: "LINEAR",};const ReplicateTo = {    NONE: "NONE",    SSM_DOCUMENT: "SSM_DOCUMENT",};const EnvironmentState = {    DEPLOYING: "DEPLOYING",    READY_FOR_DEPLOYMENT: "READY_FOR_DEPLOYMENT",    REVERTED: "REVERTED",    ROLLED_BACK: "ROLLED_BACK",    ROLLING_BACK: "ROLLING_BACK",};const BytesMeasure = {    KILOBYTES: "KILOBYTES",};const DeletionProtectionCheck = {    ACCOUNT_DEFAULT: "ACCOUNT_DEFAULT",    APPLY: "APPLY",    BYPASS: "BYPASS",};const DeploymentEventType = {    BAKE_TIME_STARTED: "BAKE_TIME_STARTED",    DEPLOYMENT_COMPLETED: "DEPLOYMENT_COMPLETED",    DEPLOYMENT_STARTED: "DEPLOYMENT_STARTED",    PERCENTAGE_UPDATED: "PERCENTAGE_UPDATED",    REVERT_COMPLETED: "REVERT_COMPLETED",    ROLLBACK_COMPLETED: "ROLLBACK_COMPLETED",    ROLLBACK_STARTED: "ROLLBACK_STARTED",};const TriggeredBy = {    APPCONFIG: "APPCONFIG",    CLOUDWATCH_ALARM: "CLOUDWATCH_ALARM",    INTERNAL_ERROR: "INTERNAL_ERROR",    USER: "USER",};const DeploymentState = {    BAKING: "BAKING",    COMPLETE: "COMPLETE",    DEPLOYING: "DEPLOYING",    REVERTED: "REVERTED",    ROLLED_BACK: "ROLLED_BACK",    ROLLING_BACK: "ROLLING_BACK",    VALIDATING: "VALIDATING",}; exports.$Command = client.Command;exports.__Client = client.Client;exports.AppConfigServiceException = AppConfigServiceException.AppConfigServiceException;exports.ActionPoint = ActionPoint;exports.AppConfig = AppConfig;exports.AppConfigClient = AppConfigClient;exports.BadRequestReason = BadRequestReason;exports.BytesMeasure = BytesMeasure;exports.CreateApplicationCommand = CreateApplicationCommand;exports.CreateConfigurationProfileCommand = CreateConfigurationProfileCommand;exports.CreateDeploymentStrategyCommand = CreateDeploymentStrategyCommand;exports.CreateEnvironmentCommand = CreateEnvironmentCommand;exports.CreateExtensionAssociationCommand = CreateExtensionAssociationCommand;exports.CreateExtensionCommand = CreateExtensionCommand;exports.CreateHostedConfigurationVersionCommand = CreateHostedConfigurationVersionCommand;exports.DeleteApplicationCommand = DeleteApplicationCommand;exports.DeleteConfigurationProfileCommand = DeleteConfigurationProfileCommand;exports.DeleteDeploymentStrategyCommand = DeleteDeploymentStrategyCommand;exports.DeleteEnvironmentCommand = DeleteEnvironmentCommand;exports.DeleteExtensionAssociationCommand = DeleteExtensionAssociationCommand;exports.DeleteExtensionCommand = DeleteExtensionCommand;exports.DeleteHostedConfigurationVersionCommand = DeleteHostedConfigurationVersionCommand;exports.DeletionProtectionCheck = DeletionProtectionCheck;exports.DeploymentEventType = DeploymentEventType;exports.DeploymentState = DeploymentState;exports.EnvironmentState = EnvironmentState;exports.GetAccountSettingsCommand = GetAccountSettingsCommand;exports.GetApplicationCommand = GetApplicationCommand;exports.GetConfigurationCommand = GetConfigurationCommand;exports.GetConfigurationProfileCommand = GetConfigurationProfileCommand;exports.GetDeploymentCommand = GetDeploymentCommand;exports.GetDeploymentStrategyCommand = GetDeploymentStrategyCommand;exports.GetEnvironmentCommand = GetEnvironmentCommand;exports.GetExtensionAssociationCommand = GetExtensionAssociationCommand;exports.GetExtensionCommand = GetExtensionCommand;exports.GetHostedConfigurationVersionCommand = GetHostedConfigurationVersionCommand;exports.GrowthType = GrowthType;exports.ListApplicationsCommand = ListApplicationsCommand;exports.ListConfigurationProfilesCommand = ListConfigurationProfilesCommand;exports.ListDeploymentStrategiesCommand = ListDeploymentStrategiesCommand;exports.ListDeploymentsCommand = ListDeploymentsCommand;exports.ListEnvironmentsCommand = ListEnvironmentsCommand;exports.ListExtensionAssociationsCommand = ListExtensionAssociationsCommand;exports.ListExtensionsCommand = ListExtensionsCommand;exports.ListHostedConfigurationVersionsCommand = ListHostedConfigurationVersionsCommand;exports.ListTagsForResourceCommand = ListTagsForResourceCommand;exports.ReplicateTo = ReplicateTo;exports.StartDeploymentCommand = StartDeploymentCommand;exports.StopDeploymentCommand = StopDeploymentCommand;exports.TagResourceCommand = TagResourceCommand;exports.TriggeredBy = TriggeredBy;exports.UntagResourceCommand = UntagResourceCommand;exports.UpdateAccountSettingsCommand = UpdateAccountSettingsCommand;exports.UpdateApplicationCommand = UpdateApplicationCommand;exports.UpdateConfigurationProfileCommand = UpdateConfigurationProfileCommand;exports.UpdateDeploymentStrategyCommand = UpdateDeploymentStrategyCommand;exports.UpdateEnvironmentCommand = UpdateEnvironmentCommand;exports.UpdateExtensionAssociationCommand = UpdateExtensionAssociationCommand;exports.UpdateExtensionCommand = UpdateExtensionCommand;exports.ValidateConfigurationCommand = ValidateConfigurationCommand;exports.ValidatorType = ValidatorType;exports.paginateListApplications = paginateListApplications;exports.paginateListConfigurationProfiles = paginateListConfigurationProfiles;exports.paginateListDeploymentStrategies = paginateListDeploymentStrategies;exports.paginateListDeployments = paginateListDeployments;exports.paginateListEnvironments = paginateListEnvironments;exports.paginateListExtensionAssociations = paginateListExtensionAssociations;exports.paginateListExtensions = paginateListExtensions;exports.paginateListHostedConfigurationVersions = paginateListHostedConfigurationVersions;exports.waitForDeploymentComplete = waitForDeploymentComplete;exports.waitForEnvironmentReadyForDeployment = waitForEnvironmentReadyForDeployment;exports.waitUntilDeploymentComplete = waitUntilDeploymentComplete;exports.waitUntilEnvironmentReadyForDeployment = waitUntilEnvironmentReadyForDeployment;Object.prototype.hasOwnProperty.call(schemas_0, '__proto__') &&    !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&    Object.defineProperty(exports, '__proto__', {        enumerable: true,        value: schemas_0['__proto__']    }); Object.keys(schemas_0).forEach(function (k) {    if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = schemas_0[k];});Object.prototype.hasOwnProperty.call(errors, '__proto__') &&    !Object.prototype.hasOwnProperty.call(exports, '__proto__') &&    Object.defineProperty(exports, '__proto__', {        enumerable: true,        value: errors['__proto__']    }); Object.keys(errors).forEach(function (k) {    if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = errors[k];});