Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(clients): update clients as of 02/04/2022 #3280

Merged
merged 3 commits into from
Feb 4, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
162 changes: 158 additions & 4 deletions clients/client-appflow/src/Appflow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ import {
DeleteConnectorProfileCommandOutput,
} from "./commands/DeleteConnectorProfileCommand";
import { DeleteFlowCommand, DeleteFlowCommandInput, DeleteFlowCommandOutput } from "./commands/DeleteFlowCommand";
import {
DescribeConnectorCommand,
DescribeConnectorCommandInput,
DescribeConnectorCommandOutput,
} from "./commands/DescribeConnectorCommand";
import {
DescribeConnectorEntityCommand,
DescribeConnectorEntityCommandInput,
Expand Down Expand Up @@ -43,15 +48,30 @@ import {
ListConnectorEntitiesCommandInput,
ListConnectorEntitiesCommandOutput,
} from "./commands/ListConnectorEntitiesCommand";
import {
ListConnectorsCommand,
ListConnectorsCommandInput,
ListConnectorsCommandOutput,
} from "./commands/ListConnectorsCommand";
import { ListFlowsCommand, ListFlowsCommandInput, ListFlowsCommandOutput } from "./commands/ListFlowsCommand";
import {
ListTagsForResourceCommand,
ListTagsForResourceCommandInput,
ListTagsForResourceCommandOutput,
} from "./commands/ListTagsForResourceCommand";
import {
RegisterConnectorCommand,
RegisterConnectorCommandInput,
RegisterConnectorCommandOutput,
} from "./commands/RegisterConnectorCommand";
import { StartFlowCommand, StartFlowCommandInput, StartFlowCommandOutput } from "./commands/StartFlowCommand";
import { StopFlowCommand, StopFlowCommandInput, StopFlowCommandOutput } from "./commands/StopFlowCommand";
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import {
UnregisterConnectorCommand,
UnregisterConnectorCommandInput,
UnregisterConnectorCommandOutput,
} from "./commands/UnregisterConnectorCommand";
import {
UntagResourceCommand,
UntagResourceCommandInput,
Expand Down Expand Up @@ -109,10 +129,10 @@ import { UpdateFlowCommand, UpdateFlowCommandInput, UpdateFlowCommandOutput } fr
*/
export class Appflow extends AppflowClient {
/**
* <p> Creates a new connector profile associated with your Amazon Web Services account. There is a soft quota
* of 100 connector profiles per Amazon Web Services account. If you need more connector profiles than this quota
* allows, you can submit a request to the Amazon AppFlow team through the Amazon AppFlow support
* channel. </p>
* <p> Creates a new connector profile associated with your Amazon Web Services account. There
* is a soft quota of 100 connector profiles per Amazon Web Services account. If you need more
* connector profiles than this quota allows, you can submit a request to the Amazon AppFlow team
* through the Amazon AppFlow support channel. </p>
*/
public createConnectorProfile(
args: CreateConnectorProfileCommandInput,
Expand Down Expand Up @@ -232,6 +252,40 @@ export class Appflow extends AppflowClient {
}
}

/**
* <p>Describes the given custom connector registered in your Amazon Web Services account. This
* API can be used for custom connectors that are registered in your account and also for Amazon
* authored connectors.</p>
*/
public describeConnector(
args: DescribeConnectorCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeConnectorCommandOutput>;
public describeConnector(
args: DescribeConnectorCommandInput,
cb: (err: any, data?: DescribeConnectorCommandOutput) => void
): void;
public describeConnector(
args: DescribeConnectorCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeConnectorCommandOutput) => void
): void;
public describeConnector(
args: DescribeConnectorCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeConnectorCommandOutput) => void),
cb?: (err: any, data?: DescribeConnectorCommandOutput) => void
): Promise<DescribeConnectorCommandOutput> | void {
const command = new DescribeConnectorCommand(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> Provides details regarding the entity used with the connector, with a description of the
* data model for each entity. </p>
Expand Down Expand Up @@ -433,6 +487,40 @@ export class Appflow extends AppflowClient {
}
}

/**
* <p>Returns the list of all registered custom connectors in your Amazon Web Services account.
* This API lists only custom connectors registered in this account, not the Amazon Web Services
* authored connectors. </p>
*/
public listConnectors(
args: ListConnectorsCommandInput,
options?: __HttpHandlerOptions
): Promise<ListConnectorsCommandOutput>;
public listConnectors(
args: ListConnectorsCommandInput,
cb: (err: any, data?: ListConnectorsCommandOutput) => void
): void;
public listConnectors(
args: ListConnectorsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ListConnectorsCommandOutput) => void
): void;
public listConnectors(
args: ListConnectorsCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListConnectorsCommandOutput) => void),
cb?: (err: any, data?: ListConnectorsCommandOutput) => void
): Promise<ListConnectorsCommandOutput> | void {
const command = new ListConnectorsCommand(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 all of the flows associated with your account. </p>
*/
Expand Down Expand Up @@ -491,6 +579,39 @@ export class Appflow extends AppflowClient {
}
}

/**
* <p>Registers a new connector with your Amazon Web Services account. Before you can register
* the connector, you must deploy lambda in your account.</p>
*/
public registerConnector(
args: RegisterConnectorCommandInput,
options?: __HttpHandlerOptions
): Promise<RegisterConnectorCommandOutput>;
public registerConnector(
args: RegisterConnectorCommandInput,
cb: (err: any, data?: RegisterConnectorCommandOutput) => void
): void;
public registerConnector(
args: RegisterConnectorCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: RegisterConnectorCommandOutput) => void
): void;
public registerConnector(
args: RegisterConnectorCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RegisterConnectorCommandOutput) => void),
cb?: (err: any, data?: RegisterConnectorCommandOutput) => void
): Promise<RegisterConnectorCommandOutput> | void {
const command = new RegisterConnectorCommand(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> Activates an existing flow. For on-demand flows, this operation runs the flow
* immediately. For schedule and event-triggered flows, this operation activates the flow. </p>
Expand Down Expand Up @@ -572,6 +693,39 @@ export class Appflow extends AppflowClient {
}
}

/**
* <p>Unregisters the custom connector registered in your account that matches the
* connectorLabel provided in the request.</p>
*/
public unregisterConnector(
args: UnregisterConnectorCommandInput,
options?: __HttpHandlerOptions
): Promise<UnregisterConnectorCommandOutput>;
public unregisterConnector(
args: UnregisterConnectorCommandInput,
cb: (err: any, data?: UnregisterConnectorCommandOutput) => void
): void;
public unregisterConnector(
args: UnregisterConnectorCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: UnregisterConnectorCommandOutput) => void
): void;
public unregisterConnector(
args: UnregisterConnectorCommandInput,
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UnregisterConnectorCommandOutput) => void),
cb?: (err: any, data?: UnregisterConnectorCommandOutput) => void
): Promise<UnregisterConnectorCommandOutput> | void {
const command = new UnregisterConnectorCommand(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> Removes a tag from the specified flow. </p>
*/
Expand Down
15 changes: 15 additions & 0 deletions clients/client-appflow/src/AppflowClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ import {
DeleteConnectorProfileCommandOutput,
} from "./commands/DeleteConnectorProfileCommand";
import { DeleteFlowCommandInput, DeleteFlowCommandOutput } from "./commands/DeleteFlowCommand";
import { DescribeConnectorCommandInput, DescribeConnectorCommandOutput } from "./commands/DescribeConnectorCommand";
import {
DescribeConnectorEntityCommandInput,
DescribeConnectorEntityCommandOutput,
Expand All @@ -78,14 +79,20 @@ import {
ListConnectorEntitiesCommandInput,
ListConnectorEntitiesCommandOutput,
} from "./commands/ListConnectorEntitiesCommand";
import { ListConnectorsCommandInput, ListConnectorsCommandOutput } from "./commands/ListConnectorsCommand";
import { ListFlowsCommandInput, ListFlowsCommandOutput } from "./commands/ListFlowsCommand";
import {
ListTagsForResourceCommandInput,
ListTagsForResourceCommandOutput,
} from "./commands/ListTagsForResourceCommand";
import { RegisterConnectorCommandInput, RegisterConnectorCommandOutput } from "./commands/RegisterConnectorCommand";
import { StartFlowCommandInput, StartFlowCommandOutput } from "./commands/StartFlowCommand";
import { StopFlowCommandInput, StopFlowCommandOutput } from "./commands/StopFlowCommand";
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
import {
UnregisterConnectorCommandInput,
UnregisterConnectorCommandOutput,
} from "./commands/UnregisterConnectorCommand";
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
import {
UpdateConnectorProfileCommandInput,
Expand All @@ -99,17 +106,21 @@ export type ServiceInputTypes =
| CreateFlowCommandInput
| DeleteConnectorProfileCommandInput
| DeleteFlowCommandInput
| DescribeConnectorCommandInput
| DescribeConnectorEntityCommandInput
| DescribeConnectorProfilesCommandInput
| DescribeConnectorsCommandInput
| DescribeFlowCommandInput
| DescribeFlowExecutionRecordsCommandInput
| ListConnectorEntitiesCommandInput
| ListConnectorsCommandInput
| ListFlowsCommandInput
| ListTagsForResourceCommandInput
| RegisterConnectorCommandInput
| StartFlowCommandInput
| StopFlowCommandInput
| TagResourceCommandInput
| UnregisterConnectorCommandInput
| UntagResourceCommandInput
| UpdateConnectorProfileCommandInput
| UpdateFlowCommandInput;
Expand All @@ -119,17 +130,21 @@ export type ServiceOutputTypes =
| CreateFlowCommandOutput
| DeleteConnectorProfileCommandOutput
| DeleteFlowCommandOutput
| DescribeConnectorCommandOutput
| DescribeConnectorEntityCommandOutput
| DescribeConnectorProfilesCommandOutput
| DescribeConnectorsCommandOutput
| DescribeFlowCommandOutput
| DescribeFlowExecutionRecordsCommandOutput
| ListConnectorEntitiesCommandOutput
| ListConnectorsCommandOutput
| ListFlowsCommandOutput
| ListTagsForResourceCommandOutput
| RegisterConnectorCommandOutput
| StartFlowCommandOutput
| StopFlowCommandOutput
| TagResourceCommandOutput
| UnregisterConnectorCommandOutput
| UntagResourceCommandOutput
| UpdateConnectorProfileCommandOutput
| UpdateFlowCommandOutput;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export interface CreateConnectorProfileCommandInput extends CreateConnectorProfi
export interface CreateConnectorProfileCommandOutput extends CreateConnectorProfileResponse, __MetadataBearer {}

/**
* <p> Creates a new connector profile associated with your Amazon Web Services account. There is a soft quota
* of 100 connector profiles per Amazon Web Services account. If you need more connector profiles than this quota
* allows, you can submit a request to the Amazon AppFlow team through the Amazon AppFlow support
* channel. </p>
* <p> Creates a new connector profile associated with your Amazon Web Services account. There
* is a soft quota of 100 connector profiles per Amazon Web Services account. If you need more
* connector profiles than this quota allows, you can submit a request to the Amazon AppFlow team
* through the Amazon AppFlow support channel. </p>
* @example
* Use a bare-bones client and the command you need to make an API call.
* ```javascript
Expand Down