Skip to content

Commit ed301ba

Browse files
authored
feat(clients): update clients as of 07/01/2021 (#2542)
1 parent 42de2c1 commit ed301ba

File tree

454 files changed

+50682
-16214
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

454 files changed

+50682
-16214
lines changed

Diff for: clients/client-amplifybackend/AmplifyBackend.ts

+40-3
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,11 @@ import {
6868
GetBackendJobCommandOutput,
6969
} from "./commands/GetBackendJobCommand";
7070
import { GetTokenCommand, GetTokenCommandInput, GetTokenCommandOutput } from "./commands/GetTokenCommand";
71+
import {
72+
ImportBackendAuthCommand,
73+
ImportBackendAuthCommandInput,
74+
ImportBackendAuthCommandOutput,
75+
} from "./commands/ImportBackendAuthCommand";
7176
import {
7277
ListBackendJobsCommand,
7378
ListBackendJobsCommandInput,
@@ -537,7 +542,7 @@ export class AmplifyBackend extends AmplifyBackendClient {
537542
}
538543

539544
/**
540-
* <p>Gets backend auth details.</p>
545+
* <p>Gets a backend auth details.</p>
541546
*/
542547
public getBackendAuth(
543548
args: GetBackendAuthCommandInput,
@@ -626,6 +631,38 @@ export class AmplifyBackend extends AmplifyBackendClient {
626631
}
627632
}
628633

634+
/**
635+
* <p>Imports an existing backend authentication resource.</p>
636+
*/
637+
public importBackendAuth(
638+
args: ImportBackendAuthCommandInput,
639+
options?: __HttpHandlerOptions
640+
): Promise<ImportBackendAuthCommandOutput>;
641+
public importBackendAuth(
642+
args: ImportBackendAuthCommandInput,
643+
cb: (err: any, data?: ImportBackendAuthCommandOutput) => void
644+
): void;
645+
public importBackendAuth(
646+
args: ImportBackendAuthCommandInput,
647+
options: __HttpHandlerOptions,
648+
cb: (err: any, data?: ImportBackendAuthCommandOutput) => void
649+
): void;
650+
public importBackendAuth(
651+
args: ImportBackendAuthCommandInput,
652+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ImportBackendAuthCommandOutput) => void),
653+
cb?: (err: any, data?: ImportBackendAuthCommandOutput) => void
654+
): Promise<ImportBackendAuthCommandOutput> | void {
655+
const command = new ImportBackendAuthCommand(args);
656+
if (typeof optionsOrCb === "function") {
657+
this.send(command, optionsOrCb);
658+
} else if (typeof cb === "function") {
659+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
660+
this.send(command, optionsOrCb || {}, cb);
661+
} else {
662+
return this.send(command, optionsOrCb);
663+
}
664+
}
665+
629666
/**
630667
* <p>Lists the jobs for the backend of an Amplify app.</p>
631668
*/
@@ -691,7 +728,7 @@ export class AmplifyBackend extends AmplifyBackendClient {
691728
}
692729

