Skip to content

Commit

Permalink
docs(clients): use interface for client input and resolved config
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP committed Apr 16, 2021
1 parent 5fe8ed6 commit da68d81
Show file tree
Hide file tree
Showing 252 changed files with 3,286 additions and 504 deletions.
15 changes: 13 additions & 2 deletions clients/client-accessanalyzer/AccessAnalyzerClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -212,23 +212,31 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
defaultUserAgentProvider?: Provider<__UserAgent>;
}

export type AccessAnalyzerClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
type AccessAnalyzerClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
ClientDefaults &
RegionInputConfig &
EndpointsInputConfig &
RetryInputConfig &
HostHeaderInputConfig &
AwsAuthInputConfig &
UserAgentInputConfig;
/**
* The configuration interface of AccessAnalyzerClient class constructor that set the region, credentials and other options.
*/
export interface AccessAnalyzerClientConfig extends AccessAnalyzerClientConfigType {}

export type AccessAnalyzerClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
type AccessAnalyzerClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
Required<ClientDefaults> &
RegionResolvedConfig &
EndpointsResolvedConfig &
RetryResolvedConfig &
HostHeaderResolvedConfig &
AwsAuthResolvedConfig &
UserAgentResolvedConfig;
/**
* The resolved configuration interface of AccessAnalyzerClient class. This is resolved and normalized from the {@link AccessAnalyzerClientConfig | constructor configuration interface}.
*/
export interface AccessAnalyzerClientResolvedConfig extends AccessAnalyzerClientResolvedConfigType {}

/**
* <p>AWS IAM Access Analyzer helps identify potential resource-access risks by enabling you to identify
Expand All @@ -245,6 +253,9 @@ export class AccessAnalyzerClient extends __Client<
ServiceOutputTypes,
AccessAnalyzerClientResolvedConfig
> {
/**
* The resolved configuration of AccessAnalyzerClient class. This is resolved and normalized from the {@link AccessAnalyzerClientConfig | constructor configuration interface}.
*/
readonly config: AccessAnalyzerClientResolvedConfig;

constructor(configuration: AccessAnalyzerClientConfig) {
Expand Down
15 changes: 13 additions & 2 deletions clients/client-acm-pca/ACMPCAClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -257,23 +257,31 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
defaultUserAgentProvider?: Provider<__UserAgent>;
}

export type ACMPCAClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
type ACMPCAClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
ClientDefaults &
RegionInputConfig &
EndpointsInputConfig &
RetryInputConfig &
HostHeaderInputConfig &
AwsAuthInputConfig &
UserAgentInputConfig;
/**
* The configuration interface of ACMPCAClient class constructor that set the region, credentials and other options.
*/
export interface ACMPCAClientConfig extends ACMPCAClientConfigType {}

export type ACMPCAClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
type ACMPCAClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
Required<ClientDefaults> &
RegionResolvedConfig &
EndpointsResolvedConfig &
RetryResolvedConfig &
HostHeaderResolvedConfig &
AwsAuthResolvedConfig &
UserAgentResolvedConfig;
/**
* The resolved configuration interface of ACMPCAClient class. This is resolved and normalized from the {@link ACMPCAClientConfig | constructor configuration interface}.
*/
export interface ACMPCAClientResolvedConfig extends ACMPCAClientResolvedConfigType {}

/**
* <note>
Expand All @@ -299,6 +307,9 @@ export class ACMPCAClient extends __Client<
ServiceOutputTypes,
ACMPCAClientResolvedConfig
> {
/**
* The resolved configuration of ACMPCAClient class. This is resolved and normalized from the {@link ACMPCAClientConfig | constructor configuration interface}.
*/
readonly config: ACMPCAClientResolvedConfig;

constructor(configuration: ACMPCAClientConfig) {
Expand Down
15 changes: 13 additions & 2 deletions clients/client-acm/ACMClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,23 +206,31 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
defaultUserAgentProvider?: Provider<__UserAgent>;
}

