Skip to content

Commit

Permalink
feat(clients): update clients as of 07/01/2021 (#2542)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Jul 2, 2021
1 parent 42de2c1 commit ed301ba
Show file tree
Hide file tree
Showing 454 changed files with 50,682 additions and 16,214 deletions.
43 changes: 40 additions & 3 deletions clients/client-amplifybackend/AmplifyBackend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ import {
GetBackendJobCommandOutput,
} from "./commands/GetBackendJobCommand";
import { GetTokenCommand, GetTokenCommandInput, GetTokenCommandOutput } from "./commands/GetTokenCommand";
import {
ImportBackendAuthCommand,
ImportBackendAuthCommandInput,
ImportBackendAuthCommandOutput,
} from "./commands/ImportBackendAuthCommand";
import {
ListBackendJobsCommand,
ListBackendJobsCommandInput,
Expand Down Expand Up @@ -537,7 +542,7 @@ export class AmplifyBackend extends AmplifyBackendClient {
}

/**
* <p>Gets backend auth details.</p>
* <p>Gets a backend auth details.</p>
*/
public getBackendAuth(
args: GetBackendAuthCommandInput,
Expand Down Expand Up @@ -626,6 +631,38 @@ export class AmplifyBackend extends AmplifyBackendClient {
}
}

/**
* <p>Imports an existing backend authentication resource.</p>
*/
public importBackendAuth(
args: ImportBackendAuthCommandInput,
options?: __HttpHandlerOptions
): Promise<ImportBackendAuthCommandOutput>;
public importBackendAuth(
args: ImportBackendAuthCommandInput,
cb: (err: any, data?: ImportBackendAuthCommandOutput) => void
): void;
public importBackendAuth(
args: ImportBackendAuthCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ImportBackendAuthCommandOutput) => void
): void;
public importBackendAuth(
args: ImportBackendAuthCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ImportBackendAuthCommandOutput) => void),
cb?: (err: any, data?: ImportBackendAuthCommandOutput) => void
): Promise<ImportBackendAuthCommandOutput> | void {
const command = new ImportBackendAuthCommand(args);
if (typeof optionsOrCb === "function") {
this.send(command, optionsOrCb);
} else if (typeof cb === "function") {
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
this.send(command, optionsOrCb || {}, cb);
} else {
return this.send(command, optionsOrCb);
}
}

/**
* <p>Lists the jobs for the backend of an Amplify app.</p>
*/
Expand Down Expand Up @@ -691,7 +728,7 @@ export class AmplifyBackend extends AmplifyBackendClient {
}

