Skip to content

Commit

Permalink
chore: set logger to empty by default in RuntimeConfig (#1493)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Sep 3, 2020
1 parent 172f444 commit 003fd0e
Show file tree
Hide file tree
Showing 463 changed files with 2,991 additions and 2,995 deletions.
24 changes: 11 additions & 13 deletions clients/client-accessanalyzer/AccessAnalyzerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,7 @@ import {
getHostHeaderPlugin,
resolveHostHeaderConfig,
} from "@aws-sdk/middleware-host-header";
import {
LoggerInputConfig,
LoggerResolvedConfig,
getLoggerPlugin,
resolveLoggerConfig,
} from "@aws-sdk/middleware-logger";
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
import {
AwsAuthInputConfig,
Expand All @@ -73,6 +68,7 @@ import {
Encoder as __Encoder,
HashConstructor as __HashConstructor,
HttpHandlerOptions as __HttpHandlerOptions,
Logger as __Logger,
Provider as __Provider,
StreamCollector as __StreamCollector,
UrlParser as __UrlParser,
Expand Down Expand Up @@ -201,6 +197,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
maxAttempts?: number | __Provider<number>;

/**
* Optional logger for logging debug/info/warn/error.
*/
logger?: __Logger;

/**
* Fetch related hostname, signing name or signing region with given region.
*/
Expand All @@ -214,8 +215,7 @@ export type AccessAnalyzerClientConfig = Partial<__SmithyConfiguration<__HttpHan
AwsAuthInputConfig &
RetryInputConfig &
UserAgentInputConfig &
HostHeaderInputConfig &
LoggerInputConfig;
HostHeaderInputConfig;

export type AccessAnalyzerClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
Required<ClientDefaults> &
Expand All @@ -224,8 +224,7 @@ export type AccessAnalyzerClientResolvedConfig = __SmithyResolvedConfiguration<_
AwsAuthResolvedConfig &
RetryResolvedConfig &
UserAgentResolvedConfig &
HostHeaderResolvedConfig &
LoggerResolvedConfig;
HostHeaderResolvedConfig;

/**
* <p>AWS IAM Access Analyzer helps identify potential resource-access risks by enabling you to identify
Expand Down Expand Up @@ -255,9 +254,8 @@ export class AccessAnalyzerClient extends __Client<
let _config_4 = resolveRetryConfig(_config_3);
let _config_5 = resolveUserAgentConfig(_config_4);
let _config_6 = resolveHostHeaderConfig(_config_5);
let _config_7 = resolveLoggerConfig(_config_6);
super(_config_7);
this.config = _config_7;
super(_config_6);
this.config = _config_6;
this.middlewareStack.use(getAwsAuthPlugin(this.config));
this.middlewareStack.use(getRetryPlugin(this.config));
this.middlewareStack.use(getUserAgentPlugin(this.config));
Expand Down
2 changes: 2 additions & 0 deletions clients/client-accessanalyzer/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { defaultRegionInfoProvider } from "./endpoints";
import { Logger as __Logger } from "@aws-sdk/types";

export const ClientSharedValues = {
apiVersion: "2019-11-01",
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
signingName: "access-analyzer",
};
24 changes: 11 additions & 13 deletions clients/client-acm-pca/ACMPCAClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,7 @@ import {
getHostHeaderPlugin,
resolveHostHeaderConfig,
} from "@aws-sdk/middleware-host-header";
import {
LoggerInputConfig,
LoggerResolvedConfig,
getLoggerPlugin,
resolveLoggerConfig,
} from "@aws-sdk/middleware-logger";
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
import {
AwsAuthInputConfig,
Expand All @@ -105,6 +100,7 @@ import {
Encoder as __Encoder,
HashConstructor as __HashConstructor,
HttpHandlerOptions as __HttpHandlerOptions,
Logger as __Logger,
Provider as __Provider,
StreamCollector as __StreamCollector,
UrlParser as __UrlParser,
Expand Down Expand Up @@ -237,6 +233,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
maxAttempts?: number | __Provider<number>;

/**
* Optional logger for logging debug/info/warn/error.
*/
logger?: __Logger;

/**
* Fetch related hostname, signing name or signing region with given region.
*/
Expand All @@ -250,8 +251,7 @@ export type ACMPCAClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOpti
AwsAuthInputConfig &
RetryInputConfig &
UserAgentInputConfig &
HostHeaderInputConfig &
LoggerInputConfig;
HostHeaderInputConfig;

export type ACMPCAClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
Required<ClientDefaults> &
Expand All @@ -260,8 +260,7 @@ export type ACMPCAClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHan
AwsAuthResolvedConfig &
RetryResolvedConfig &
UserAgentResolvedConfig &
HostHeaderResolvedConfig &
LoggerResolvedConfig;
HostHeaderResolvedConfig;

/**
* <p>This is the <i>ACM Private CA API Reference</i>. It provides descriptions,
Expand Down Expand Up @@ -297,9 +296,8 @@ export class ACMPCAClient extends __Client<
let _config_4 = resolveRetryConfig(_config_3);
let _config_5 = resolveUserAgentConfig(_config_4);
let _config_6 = resolveHostHeaderConfig(_config_5);
let _config_7 = resolveLoggerConfig(_config_6);
super(_config_7);
this.config = _config_7;
super(_config_6);
this.config = _config_6;
this.middlewareStack.use(getAwsAuthPlugin(this.config));
this.middlewareStack.use(getRetryPlugin(this.config));
this.middlewareStack.use(getUserAgentPlugin(this.config));
Expand Down
2 changes: 2 additions & 0 deletions clients/client-acm-pca/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { defaultRegionInfoProvider } from "./endpoints";
import { Logger as __Logger } from "@aws-sdk/types";

export const ClientSharedValues = {
apiVersion: "2017-08-22",
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
signingName: "acm-pca",
};
24 changes: 11 additions & 13 deletions clients/client-acm/ACMClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,7 @@ import {
getHostHeaderPlugin,
resolveHostHeaderConfig,
} from "@aws-sdk/middleware-host-header";
import {
LoggerInputConfig,
LoggerResolvedConfig,
getLoggerPlugin,
resolveLoggerConfig,
} from "@aws-sdk/middleware-logger";
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
import {
AwsAuthInputConfig,
Expand All @@ -77,6 +72,7 @@ import {
Encoder as __Encoder,
HashConstructor as __HashConstructor,
HttpHandlerOptions as __HttpHandlerOptions,
Logger as __Logger,
Provider as __Provider,
StreamCollector as __StreamCollector,
UrlParser as __UrlParser,
Expand Down Expand Up @@ -195,6 +191,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
maxAttempts?: number | __Provider<number>;

/**
* Optional logger for logging debug/info/warn/error.
*/
logger?: __Logger;

/**
* Fetch related hostname, signing name or signing region with given region.
*/
Expand All @@ -208,8 +209,7 @@ export type ACMClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions
AwsAuthInputConfig &
RetryInputConfig &
UserAgentInputConfig &
HostHeaderInputConfig &
LoggerInputConfig;
HostHeaderInputConfig;

export type ACMClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
Required<ClientDefaults> &
Expand All @@ -218,8 +218,7 @@ export type ACMClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandle
AwsAuthResolvedConfig &
RetryResolvedConfig &
UserAgentResolvedConfig &
HostHeaderResolvedConfig &
LoggerResolvedConfig;
HostHeaderResolvedConfig;

/**
* <fullname>AWS Certificate Manager</fullname>
Expand Down Expand Up @@ -248,9 +247,8 @@ export class ACMClient extends __Client<
let _config_4 = resolveRetryConfig(_config_3);
let _config_5 = resolveUserAgentConfig(_config_4);
let _config_6 = resolveHostHeaderConfig(_config_5);
let _config_7 = resolveLoggerConfig(_config_6);
super(_config_7);
this.config = _config_7;
super(_config_6);
this.config = _config_6;
this.middlewareStack.use(getAwsAuthPlugin(this.config));
this.middlewareStack.use(getRetryPlugin(this.config));
this.middlewareStack.use(getUserAgentPlugin(this.config));
Expand Down
2 changes: 2 additions & 0 deletions clients/client-acm/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { defaultRegionInfoProvider } from "./endpoints";
import { Logger as __Logger } from "@aws-sdk/types";

export const ClientSharedValues = {
apiVersion: "2015-12-08",
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
signingName: "acm",
};
24 changes: 11 additions & 13 deletions clients/client-alexa-for-business/AlexaForBusinessClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -224,12 +224,7 @@ import {
getHostHeaderPlugin,
resolveHostHeaderConfig,
} from "@aws-sdk/middleware-host-header";
import {
LoggerInputConfig,
LoggerResolvedConfig,
getLoggerPlugin,
resolveLoggerConfig,
} from "@aws-sdk/middleware-logger";
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
import {
AwsAuthInputConfig,
Expand All @@ -256,6 +251,7 @@ import {
Encoder as __Encoder,
HashConstructor as __HashConstructor,
HttpHandlerOptions as __HttpHandlerOptions,
Logger as __Logger,
Provider as __Provider,
StreamCollector as __StreamCollector,
UrlParser as __UrlParser,
Expand Down Expand Up @@ -534,6 +530,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
maxAttempts?: number | __Provider<number>;

/**
* Optional logger for logging debug/info/warn/error.
*/
logger?: __Logger;

/**
* Fetch related hostname, signing name or signing region with given region.
*/
Expand All @@ -547,8 +548,7 @@ export type AlexaForBusinessClientConfig = Partial<__SmithyConfiguration<__HttpH
AwsAuthInputConfig &
RetryInputConfig &
UserAgentInputConfig &
HostHeaderInputConfig &
LoggerInputConfig;
HostHeaderInputConfig;

export type AlexaForBusinessClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
Required<ClientDefaults> &
Expand All @@ -557,8 +557,7 @@ export type AlexaForBusinessClientResolvedConfig = __SmithyResolvedConfiguration
AwsAuthResolvedConfig &
RetryResolvedConfig &
UserAgentResolvedConfig &
HostHeaderResolvedConfig &
LoggerResolvedConfig;
HostHeaderResolvedConfig;

/**
* <p>Alexa for Business helps you use Alexa in your organization. Alexa for Business provides you with the tools
Expand Down Expand Up @@ -589,9 +588,8 @@ export class AlexaForBusinessClient extends __Client<
let _config_4 = resolveRetryConfig(_config_3);
let _config_5 = resolveUserAgentConfig(_config_4);
let _config_6 = resolveHostHeaderConfig(_config_5);
let _config_7 = resolveLoggerConfig(_config_6);
super(_config_7);
this.config = _config_7;
super(_config_6);
this.config = _config_6;
this.middlewareStack.use(getAwsAuthPlugin(this.config));
this.middlewareStack.use(getRetryPlugin(this.config));
this.middlewareStack.use(getUserAgentPlugin(this.config));
Expand Down
2 changes: 2 additions & 0 deletions clients/client-alexa-for-business/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { defaultRegionInfoProvider } from "./endpoints";
import { Logger as __Logger } from "@aws-sdk/types";

export const ClientSharedValues = {
apiVersion: "2017-11-09",
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
signingName: "a4b",
};
24 changes: 11 additions & 13 deletions clients/client-amplify/AmplifyClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,7 @@ import {
getHostHeaderPlugin,
resolveHostHeaderConfig,
} from "@aws-sdk/middleware-host-header";
import {
LoggerInputConfig,
LoggerResolvedConfig,
getLoggerPlugin,
resolveLoggerConfig,
} from "@aws-sdk/middleware-logger";
import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
import { RetryInputConfig, RetryResolvedConfig, getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
import {
AwsAuthInputConfig,
Expand All @@ -113,6 +108,7 @@ import {
Encoder as __Encoder,
HashConstructor as __HashConstructor,
HttpHandlerOptions as __HttpHandlerOptions,
Logger as __Logger,
Provider as __Provider,
StreamCollector as __StreamCollector,
UrlParser as __UrlParser,
Expand Down Expand Up @@ -279,6 +275,11 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
*/
maxAttempts?: number | __Provider<number>;

/**
* Optional logger for logging debug/info/warn/error.
*/
logger?: __Logger;

/**
* Fetch related hostname, signing name or signing region with given region.
*/
Expand All @@ -292,8 +293,7 @@ export type AmplifyClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOpt
AwsAuthInputConfig &
RetryInputConfig &
UserAgentInputConfig &
HostHeaderInputConfig &
LoggerInputConfig;
HostHeaderInputConfig;

export type AmplifyClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
Required<ClientDefaults> &
Expand All @@ -302,8 +302,7 @@ export type AmplifyClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHa
AwsAuthResolvedConfig &
RetryResolvedConfig &
UserAgentResolvedConfig &
HostHeaderResolvedConfig &
LoggerResolvedConfig;
HostHeaderResolvedConfig;

/**
* <p>Amplify enables developers to develop and deploy cloud-powered mobile and web apps.
Expand Down Expand Up @@ -332,9 +331,8 @@ export class AmplifyClient extends __Client<
let _config_4 = resolveRetryConfig(_config_3);
let _config_5 = resolveUserAgentConfig(_config_4);
let _config_6 = resolveHostHeaderConfig(_config_5);
let _config_7 = resolveLoggerConfig(_config_6);
super(_config_7);
this.config = _config_7;
super(_config_6);
this.config = _config_6;
this.middlewareStack.use(getAwsAuthPlugin(this.config));
this.middlewareStack.use(getRetryPlugin(this.config));
this.middlewareStack.use(getUserAgentPlugin(this.config));
Expand Down
2 changes: 2 additions & 0 deletions clients/client-amplify/runtimeConfig.shared.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import { defaultRegionInfoProvider } from "./endpoints";
import { Logger as __Logger } from "@aws-sdk/types";

export const ClientSharedValues = {
apiVersion: "2017-07-25",
disableHostPrefix: false,
logger: {} as __Logger,
regionInfoProvider: defaultRegionInfoProvider,
signingName: "amplify",
};
Loading

0 comments on commit 003fd0e

Please sign in to comment.