export type ACMClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
type ACMClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
ClientDefaults &
RegionInputConfig &
EndpointsInputConfig &
RetryInputConfig &
HostHeaderInputConfig &
AwsAuthInputConfig &
UserAgentInputConfig;
/**
* The configuration interface of ACMClient class constructor that set the region, credentials and other options.
*/
export interface ACMClientConfig extends ACMClientConfigType {}

export type ACMClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
type ACMClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
Required<ClientDefaults> &
RegionResolvedConfig &
EndpointsResolvedConfig &
RetryResolvedConfig &
HostHeaderResolvedConfig &
AwsAuthResolvedConfig &
UserAgentResolvedConfig;
/**
* The resolved configuration interface of ACMClient class. This is resolved and normalized from the {@link ACMClientConfig | constructor configuration interface}.
*/
export interface ACMClientResolvedConfig extends ACMClientResolvedConfigType {}

/**
* <fullname>AWS Certificate Manager</fullname>
Expand All @@ -238,6 +246,9 @@ export class ACMClient extends __Client<
ServiceOutputTypes,
ACMClientResolvedConfig
> {
/**
* The resolved configuration of ACMClient class. This is resolved and normalized from the {@link ACMClientConfig | constructor configuration interface}.
*/
readonly config: ACMClientResolvedConfig;

constructor(configuration: ACMClientConfig) {
Expand Down
15 changes: 13 additions & 2 deletions clients/client-alexa-for-business/AlexaForBusinessClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -545,23 +545,31 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
defaultUserAgentProvider?: Provider<__UserAgent>;
}

export type AlexaForBusinessClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
type AlexaForBusinessClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
ClientDefaults &
RegionInputConfig &
EndpointsInputConfig &
RetryInputConfig &
HostHeaderInputConfig &
AwsAuthInputConfig &
UserAgentInputConfig;
/**
* The configuration interface of AlexaForBusinessClient class constructor that set the region, credentials and other options.
*/
export interface AlexaForBusinessClientConfig extends AlexaForBusinessClientConfigType {}

export type AlexaForBusinessClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
type AlexaForBusinessClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
Required<ClientDefaults> &
RegionResolvedConfig &
EndpointsResolvedConfig &
RetryResolvedConfig &
HostHeaderResolvedConfig &
AwsAuthResolvedConfig &
UserAgentResolvedConfig;
/**
* The resolved configuration interface of AlexaForBusinessClient class. This is resolved and normalized from the {@link AlexaForBusinessClientConfig | constructor configuration interface}.
*/
export interface AlexaForBusinessClientResolvedConfig extends AlexaForBusinessClientResolvedConfigType {}

/**
* <p>Alexa for Business helps you use Alexa in your organization. Alexa for Business provides you with the tools
Expand All @@ -579,6 +587,9 @@ export class AlexaForBusinessClient extends __Client<
ServiceOutputTypes,
AlexaForBusinessClientResolvedConfig
> {
/**
* The resolved configuration of AlexaForBusinessClient class. This is resolved and normalized from the {@link AlexaForBusinessClientConfig | constructor configuration interface}.
*/
readonly config: AlexaForBusinessClientResolvedConfig;

constructor(configuration: AlexaForBusinessClientConfig) {
Expand Down
15 changes: 13 additions & 2 deletions clients/client-amplify/AmplifyClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,23 +290,31 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
defaultUserAgentProvider?: Provider<__UserAgent>;
}

export type AmplifyClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
type AmplifyClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
ClientDefaults &
RegionInputConfig &
EndpointsInputConfig &
RetryInputConfig &
HostHeaderInputConfig &
AwsAuthInputConfig &
UserAgentInputConfig;
/**
* The configuration interface of AmplifyClient class constructor that set the region, credentials and other options.
*/
export interface AmplifyClientConfig extends AmplifyClientConfigType {}

export type AmplifyClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
type AmplifyClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
Required<ClientDefaults> &
RegionResolvedConfig &
EndpointsResolvedConfig &
RetryResolvedConfig &
HostHeaderResolvedConfig &
AwsAuthResolvedConfig &
UserAgentResolvedConfig;
/**
* The resolved configuration interface of AmplifyClient class. This is resolved and normalized from the {@link AmplifyClientConfig | constructor configuration interface}.
*/
export interface AmplifyClientResolvedConfig extends AmplifyClientResolvedConfigType {}