/**
* <p>Removes the AWS resources that are required to access the Amplify Admin UI.</p>
* <p>Removes the AWS resources required to access the Amplify Admin UI.</p>
*/
public removeBackendConfig(
args: RemoveBackendConfigCommandInput,
Expand Down Expand Up @@ -787,7 +824,7 @@ export class AmplifyBackend extends AmplifyBackendClient {
}

/**
* <p>Updates the AWS resources that are required to access the Amplify Admin UI.</p>
* <p>Updates the AWS resources required to access the Amplify Admin UI.</p>
*/
public updateBackendConfig(
args: UpdateBackendConfigCommandInput,
Expand Down
3 changes: 3 additions & 0 deletions clients/client-amplifybackend/AmplifyBackendClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { GetBackendAuthCommandInput, GetBackendAuthCommandOutput } from "./comma
import { GetBackendCommandInput, GetBackendCommandOutput } from "./commands/GetBackendCommand";
import { GetBackendJobCommandInput, GetBackendJobCommandOutput } from "./commands/GetBackendJobCommand";
import { GetTokenCommandInput, GetTokenCommandOutput } from "./commands/GetTokenCommand";
import { ImportBackendAuthCommandInput, ImportBackendAuthCommandOutput } from "./commands/ImportBackendAuthCommand";
import { ListBackendJobsCommandInput, ListBackendJobsCommandOutput } from "./commands/ListBackendJobsCommand";
import { RemoveAllBackendsCommandInput, RemoveAllBackendsCommandOutput } from "./commands/RemoveAllBackendsCommand";
import {
Expand Down Expand Up @@ -106,6 +107,7 @@ export type ServiceInputTypes =
| GetBackendCommandInput
| GetBackendJobCommandInput
| GetTokenCommandInput
| ImportBackendAuthCommandInput
| ListBackendJobsCommandInput
| RemoveAllBackendsCommandInput
| RemoveBackendConfigCommandInput
Expand All @@ -132,6 +134,7 @@ export type ServiceOutputTypes =
| GetBackendCommandOutput
| GetBackendJobCommandOutput
| GetTokenCommandOutput
| ImportBackendAuthCommandOutput
| ListBackendJobsCommandOutput
| RemoveAllBackendsCommandOutput
| RemoveBackendConfigCommandOutput
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface GetBackendAuthCommandInput extends GetBackendAuthRequest {}
export interface GetBackendAuthCommandOutput extends GetBackendAuthResponse, __MetadataBearer {}

/**
* <p>Gets backend auth details.</p>
* <p>Gets a backend auth details.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
94 changes: 94 additions & 0 deletions clients/client-amplifybackend/commands/ImportBackendAuthCommand.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
import { AmplifyBackendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyBackendClient";
import { ImportBackendAuthRequest, ImportBackendAuthResponse } from "../models/models_0";
import {
deserializeAws_restJson1ImportBackendAuthCommand,
serializeAws_restJson1ImportBackendAuthCommand,
} from "../protocols/Aws_restJson1";
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
import { Command as $Command } from "@aws-sdk/smithy-client";
import {
FinalizeHandlerArguments,
Handler,
HandlerExecutionContext,
MiddlewareStack,
HttpHandlerOptions as __HttpHandlerOptions,
MetadataBearer as __MetadataBearer,
SerdeContext as __SerdeContext,
} from "@aws-sdk/types";

export interface ImportBackendAuthCommandInput extends ImportBackendAuthRequest {}
export interface ImportBackendAuthCommandOutput extends ImportBackendAuthResponse, __MetadataBearer {}

/**
* <p>Imports an existing backend authentication resource.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
* import { AmplifyBackendClient, ImportBackendAuthCommand } from "@aws-sdk/client-amplifybackend"; // ES Modules import
* // const { AmplifyBackendClient, ImportBackendAuthCommand } = require("@aws-sdk/client-amplifybackend"); // CommonJS import
* const client = new AmplifyBackendClient(config);
* const command = new ImportBackendAuthCommand(input);
* const response = await client.send(command);
* ```
*
* @see {@link ImportBackendAuthCommandInput} for command's `input` shape.
* @see {@link ImportBackendAuthCommandOutput} for command's `response` shape.
* @see {@link AmplifyBackendClientResolvedConfig | config} for command's `input` shape.
*
*/
export class ImportBackendAuthCommand extends $Command<
ImportBackendAuthCommandInput,
ImportBackendAuthCommandOutput,
AmplifyBackendClientResolvedConfig
> {
// Start section: command_properties
// End section: command_properties

constructor(readonly input: ImportBackendAuthCommandInput) {
// Start section: command_constructor
super();
// End section: command_constructor
}

/**
* @internal
*/
resolveMiddleware(
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
configuration: AmplifyBackendClientResolvedConfig,
options?: __HttpHandlerOptions
): Handler<ImportBackendAuthCommandInput, ImportBackendAuthCommandOutput> {
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));

const stack = clientStack.concat(this.middlewareStack);

const { logger } = configuration;
const clientName = "AmplifyBackendClient";
const commandName = "ImportBackendAuthCommand";
const handlerExecutionContext: HandlerExecutionContext = {
logger,
clientName,
commandName,
inputFilterSensitiveLog: ImportBackendAuthRequest.filterSensitiveLog,
outputFilterSensitiveLog: ImportBackendAuthResponse.filterSensitiveLog,
};
const { requestHandler } = configuration;
return stack.resolve(
(request: FinalizeHandlerArguments<any>) =>
requestHandler.handle(request.request as __HttpRequest, options || {}),
handlerExecutionContext
);
}

private serialize(input: ImportBackendAuthCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
return serializeAws_restJson1ImportBackendAuthCommand(input, context);
}

private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ImportBackendAuthCommandOutput> {
return deserializeAws_restJson1ImportBackendAuthCommand(output, context);
}

// Start section: command_body_extra
// End section: command_body_extra
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface RemoveBackendConfigCommandInput extends RemoveBackendConfigRequ
export interface RemoveBackendConfigCommandOutput extends RemoveBackendConfigResponse, __MetadataBearer {}

/**
* <p>Removes the AWS resources that are required to access the Amplify Admin UI.</p>
* <p>Removes the AWS resources required to access the Amplify Admin UI.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export interface UpdateBackendConfigCommandInput extends UpdateBackendConfigRequ
export interface UpdateBackendConfigCommandOutput extends UpdateBackendConfigResponse, __MetadataBearer {}

/**
* <p>Updates the AWS resources that are required to access the Amplify Admin UI.</p>
* <p>Updates the AWS resources required to access the Amplify Admin UI.</p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down
1 change: 1 addition & 0 deletions clients/client-amplifybackend/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export * from "./commands/GetBackendAPIModelsCommand";
export * from "./commands/GetBackendAuthCommand";
export * from "./commands/GetBackendJobCommand";
export * from "./commands/GetTokenCommand";
export * from "./commands/ImportBackendAuthCommand";
export * from "./commands/ListBackendJobsCommand";
export * from "./commands/RemoveAllBackendsCommand";
export * from "./commands/RemoveBackendConfigCommand";
Expand Down
Loading

0 comments on commit ed301ba

Please sign in to comment.