693730
/**
694-
* <p>Removes the AWS resources that are required to access the Amplify Admin UI.</p>
731+
* <p>Removes the AWS resources required to access the Amplify Admin UI.</p>
695732
*/
696733
public removeBackendConfig(
697734
args: RemoveBackendConfigCommandInput,
@@ -787,7 +824,7 @@ export class AmplifyBackend extends AmplifyBackendClient {
787824
}
788825

789826
/**
790-
* <p>Updates the AWS resources that are required to access the Amplify Admin UI.</p>
827+
* <p>Updates the AWS resources required to access the Amplify Admin UI.</p>
791828
*/
792829
public updateBackendConfig(
793830
args: UpdateBackendConfigCommandInput,

Diff for: clients/client-amplifybackend/AmplifyBackendClient.ts

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { GetBackendAuthCommandInput, GetBackendAuthCommandOutput } from "./comma
2424
import { GetBackendCommandInput, GetBackendCommandOutput } from "./commands/GetBackendCommand";
2525
import { GetBackendJobCommandInput, GetBackendJobCommandOutput } from "./commands/GetBackendJobCommand";
2626
import { GetTokenCommandInput, GetTokenCommandOutput } from "./commands/GetTokenCommand";
27+
import { ImportBackendAuthCommandInput, ImportBackendAuthCommandOutput } from "./commands/ImportBackendAuthCommand";
2728
import { ListBackendJobsCommandInput, ListBackendJobsCommandOutput } from "./commands/ListBackendJobsCommand";
2829
import { RemoveAllBackendsCommandInput, RemoveAllBackendsCommandOutput } from "./commands/RemoveAllBackendsCommand";
2930
import {
@@ -106,6 +107,7 @@ export type ServiceInputTypes =
106107
| GetBackendCommandInput
107108
| GetBackendJobCommandInput
108109
| GetTokenCommandInput
110+
| ImportBackendAuthCommandInput
109111
| ListBackendJobsCommandInput
110112
| RemoveAllBackendsCommandInput
111113
| RemoveBackendConfigCommandInput
@@ -132,6 +134,7 @@ export type ServiceOutputTypes =
132134
| GetBackendCommandOutput
133135
| GetBackendJobCommandOutput
134136
| GetTokenCommandOutput
137+
| ImportBackendAuthCommandOutput
135138
| ListBackendJobsCommandOutput
136139
| RemoveAllBackendsCommandOutput
137140
| RemoveBackendConfigCommandOutput

Diff for: clients/client-amplifybackend/commands/GetBackendAuthCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface GetBackendAuthCommandInput extends GetBackendAuthRequest {}
2121
export interface GetBackendAuthCommandOutput extends GetBackendAuthResponse, __MetadataBearer {}
2222

2323
/**
24-
* <p>Gets backend auth details.</p>
24+
* <p>Gets a backend auth details.</p>
2525
* @example
2626
* Use a bare-bones client and the command you need to make an API call.
2727
* ```javascript
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
import { AmplifyBackendClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AmplifyBackendClient";
2+
import { ImportBackendAuthRequest, ImportBackendAuthResponse } from "../models/models_0";
3+
import {
4+
deserializeAws_restJson1ImportBackendAuthCommand,
5+
serializeAws_restJson1ImportBackendAuthCommand,
6+
} from "../protocols/Aws_restJson1";
7+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8+
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9+
import { Command as $Command } from "@aws-sdk/smithy-client";
10+
import {
11+
FinalizeHandlerArguments,
12+
Handler,
13+
HandlerExecutionContext,
14+
MiddlewareStack,
15+
HttpHandlerOptions as __HttpHandlerOptions,
16+
MetadataBearer as __MetadataBearer,
17+
SerdeContext as __SerdeContext,
18+
} from "@aws-sdk/types";
19+
20+
export interface ImportBackendAuthCommandInput extends ImportBackendAuthRequest {}
21+
export interface ImportBackendAuthCommandOutput extends ImportBackendAuthResponse, __MetadataBearer {}
22+
23+
/**
24+
* <p>Imports an existing backend authentication resource.</p>
25+
* @example
26+
* Use a bare-bones client and the command you need to make an API call.
27+
* ```javascript
28+
* import { AmplifyBackendClient, ImportBackendAuthCommand } from "@aws-sdk/client-amplifybackend"; // ES Modules import
29+
* // const { AmplifyBackendClient, ImportBackendAuthCommand } = require("@aws-sdk/client-amplifybackend"); // CommonJS import
30+
* const client = new AmplifyBackendClient(config);
31+
* const command = new ImportBackendAuthCommand(input);
32+
* const response = await client.send(command);
33+
* ```
34+
*
35+
* @see {@link ImportBackendAuthCommandInput} for command's `input` shape.
36+
* @see {@link ImportBackendAuthCommandOutput} for command's `response` shape.
37+
* @see {@link AmplifyBackendClientResolvedConfig | config} for command's `input` shape.
38+
*
39+
*/
40+
export class ImportBackendAuthCommand extends $Command<
41+
ImportBackendAuthCommandInput,
42+
ImportBackendAuthCommandOutput,
43+
AmplifyBackendClientResolvedConfig
44+
> {
45+
// Start section: command_properties
46+
// End section: command_properties
47+
48+
constructor(readonly input: ImportBackendAuthCommandInput) {
49+
// Start section: command_constructor
50+
super();
51+
// End section: command_constructor
52+
}
53+
54+
/**
55+
* @internal
56+
*/
57+
resolveMiddleware(
58+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
59+
configuration: AmplifyBackendClientResolvedConfig,
60+
options?: __HttpHandlerOptions
61+
): Handler<ImportBackendAuthCommandInput, ImportBackendAuthCommandOutput> {
62+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
63+
64+
const stack = clientStack.concat(this.middlewareStack);
65+
66+
const { logger } = configuration;
67+
const clientName = "AmplifyBackendClient";
68+
const commandName = "ImportBackendAuthCommand";
69+
const handlerExecutionContext: HandlerExecutionContext = {
70+
logger,
71+
clientName,
72+
commandName,
73+
inputFilterSensitiveLog: ImportBackendAuthRequest.filterSensitiveLog,
74+
outputFilterSensitiveLog: ImportBackendAuthResponse.filterSensitiveLog,
75+
};
76+
const { requestHandler } = configuration;
77+
return stack.resolve(
78+
(request: FinalizeHandlerArguments<any>) =>
79+
requestHandler.handle(request.request as __HttpRequest, options || {}),
80+
handlerExecutionContext
81+
);
82+
}
83+
84+
private serialize(input: ImportBackendAuthCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
85+
return serializeAws_restJson1ImportBackendAuthCommand(input, context);
86+
}
87+
88+
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ImportBackendAuthCommandOutput> {
89+
return deserializeAws_restJson1ImportBackendAuthCommand(output, context);
90+
}
91+
92+
// Start section: command_body_extra
93+
// End section: command_body_extra
94+
}

Diff for: clients/client-amplifybackend/commands/RemoveBackendConfigCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface RemoveBackendConfigCommandInput extends RemoveBackendConfigRequ
2121
export interface RemoveBackendConfigCommandOutput extends RemoveBackendConfigResponse, __MetadataBearer {}
2222

2323
/**
24-
* <p>Removes the AWS resources that are required to access the Amplify Admin UI.</p>
24+
* <p>Removes the AWS resources required to access the Amplify Admin UI.</p>
2525
* @example
2626
* Use a bare-bones client and the command you need to make an API call.
2727
* ```javascript

Diff for: clients/client-amplifybackend/commands/UpdateBackendConfigCommand.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export interface UpdateBackendConfigCommandInput extends UpdateBackendConfigRequ
2121
export interface UpdateBackendConfigCommandOutput extends UpdateBackendConfigResponse, __MetadataBearer {}
2222

2323
/**
24-
* <p>Updates the AWS resources that are required to access the Amplify Admin UI.</p>
24+
* <p>Updates the AWS resources required to access the Amplify Admin UI.</p>
2525
* @example
2626
* Use a bare-bones client and the command you need to make an API call.
2727
* ```javascript

Diff for: clients/client-amplifybackend/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export * from "./commands/GetBackendAPIModelsCommand";
1717
export * from "./commands/GetBackendAuthCommand";
1818
export * from "./commands/GetBackendJobCommand";
1919
export * from "./commands/GetTokenCommand";
20+
export * from "./commands/ImportBackendAuthCommand";
2021
export * from "./commands/ListBackendJobsCommand";
2122
export * from "./commands/RemoveAllBackendsCommand";
2223
export * from "./commands/RemoveBackendConfigCommand";

0 commit comments

Comments
 (0)