/**
* <p>Amplify enables developers to develop and deploy cloud-powered mobile and web apps.
Expand All @@ -322,6 +330,9 @@ export class AmplifyClient extends __Client<
ServiceOutputTypes,
AmplifyClientResolvedConfig
> {
/**
* The resolved configuration of AmplifyClient class. This is resolved and normalized from the {@link AmplifyClientConfig | constructor configuration interface}.
*/
readonly config: AmplifyClientResolvedConfig;

constructor(configuration: AmplifyClientConfig) {
Expand Down
15 changes: 13 additions & 2 deletions clients/client-amplifybackend/AmplifyBackendClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,23 +236,31 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
defaultUserAgentProvider?: Provider<__UserAgent>;
}

export type AmplifyBackendClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
type AmplifyBackendClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
ClientDefaults &
RegionInputConfig &
EndpointsInputConfig &
RetryInputConfig &
HostHeaderInputConfig &
AwsAuthInputConfig &
UserAgentInputConfig;
/**
* The configuration interface of AmplifyBackendClient class constructor that set the region, credentials and other options.
*/
export interface AmplifyBackendClientConfig extends AmplifyBackendClientConfigType {}

export type AmplifyBackendClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
type AmplifyBackendClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
Required<ClientDefaults> &
RegionResolvedConfig &
EndpointsResolvedConfig &
RetryResolvedConfig &
HostHeaderResolvedConfig &
AwsAuthResolvedConfig &
UserAgentResolvedConfig;
/**
* The resolved configuration interface of AmplifyBackendClient class. This is resolved and normalized from the {@link AmplifyBackendClientConfig | constructor configuration interface}.
*/
export interface AmplifyBackendClientResolvedConfig extends AmplifyBackendClientResolvedConfigType {}

/**
* <p>AWS Amplify Admin API</p>
Expand All @@ -263,6 +271,9 @@ export class AmplifyBackendClient extends __Client<
ServiceOutputTypes,
AmplifyBackendClientResolvedConfig
> {
/**
* The resolved configuration of AmplifyBackendClient class. This is resolved and normalized from the {@link AmplifyBackendClientConfig | constructor configuration interface}.
*/
readonly config: AmplifyBackendClientResolvedConfig;

constructor(configuration: AmplifyBackendClientConfig) {
Expand Down
15 changes: 13 additions & 2 deletions clients/client-api-gateway/APIGatewayClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -618,23 +618,31 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
defaultUserAgentProvider?: Provider<__UserAgent>;
}

export type APIGatewayClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
type APIGatewayClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
ClientDefaults &
RegionInputConfig &
EndpointsInputConfig &
RetryInputConfig &
HostHeaderInputConfig &
AwsAuthInputConfig &
UserAgentInputConfig;
/**
* The configuration interface of APIGatewayClient class constructor that set the region, credentials and other options.
*/
export interface APIGatewayClientConfig extends APIGatewayClientConfigType {}

export type APIGatewayClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
type APIGatewayClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
Required<ClientDefaults> &
RegionResolvedConfig &
EndpointsResolvedConfig &
RetryResolvedConfig &
HostHeaderResolvedConfig &
AwsAuthResolvedConfig &
UserAgentResolvedConfig;
/**
* The resolved configuration interface of APIGatewayClient class. This is resolved and normalized from the {@link APIGatewayClientConfig | constructor configuration interface}.
*/
export interface APIGatewayClientResolvedConfig extends APIGatewayClientResolvedConfigType {}

/**
* <fullname>Amazon API Gateway</fullname>
Expand All @@ -646,6 +654,9 @@ export class APIGatewayClient extends __Client<
ServiceOutputTypes,
APIGatewayClientResolvedConfig
> {
/**
* The resolved configuration of APIGatewayClient class. This is resolved and normalized from the {@link APIGatewayClientConfig | constructor configuration interface}.
*/
readonly config: APIGatewayClientResolvedConfig;

