File Explorer

/proc/self/root/proc/self/root/var/runtime/node_modules/@aws-sdk/client-cloudtrail/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.js41.2 KB · 1183 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 CloudTrailServiceException = require('./models/CloudTrailServiceException'); const resolveClientEndpointParameters = (options) => {    return Object.assign(options, {        useDualstackEndpoint: options.useDualstackEndpoint ?? false,        useFipsEndpoint: options.useFipsEndpoint ?? false,        defaultSigningName: "cloudtrail",    });};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 CloudTrailClient 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.defaultCloudTrailHttpAuthSchemeParametersProvider,            identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({                "aws.auth#sigv4": config.credentials,            }),        }));        this.middlewareStack.use(core.getHttpSigningPlugin(this.config));    }    destroy() {        super.destroy();    }} class AddTagsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "AddTags", {})    .n("CloudTrailClient", "AddTagsCommand")    .sc(schemas_0.AddTags$)    .build() {} class CancelQueryCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "CancelQuery", {})    .n("CloudTrailClient", "CancelQueryCommand")    .sc(schemas_0.CancelQuery$)    .build() {} class CreateChannelCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "CreateChannel", {})    .n("CloudTrailClient", "CreateChannelCommand")    .sc(schemas_0.CreateChannel$)    .build() {} class CreateDashboardCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "CreateDashboard", {})    .n("CloudTrailClient", "CreateDashboardCommand")    .sc(schemas_0.CreateDashboard$)    .build() {} class CreateEventDataStoreCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "CreateEventDataStore", {})    .n("CloudTrailClient", "CreateEventDataStoreCommand")    .sc(schemas_0.CreateEventDataStore$)    .build() {} class CreateTrailCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "CreateTrail", {})    .n("CloudTrailClient", "CreateTrailCommand")    .sc(schemas_0.CreateTrail$)    .build() {} class DeleteChannelCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "DeleteChannel", {})    .n("CloudTrailClient", "DeleteChannelCommand")    .sc(schemas_0.DeleteChannel$)    .build() {} class DeleteDashboardCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "DeleteDashboard", {})    .n("CloudTrailClient", "DeleteDashboardCommand")    .sc(schemas_0.DeleteDashboard$)    .build() {} class DeleteEventDataStoreCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "DeleteEventDataStore", {})    .n("CloudTrailClient", "DeleteEventDataStoreCommand")    .sc(schemas_0.DeleteEventDataStore$)    .build() {} class DeleteResourcePolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "DeleteResourcePolicy", {})    .n("CloudTrailClient", "DeleteResourcePolicyCommand")    .sc(schemas_0.DeleteResourcePolicy$)    .build() {} class DeleteTrailCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "DeleteTrail", {})    .n("CloudTrailClient", "DeleteTrailCommand")    .sc(schemas_0.DeleteTrail$)    .build() {} class DeregisterOrganizationDelegatedAdminCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "DeregisterOrganizationDelegatedAdmin", {})    .n("CloudTrailClient", "DeregisterOrganizationDelegatedAdminCommand")    .sc(schemas_0.DeregisterOrganizationDelegatedAdmin$)    .build() {} class DescribeQueryCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "DescribeQuery", {})    .n("CloudTrailClient", "DescribeQueryCommand")    .sc(schemas_0.DescribeQuery$)    .build() {} class DescribeTrailsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "DescribeTrails", {})    .n("CloudTrailClient", "DescribeTrailsCommand")    .sc(schemas_0.DescribeTrails$)    .build() {} class DisableFederationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "DisableFederation", {})    .n("CloudTrailClient", "DisableFederationCommand")    .sc(schemas_0.DisableFederation$)    .build() {} class EnableFederationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "EnableFederation", {})    .n("CloudTrailClient", "EnableFederationCommand")    .sc(schemas_0.EnableFederation$)    .build() {} class GenerateQueryCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "GenerateQuery", {})    .n("CloudTrailClient", "GenerateQueryCommand")    .sc(schemas_0.GenerateQuery$)    .build() {} class GetChannelCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "GetChannel", {})    .n("CloudTrailClient", "GetChannelCommand")    .sc(schemas_0.GetChannel$)    .build() {} class GetDashboardCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "GetDashboard", {})    .n("CloudTrailClient", "GetDashboardCommand")    .sc(schemas_0.GetDashboard$)    .build() {} class GetEventConfigurationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "GetEventConfiguration", {})    .n("CloudTrailClient", "GetEventConfigurationCommand")    .sc(schemas_0.GetEventConfiguration$)    .build() {} class GetEventDataStoreCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "GetEventDataStore", {})    .n("CloudTrailClient", "GetEventDataStoreCommand")    .sc(schemas_0.GetEventDataStore$)    .build() {} class GetEventSelectorsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "GetEventSelectors", {})    .n("CloudTrailClient", "GetEventSelectorsCommand")    .sc(schemas_0.GetEventSelectors$)    .build() {} class GetImportCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "GetImport", {})    .n("CloudTrailClient", "GetImportCommand")    .sc(schemas_0.GetImport$)    .build() {} class GetInsightSelectorsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "GetInsightSelectors", {})    .n("CloudTrailClient", "GetInsightSelectorsCommand")    .sc(schemas_0.GetInsightSelectors$)    .build() {} class GetQueryResultsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "GetQueryResults", {})    .n("CloudTrailClient", "GetQueryResultsCommand")    .sc(schemas_0.GetQueryResults$)    .build() {} class GetResourcePolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "GetResourcePolicy", {})    .n("CloudTrailClient", "GetResourcePolicyCommand")    .sc(schemas_0.GetResourcePolicy$)    .build() {} class GetTrailCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "GetTrail", {})    .n("CloudTrailClient", "GetTrailCommand")    .sc(schemas_0.GetTrail$)    .build() {} class GetTrailStatusCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "GetTrailStatus", {})    .n("CloudTrailClient", "GetTrailStatusCommand")    .sc(schemas_0.GetTrailStatus$)    .build() {} class ListChannelsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "ListChannels", {})    .n("CloudTrailClient", "ListChannelsCommand")    .sc(schemas_0.ListChannels$)    .build() {} class ListDashboardsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "ListDashboards", {})    .n("CloudTrailClient", "ListDashboardsCommand")    .sc(schemas_0.ListDashboards$)    .build() {} class ListEventDataStoresCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "ListEventDataStores", {})    .n("CloudTrailClient", "ListEventDataStoresCommand")    .sc(schemas_0.ListEventDataStores$)    .build() {} class ListImportFailuresCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "ListImportFailures", {})    .n("CloudTrailClient", "ListImportFailuresCommand")    .sc(schemas_0.ListImportFailures$)    .build() {} class ListImportsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "ListImports", {})    .n("CloudTrailClient", "ListImportsCommand")    .sc(schemas_0.ListImports$)    .build() {} class ListInsightsDataCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "ListInsightsData", {})    .n("CloudTrailClient", "ListInsightsDataCommand")    .sc(schemas_0.ListInsightsData$)    .build() {} class ListInsightsMetricDataCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "ListInsightsMetricData", {})    .n("CloudTrailClient", "ListInsightsMetricDataCommand")    .sc(schemas_0.ListInsightsMetricData$)    .build() {} class ListPublicKeysCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "ListPublicKeys", {})    .n("CloudTrailClient", "ListPublicKeysCommand")    .sc(schemas_0.ListPublicKeys$)    .build() {} class ListQueriesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "ListQueries", {})    .n("CloudTrailClient", "ListQueriesCommand")    .sc(schemas_0.ListQueries$)    .build() {} class ListTagsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "ListTags", {})    .n("CloudTrailClient", "ListTagsCommand")    .sc(schemas_0.ListTags$)    .build() {} class ListTrailsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "ListTrails", {})    .n("CloudTrailClient", "ListTrailsCommand")    .sc(schemas_0.ListTrails$)    .build() {} class LookupEventsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "LookupEvents", {})    .n("CloudTrailClient", "LookupEventsCommand")    .sc(schemas_0.LookupEvents$)    .build() {} class PutEventConfigurationCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "PutEventConfiguration", {})    .n("CloudTrailClient", "PutEventConfigurationCommand")    .sc(schemas_0.PutEventConfiguration$)    .build() {} class PutEventSelectorsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "PutEventSelectors", {})    .n("CloudTrailClient", "PutEventSelectorsCommand")    .sc(schemas_0.PutEventSelectors$)    .build() {} class PutInsightSelectorsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "PutInsightSelectors", {})    .n("CloudTrailClient", "PutInsightSelectorsCommand")    .sc(schemas_0.PutInsightSelectors$)    .build() {} class PutResourcePolicyCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "PutResourcePolicy", {})    .n("CloudTrailClient", "PutResourcePolicyCommand")    .sc(schemas_0.PutResourcePolicy$)    .build() {} class RegisterOrganizationDelegatedAdminCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "RegisterOrganizationDelegatedAdmin", {})    .n("CloudTrailClient", "RegisterOrganizationDelegatedAdminCommand")    .sc(schemas_0.RegisterOrganizationDelegatedAdmin$)    .build() {} class RemoveTagsCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "RemoveTags", {})    .n("CloudTrailClient", "RemoveTagsCommand")    .sc(schemas_0.RemoveTags$)    .build() {} class RestoreEventDataStoreCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "RestoreEventDataStore", {})    .n("CloudTrailClient", "RestoreEventDataStoreCommand")    .sc(schemas_0.RestoreEventDataStore$)    .build() {} class SearchSampleQueriesCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "SearchSampleQueries", {})    .n("CloudTrailClient", "SearchSampleQueriesCommand")    .sc(schemas_0.SearchSampleQueries$)    .build() {} class StartDashboardRefreshCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "StartDashboardRefresh", {})    .n("CloudTrailClient", "StartDashboardRefreshCommand")    .sc(schemas_0.StartDashboardRefresh$)    .build() {} class StartEventDataStoreIngestionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "StartEventDataStoreIngestion", {})    .n("CloudTrailClient", "StartEventDataStoreIngestionCommand")    .sc(schemas_0.StartEventDataStoreIngestion$)    .build() {} class StartImportCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "StartImport", {})    .n("CloudTrailClient", "StartImportCommand")    .sc(schemas_0.StartImport$)    .build() {} class StartLoggingCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "StartLogging", {})    .n("CloudTrailClient", "StartLoggingCommand")    .sc(schemas_0.StartLogging$)    .build() {} class StartQueryCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "StartQuery", {})    .n("CloudTrailClient", "StartQueryCommand")    .sc(schemas_0.StartQuery$)    .build() {} class StopEventDataStoreIngestionCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "StopEventDataStoreIngestion", {})    .n("CloudTrailClient", "StopEventDataStoreIngestionCommand")    .sc(schemas_0.StopEventDataStoreIngestion$)    .build() {} class StopImportCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "StopImport", {})    .n("CloudTrailClient", "StopImportCommand")    .sc(schemas_0.StopImport$)    .build() {} class StopLoggingCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "StopLogging", {})    .n("CloudTrailClient", "StopLoggingCommand")    .sc(schemas_0.StopLogging$)    .build() {} class UpdateChannelCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "UpdateChannel", {})    .n("CloudTrailClient", "UpdateChannelCommand")    .sc(schemas_0.UpdateChannel$)    .build() {} class UpdateDashboardCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "UpdateDashboard", {})    .n("CloudTrailClient", "UpdateDashboardCommand")    .sc(schemas_0.UpdateDashboard$)    .build() {} class UpdateEventDataStoreCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "UpdateEventDataStore", {})    .n("CloudTrailClient", "UpdateEventDataStoreCommand")    .sc(schemas_0.UpdateEventDataStore$)    .build() {} class UpdateTrailCommand extends client.Command    .classBuilder()    .ep(commonParams)    .m(function (Command, cs, config, o) {    return [endpoints.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];})    .s("CloudTrail_20131101", "UpdateTrail", {})    .n("CloudTrailClient", "UpdateTrailCommand")    .sc(schemas_0.UpdateTrail$)    .build() {} const paginateGetQueryResults = core.createPaginator(CloudTrailClient, GetQueryResultsCommand, "NextToken", "NextToken", ""); const paginateListChannels = core.createPaginator(CloudTrailClient, ListChannelsCommand, "NextToken", "NextToken", "MaxResults"); const paginateListEventDataStores = core.createPaginator(CloudTrailClient, ListEventDataStoresCommand, "NextToken", "NextToken", "MaxResults"); const paginateListImportFailures = core.createPaginator(CloudTrailClient, ListImportFailuresCommand, "NextToken", "NextToken", "MaxResults"); const paginateListImports = core.createPaginator(CloudTrailClient, ListImportsCommand, "NextToken", "NextToken", "MaxResults"); const paginateListInsightsData = core.createPaginator(CloudTrailClient, ListInsightsDataCommand, "NextToken", "NextToken", "MaxResults"); const paginateListInsightsMetricData = core.createPaginator(CloudTrailClient, ListInsightsMetricDataCommand, "NextToken", "NextToken", "MaxResults"); const paginateListPublicKeys = core.createPaginator(CloudTrailClient, ListPublicKeysCommand, "NextToken", "NextToken", ""); const paginateListQueries = core.createPaginator(CloudTrailClient, ListQueriesCommand, "NextToken", "NextToken", "MaxResults"); const paginateListTags = core.createPaginator(CloudTrailClient, ListTagsCommand, "NextToken", "NextToken", ""); const paginateListTrails = core.createPaginator(CloudTrailClient, ListTrailsCommand, "NextToken", "NextToken", ""); const paginateLookupEvents = core.createPaginator(CloudTrailClient, LookupEventsCommand, "NextToken", "NextToken", "MaxResults"); const commands = {    AddTagsCommand,    CancelQueryCommand,    CreateChannelCommand,    CreateDashboardCommand,    CreateEventDataStoreCommand,    CreateTrailCommand,    DeleteChannelCommand,    DeleteDashboardCommand,    DeleteEventDataStoreCommand,    DeleteResourcePolicyCommand,    DeleteTrailCommand,    DeregisterOrganizationDelegatedAdminCommand,    DescribeQueryCommand,    DescribeTrailsCommand,    DisableFederationCommand,    EnableFederationCommand,    GenerateQueryCommand,    GetChannelCommand,    GetDashboardCommand,    GetEventConfigurationCommand,    GetEventDataStoreCommand,    GetEventSelectorsCommand,    GetImportCommand,    GetInsightSelectorsCommand,    GetQueryResultsCommand,    GetResourcePolicyCommand,    GetTrailCommand,    GetTrailStatusCommand,    ListChannelsCommand,    ListDashboardsCommand,    ListEventDataStoresCommand,    ListImportFailuresCommand,    ListImportsCommand,    ListInsightsDataCommand,    ListInsightsMetricDataCommand,    ListPublicKeysCommand,    ListQueriesCommand,    ListTagsCommand,    ListTrailsCommand,    LookupEventsCommand,    PutEventConfigurationCommand,    PutEventSelectorsCommand,    PutInsightSelectorsCommand,    PutResourcePolicyCommand,    RegisterOrganizationDelegatedAdminCommand,    RemoveTagsCommand,    RestoreEventDataStoreCommand,    SearchSampleQueriesCommand,    StartDashboardRefreshCommand,    StartEventDataStoreIngestionCommand,    StartImportCommand,    StartLoggingCommand,    StartQueryCommand,    StopEventDataStoreIngestionCommand,    StopImportCommand,    StopLoggingCommand,    UpdateChannelCommand,    UpdateDashboardCommand,    UpdateEventDataStoreCommand,    UpdateTrailCommand,};const paginators = {    paginateGetQueryResults,    paginateListChannels,    paginateListEventDataStores,    paginateListImportFailures,    paginateListImports,    paginateListInsightsData,    paginateListInsightsMetricData,    paginateListPublicKeys,    paginateListQueries,    paginateListTags,    paginateListTrails,    paginateLookupEvents,};class CloudTrail extends CloudTrailClient {}client.createAggregatedClient(commands, CloudTrail, { paginators }); const EventCategoryAggregation = {    Data: "Data",};const Template = {    API_ACTIVITY: "API_ACTIVITY",    RESOURCE_ACCESS: "RESOURCE_ACCESS",    USER_ACTIONS: "USER_ACTIONS",};const BillingMode = {    EXTENDABLE_RETENTION_PRICING: "EXTENDABLE_RETENTION_PRICING",    FIXED_RETENTION_PRICING: "FIXED_RETENTION_PRICING",};const QueryStatus = {    CANCELLED: "CANCELLED",    FAILED: "FAILED",    FINISHED: "FINISHED",    QUEUED: "QUEUED",    RUNNING: "RUNNING",    TIMED_OUT: "TIMED_OUT",};const DestinationType = {    AWS_SERVICE: "AWS_SERVICE",    EVENT_DATA_STORE: "EVENT_DATA_STORE",};const RefreshScheduleFrequencyUnit = {    DAYS: "DAYS",    HOURS: "HOURS",};const RefreshScheduleStatus = {    DISABLED: "DISABLED",    ENABLED: "ENABLED",};const DashboardType = {    CUSTOM: "CUSTOM",    MANAGED: "MANAGED",};const EventDataStoreStatus = {    CREATED: "CREATED",    ENABLED: "ENABLED",    PENDING_DELETION: "PENDING_DELETION",    STARTING_INGESTION: "STARTING_INGESTION",    STOPPED_INGESTION: "STOPPED_INGESTION",    STOPPING_INGESTION: "STOPPING_INGESTION",};const DeliveryStatus = {    ACCESS_DENIED: "ACCESS_DENIED",    ACCESS_DENIED_SIGNING_FILE: "ACCESS_DENIED_SIGNING_FILE",    CANCELLED: "CANCELLED",    FAILED: "FAILED",    FAILED_SIGNING_FILE: "FAILED_SIGNING_FILE",    PENDING: "PENDING",    RESOURCE_NOT_FOUND: "RESOURCE_NOT_FOUND",    SUCCESS: "SUCCESS",    UNKNOWN: "UNKNOWN",};const FederationStatus = {    DISABLED: "DISABLED",    DISABLING: "DISABLING",    ENABLED: "ENABLED",    ENABLING: "ENABLING",};const DashboardStatus = {    CREATED: "CREATED",    CREATING: "CREATING",    DELETING: "DELETING",    UPDATED: "UPDATED",    UPDATING: "UPDATING",};const Type = {    RequestContext: "RequestContext",    TagContext: "TagContext",};const MaxEventSize = {    Large: "Large",    Standard: "Standard",};const ReadWriteType = {    All: "All",    ReadOnly: "ReadOnly",    WriteOnly: "WriteOnly",};const ImportStatus = {    COMPLETED: "COMPLETED",    FAILED: "FAILED",    INITIALIZING: "INITIALIZING",    IN_PROGRESS: "IN_PROGRESS",    STOPPED: "STOPPED",};const SourceEventCategory = {    Data: "Data",    Management: "Management",};const InsightType = {    ApiCallRateInsight: "ApiCallRateInsight",    ApiErrorRateInsight: "ApiErrorRateInsight",};const ImportFailureStatus = {    FAILED: "FAILED",    RETRY: "RETRY",    SUCCEEDED: "SUCCEEDED",};const ListInsightsDataType = {    INSIGHTS_EVENTS: "InsightsEvents",};const ListInsightsDataDimensionKey = {    EVENT_ID: "EventId",    EVENT_NAME: "EventName",    EVENT_SOURCE: "EventSource",};const InsightsMetricDataType = {    FILL_WITH_ZEROS: "FillWithZeros",    NON_ZERO_DATA: "NonZeroData",};const EventCategory = {    Insight: "insight",};const LookupAttributeKey = {    ACCESS_KEY_ID: "AccessKeyId",    EVENT_ID: "EventId",    EVENT_NAME: "EventName",    EVENT_SOURCE: "EventSource",    READ_ONLY: "ReadOnly",    RESOURCE_NAME: "ResourceName",    RESOURCE_TYPE: "ResourceType",    USERNAME: "Username",}; exports.$Command = client.Command;exports.__Client = client.Client;exports.CloudTrailServiceException = CloudTrailServiceException.CloudTrailServiceException;exports.AddTagsCommand = AddTagsCommand;exports.BillingMode = BillingMode;exports.CancelQueryCommand = CancelQueryCommand;exports.CloudTrail = CloudTrail;exports.CloudTrailClient = CloudTrailClient;exports.CreateChannelCommand = CreateChannelCommand;exports.CreateDashboardCommand = CreateDashboardCommand;exports.CreateEventDataStoreCommand = CreateEventDataStoreCommand;exports.CreateTrailCommand = CreateTrailCommand;exports.DashboardStatus = DashboardStatus;exports.DashboardType = DashboardType;exports.DeleteChannelCommand = DeleteChannelCommand;exports.DeleteDashboardCommand = DeleteDashboardCommand;exports.DeleteEventDataStoreCommand = DeleteEventDataStoreCommand;exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand;exports.DeleteTrailCommand = DeleteTrailCommand;exports.DeliveryStatus = DeliveryStatus;exports.DeregisterOrganizationDelegatedAdminCommand = DeregisterOrganizationDelegatedAdminCommand;exports.DescribeQueryCommand = DescribeQueryCommand;exports.DescribeTrailsCommand = DescribeTrailsCommand;exports.DestinationType = DestinationType;exports.DisableFederationCommand = DisableFederationCommand;exports.EnableFederationCommand = EnableFederationCommand;exports.EventCategory = EventCategory;exports.EventCategoryAggregation = EventCategoryAggregation;exports.EventDataStoreStatus = EventDataStoreStatus;exports.FederationStatus = FederationStatus;exports.GenerateQueryCommand = GenerateQueryCommand;exports.GetChannelCommand = GetChannelCommand;exports.GetDashboardCommand = GetDashboardCommand;exports.GetEventConfigurationCommand = GetEventConfigurationCommand;exports.GetEventDataStoreCommand = GetEventDataStoreCommand;exports.GetEventSelectorsCommand = GetEventSelectorsCommand;exports.GetImportCommand = GetImportCommand;exports.GetInsightSelectorsCommand = GetInsightSelectorsCommand;exports.GetQueryResultsCommand = GetQueryResultsCommand;exports.GetResourcePolicyCommand = GetResourcePolicyCommand;exports.GetTrailCommand = GetTrailCommand;exports.GetTrailStatusCommand = GetTrailStatusCommand;exports.ImportFailureStatus = ImportFailureStatus;exports.ImportStatus = ImportStatus;exports.InsightType = InsightType;exports.InsightsMetricDataType = InsightsMetricDataType;exports.ListChannelsCommand = ListChannelsCommand;exports.ListDashboardsCommand = ListDashboardsCommand;exports.ListEventDataStoresCommand = ListEventDataStoresCommand;exports.ListImportFailuresCommand = ListImportFailuresCommand;exports.ListImportsCommand = ListImportsCommand;exports.ListInsightsDataCommand = ListInsightsDataCommand;exports.ListInsightsDataDimensionKey = ListInsightsDataDimensionKey;exports.ListInsightsDataType = ListInsightsDataType;exports.ListInsightsMetricDataCommand = ListInsightsMetricDataCommand;exports.ListPublicKeysCommand = ListPublicKeysCommand;exports.ListQueriesCommand = ListQueriesCommand;exports.ListTagsCommand = ListTagsCommand;exports.ListTrailsCommand = ListTrailsCommand;exports.LookupAttributeKey = LookupAttributeKey;exports.LookupEventsCommand = LookupEventsCommand;exports.MaxEventSize = MaxEventSize;exports.PutEventConfigurationCommand = PutEventConfigurationCommand;exports.PutEventSelectorsCommand = PutEventSelectorsCommand;exports.PutInsightSelectorsCommand = PutInsightSelectorsCommand;exports.PutResourcePolicyCommand = PutResourcePolicyCommand;exports.QueryStatus = QueryStatus;exports.ReadWriteType = ReadWriteType;exports.RefreshScheduleFrequencyUnit = RefreshScheduleFrequencyUnit;exports.RefreshScheduleStatus = RefreshScheduleStatus;exports.RegisterOrganizationDelegatedAdminCommand = RegisterOrganizationDelegatedAdminCommand;exports.RemoveTagsCommand = RemoveTagsCommand;exports.RestoreEventDataStoreCommand = RestoreEventDataStoreCommand;exports.SearchSampleQueriesCommand = SearchSampleQueriesCommand;exports.SourceEventCategory = SourceEventCategory;exports.StartDashboardRefreshCommand = StartDashboardRefreshCommand;exports.StartEventDataStoreIngestionCommand = StartEventDataStoreIngestionCommand;exports.StartImportCommand = StartImportCommand;exports.StartLoggingCommand = StartLoggingCommand;exports.StartQueryCommand = StartQueryCommand;exports.StopEventDataStoreIngestionCommand = StopEventDataStoreIngestionCommand;exports.StopImportCommand = StopImportCommand;exports.StopLoggingCommand = StopLoggingCommand;exports.Template = Template;exports.Type = Type;exports.UpdateChannelCommand = UpdateChannelCommand;exports.UpdateDashboardCommand = UpdateDashboardCommand;exports.UpdateEventDataStoreCommand = UpdateEventDataStoreCommand;exports.UpdateTrailCommand = UpdateTrailCommand;exports.paginateGetQueryResults = paginateGetQueryResults;exports.paginateListChannels = paginateListChannels;exports.paginateListEventDataStores = paginateListEventDataStores;exports.paginateListImportFailures = paginateListImportFailures;exports.paginateListImports = paginateListImports;exports.paginateListInsightsData = paginateListInsightsData;exports.paginateListInsightsMetricData = paginateListInsightsMetricData;exports.paginateListPublicKeys = paginateListPublicKeys;exports.paginateListQueries = paginateListQueries;exports.paginateListTags = paginateListTags;exports.paginateListTrails = paginateListTrails;exports.paginateLookupEvents = paginateLookupEvents;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];});