constructor(configuration: APIGatewayClientConfig) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,23 +155,31 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
defaultUserAgentProvider?: Provider<__UserAgent>;
}

export type ApiGatewayManagementApiClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
type ApiGatewayManagementApiClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
ClientDefaults &
RegionInputConfig &
EndpointsInputConfig &
RetryInputConfig &
HostHeaderInputConfig &
AwsAuthInputConfig &
UserAgentInputConfig;
/**
* The configuration interface of ApiGatewayManagementApiClient class constructor that set the region, credentials and other options.
*/
export interface ApiGatewayManagementApiClientConfig extends ApiGatewayManagementApiClientConfigType {}

export type ApiGatewayManagementApiClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
type ApiGatewayManagementApiClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
Required<ClientDefaults> &
RegionResolvedConfig &
EndpointsResolvedConfig &
RetryResolvedConfig &
HostHeaderResolvedConfig &
AwsAuthResolvedConfig &
UserAgentResolvedConfig;
/**
* The resolved configuration interface of ApiGatewayManagementApiClient class. This is resolved and normalized from the {@link ApiGatewayManagementApiClientConfig | constructor configuration interface}.
*/
export interface ApiGatewayManagementApiClientResolvedConfig extends ApiGatewayManagementApiClientResolvedConfigType {}

/**
* <p>The Amazon API Gateway Management API allows you to directly manage runtime aspects of your deployed APIs. To use it, you must explicitly set the SDK's endpoint to point to the endpoint of your deployed API. The endpoint will be of the form https://{api-id}.execute-api.{region}.amazonaws.com/{stage}, or will be the endpoint corresponding to your API's custom domain and base path, if applicable.</p>
Expand All @@ -182,6 +190,9 @@ export class ApiGatewayManagementApiClient extends __Client<
ServiceOutputTypes,
ApiGatewayManagementApiClientResolvedConfig
> {
/**
* The resolved configuration of ApiGatewayManagementApiClient class. This is resolved and normalized from the {@link ApiGatewayManagementApiClientConfig | constructor configuration interface}.
*/
readonly config: ApiGatewayManagementApiClientResolvedConfig;

constructor(configuration: ApiGatewayManagementApiClientConfig) {
Expand Down
15 changes: 13 additions & 2 deletions clients/client-apigatewayv2/ApiGatewayV2Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -404,23 +404,31 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
defaultUserAgentProvider?: Provider<__UserAgent>;
}

export type ApiGatewayV2ClientConfig = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
type ApiGatewayV2ClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> &
ClientDefaults &
RegionInputConfig &
EndpointsInputConfig &
RetryInputConfig &
HostHeaderInputConfig &
AwsAuthInputConfig &
UserAgentInputConfig;
/**
* The configuration interface of ApiGatewayV2Client class constructor that set the region, credentials and other options.
*/
export interface ApiGatewayV2ClientConfig extends ApiGatewayV2ClientConfigType {}

export type ApiGatewayV2ClientResolvedConfig = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
type ApiGatewayV2ClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> &
Required<ClientDefaults> &
RegionResolvedConfig &
EndpointsResolvedConfig &
RetryResolvedConfig &
HostHeaderResolvedConfig &
AwsAuthResolvedConfig &
UserAgentResolvedConfig;
/**
* The resolved configuration interface of ApiGatewayV2Client class. This is resolved and normalized from the {@link ApiGatewayV2ClientConfig | constructor configuration interface}.
*/
export interface ApiGatewayV2ClientResolvedConfig extends ApiGatewayV2ClientResolvedConfigType {}

/**
* <p>Amazon API Gateway V2</p>
Expand All @@ -431,6 +439,9 @@ export class ApiGatewayV2Client extends __Client<
ServiceOutputTypes,
ApiGatewayV2ClientResolvedConfig
> {
/**
* The resolved configuration of ApiGatewayV2Client class. This is resolved and normalized from the {@link ApiGatewayV2ClientConfig | constructor configuration interface}.
*/
readonly config: ApiGatewayV2ClientResolvedConfig;

constructor(configuration: ApiGatewayV2ClientConfig) {
Expand Down

0 comments on commit da68d81

Please sign in to comment.