Skip to content

Commit 63d7f8c

Browse files
authored
feat(clients): update clients as of 02/04/2022 (#3280)
* chore(models): update models as of 02/04/2022 * chore(endpoints): update endpoints as of 02/04/2022 * feat(clients): update clients as of 02/04/2022
1 parent 1bb7700 commit 63d7f8c

File tree

144 files changed

+10989
-1177
lines changed

Some content is hidden

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

144 files changed

+10989
-1177
lines changed

Diff for: clients/client-appflow/src/Appflow.ts

+158-4
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ import {
1313
DeleteConnectorProfileCommandOutput,
1414
} from "./commands/DeleteConnectorProfileCommand";
1515
import { DeleteFlowCommand, DeleteFlowCommandInput, DeleteFlowCommandOutput } from "./commands/DeleteFlowCommand";
16+
import {
17+
DescribeConnectorCommand,
18+
DescribeConnectorCommandInput,
19+
DescribeConnectorCommandOutput,
20+
} from "./commands/DescribeConnectorCommand";
1621
import {
1722
DescribeConnectorEntityCommand,
1823
DescribeConnectorEntityCommandInput,
@@ -43,15 +48,30 @@ import {
4348
ListConnectorEntitiesCommandInput,
4449
ListConnectorEntitiesCommandOutput,
4550
} from "./commands/ListConnectorEntitiesCommand";
51+
import {
52+
ListConnectorsCommand,
53+
ListConnectorsCommandInput,
54+
ListConnectorsCommandOutput,
55+
} from "./commands/ListConnectorsCommand";
4656
import { ListFlowsCommand, ListFlowsCommandInput, ListFlowsCommandOutput } from "./commands/ListFlowsCommand";
4757
import {
4858
ListTagsForResourceCommand,
4959
ListTagsForResourceCommandInput,
5060
ListTagsForResourceCommandOutput,
5161
} from "./commands/ListTagsForResourceCommand";
62+
import {
63+
RegisterConnectorCommand,
64+
RegisterConnectorCommandInput,
65+
RegisterConnectorCommandOutput,
66+
} from "./commands/RegisterConnectorCommand";
5267
import { StartFlowCommand, StartFlowCommandInput, StartFlowCommandOutput } from "./commands/StartFlowCommand";
5368
import { StopFlowCommand, StopFlowCommandInput, StopFlowCommandOutput } from "./commands/StopFlowCommand";
5469
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
70+
import {
71+
UnregisterConnectorCommand,
72+
UnregisterConnectorCommandInput,
73+
UnregisterConnectorCommandOutput,
74+
} from "./commands/UnregisterConnectorCommand";
5575
import {
5676
UntagResourceCommand,
5777
UntagResourceCommandInput,
@@ -109,10 +129,10 @@ import { UpdateFlowCommand, UpdateFlowCommandInput, UpdateFlowCommandOutput } fr
109129
*/
110130
export class Appflow extends AppflowClient {
111131
/**
112-
* <p> Creates a new connector profile associated with your Amazon Web Services account. There is a soft quota
113-
* of 100 connector profiles per Amazon Web Services account. If you need more connector profiles than this quota
114-
* allows, you can submit a request to the Amazon AppFlow team through the Amazon AppFlow support
115-
* channel. </p>
132+
* <p> Creates a new connector profile associated with your Amazon Web Services account. There
133+
* is a soft quota of 100 connector profiles per Amazon Web Services account. If you need more
134+
* connector profiles than this quota allows, you can submit a request to the Amazon AppFlow team
135+
* through the Amazon AppFlow support channel. </p>
116136
*/
117137
public createConnectorProfile(
118138
args: CreateConnectorProfileCommandInput,
@@ -232,6 +252,40 @@ export class Appflow extends AppflowClient {
232252
}
233253
}
234254

255+
/**
256+
* <p>Describes the given custom connector registered in your Amazon Web Services account. This
257+
* API can be used for custom connectors that are registered in your account and also for Amazon
258+
* authored connectors.</p>
259+
*/
260+
public describeConnector(
261+
args: DescribeConnectorCommandInput,
262+
options?: __HttpHandlerOptions
263+
): Promise<DescribeConnectorCommandOutput>;
264+
public describeConnector(
265+
args: DescribeConnectorCommandInput,
266+
cb: (err: any, data?: DescribeConnectorCommandOutput) => void
267+
): void;
268+
public describeConnector(
269+
args: DescribeConnectorCommandInput,
270+
options: __HttpHandlerOptions,
271+
cb: (err: any, data?: DescribeConnectorCommandOutput) => void
272+
): void;
273+
public describeConnector(
274+
args: DescribeConnectorCommandInput,
275+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeConnectorCommandOutput) => void),
276+
cb?: (err: any, data?: DescribeConnectorCommandOutput) => void
277+
): Promise<DescribeConnectorCommandOutput> | void {
278+
const command = new DescribeConnectorCommand(args);
279+
if (typeof optionsOrCb === "function") {
280+
this.send(command, optionsOrCb);
281+
} else if (typeof cb === "function") {
282+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
283+
this.send(command, optionsOrCb || {}, cb);
284+
} else {
285+
return this.send(command, optionsOrCb);
286+
}
287+
}
288+
235289
/**
236290
* <p> Provides details regarding the entity used with the connector, with a description of the
237291
* data model for each entity. </p>
@@ -433,6 +487,40 @@ export class Appflow extends AppflowClient {
433487
}
434488
}
435489

490+
/**
491+
* <p>Returns the list of all registered custom connectors in your Amazon Web Services account.
492+
* This API lists only custom connectors registered in this account, not the Amazon Web Services
493+
* authored connectors. </p>
494+
*/
495+
public listConnectors(
496+
args: ListConnectorsCommandInput,
497+
options?: __HttpHandlerOptions
498+
): Promise<ListConnectorsCommandOutput>;
499+
public listConnectors(
500+
args: ListConnectorsCommandInput,
501+
cb: (err: any, data?: ListConnectorsCommandOutput) => void
502+
): void;
503+
public listConnectors(
504+
args: ListConnectorsCommandInput,
505+
options: __HttpHandlerOptions,
506+
cb: (err: any, data?: ListConnectorsCommandOutput) => void
507+
): void;
508+
public listConnectors(
509+
args: ListConnectorsCommandInput,
510+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListConnectorsCommandOutput) => void),
511+
cb?: (err: any, data?: ListConnectorsCommandOutput) => void
512+
): Promise<ListConnectorsCommandOutput> | void {
513+
const command = new ListConnectorsCommand(args);
514+
if (typeof optionsOrCb === "function") {
515+
this.send(command, optionsOrCb);
516+
} else if (typeof cb === "function") {
517+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
518+
this.send(command, optionsOrCb || {}, cb);
519+
} else {
520+
return this.send(command, optionsOrCb);
521+
}
522+
}
523+
436524
/**
437525
* <p> Lists all of the flows associated with your account. </p>
438526
*/
@@ -491,6 +579,39 @@ export class Appflow extends AppflowClient {
491579
}
492580
}
493581

582+
/**
583+
* <p>Registers a new connector with your Amazon Web Services account. Before you can register
584+
* the connector, you must deploy lambda in your account.</p>
585+
*/
586+
public registerConnector(
587+
args: RegisterConnectorCommandInput,
588+
options?: __HttpHandlerOptions
589+
): Promise<RegisterConnectorCommandOutput>;
590+
public registerConnector(
591+
args: RegisterConnectorCommandInput,
592+
cb: (err: any, data?: RegisterConnectorCommandOutput) => void
593+
): void;
594+
public registerConnector(
595+
args: RegisterConnectorCommandInput,
596+
options: __HttpHandlerOptions,
597+
cb: (err: any, data?: RegisterConnectorCommandOutput) => void
598+
): void;
599+
public registerConnector(
600+
args: RegisterConnectorCommandInput,
601+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: RegisterConnectorCommandOutput) => void),
602+
cb?: (err: any, data?: RegisterConnectorCommandOutput) => void
603+
): Promise<RegisterConnectorCommandOutput> | void {
604+
const command = new RegisterConnectorCommand(args);
605+
if (typeof optionsOrCb === "function") {
606+
this.send(command, optionsOrCb);
607+
} else if (typeof cb === "function") {
608+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
609+
this.send(command, optionsOrCb || {}, cb);
610+
} else {
611+
return this.send(command, optionsOrCb);
612+
}
613+
}
614+
494615
/**
495616
* <p> Activates an existing flow. For on-demand flows, this operation runs the flow
496617
* immediately. For schedule and event-triggered flows, this operation activates the flow. </p>
@@ -572,6 +693,39 @@ export class Appflow extends AppflowClient {
572693
}
573694
}
574695

696+
/**
697+
* <p>Unregisters the custom connector registered in your account that matches the
698+
* connectorLabel provided in the request.</p>
699+
*/
700+
public unregisterConnector(
701+
args: UnregisterConnectorCommandInput,
702+
options?: __HttpHandlerOptions
703+
): Promise<UnregisterConnectorCommandOutput>;
704+
public unregisterConnector(
705+
args: UnregisterConnectorCommandInput,
706+
cb: (err: any, data?: UnregisterConnectorCommandOutput) => void
707+
): void;
708+
public unregisterConnector(
709+
args: UnregisterConnectorCommandInput,
710+
options: __HttpHandlerOptions,
711+
cb: (err: any, data?: UnregisterConnectorCommandOutput) => void
712+
): void;
713+
public unregisterConnector(
714+
args: UnregisterConnectorCommandInput,
715+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UnregisterConnectorCommandOutput) => void),
716+
cb?: (err: any, data?: UnregisterConnectorCommandOutput) => void
717+
): Promise<UnregisterConnectorCommandOutput> | void {
718+
const command = new UnregisterConnectorCommand(args);
719+
if (typeof optionsOrCb === "function") {
720+
this.send(command, optionsOrCb);
721+
} else if (typeof cb === "function") {
722+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
723+
this.send(command, optionsOrCb || {}, cb);
724+
} else {
725+
return this.send(command, optionsOrCb);
726+
}
727+
}
728+
575729
/**
576730
* <p> Removes a tag from the specified flow. </p>
577731
*/

Diff for: clients/client-appflow/src/AppflowClient.ts

+15
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ import {
6060
DeleteConnectorProfileCommandOutput,
6161
} from "./commands/DeleteConnectorProfileCommand";
6262
import { DeleteFlowCommandInput, DeleteFlowCommandOutput } from "./commands/DeleteFlowCommand";
63+
import { DescribeConnectorCommandInput, DescribeConnectorCommandOutput } from "./commands/DescribeConnectorCommand";
6364
import {
6465
DescribeConnectorEntityCommandInput,
6566
DescribeConnectorEntityCommandOutput,
@@ -78,14 +79,20 @@ import {
7879
ListConnectorEntitiesCommandInput,
7980
ListConnectorEntitiesCommandOutput,
8081
} from "./commands/ListConnectorEntitiesCommand";
82+
import { ListConnectorsCommandInput, ListConnectorsCommandOutput } from "./commands/ListConnectorsCommand";
8183
import { ListFlowsCommandInput, ListFlowsCommandOutput } from "./commands/ListFlowsCommand";
8284
import {
8385
ListTagsForResourceCommandInput,
8486
ListTagsForResourceCommandOutput,
8587
} from "./commands/ListTagsForResourceCommand";
88+
import { RegisterConnectorCommandInput, RegisterConnectorCommandOutput } from "./commands/RegisterConnectorCommand";
8689
import { StartFlowCommandInput, StartFlowCommandOutput } from "./commands/StartFlowCommand";
8790
import { StopFlowCommandInput, StopFlowCommandOutput } from "./commands/StopFlowCommand";
8891
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
92+
import {
93+
UnregisterConnectorCommandInput,
94+
UnregisterConnectorCommandOutput,
95+
} from "./commands/UnregisterConnectorCommand";
8996
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
9097
import {
9198
UpdateConnectorProfileCommandInput,
@@ -99,17 +106,21 @@ export type ServiceInputTypes =
99106
| CreateFlowCommandInput
100107
| DeleteConnectorProfileCommandInput
101108
| DeleteFlowCommandInput
109+
| DescribeConnectorCommandInput
102110
| DescribeConnectorEntityCommandInput
103111
| DescribeConnectorProfilesCommandInput
104112
| DescribeConnectorsCommandInput
105113
| DescribeFlowCommandInput
106114
| DescribeFlowExecutionRecordsCommandInput
107115
| ListConnectorEntitiesCommandInput
116+
| ListConnectorsCommandInput
108117
| ListFlowsCommandInput
109118
| ListTagsForResourceCommandInput
119+
| RegisterConnectorCommandInput
110120
| StartFlowCommandInput
111121
| StopFlowCommandInput
112122
| TagResourceCommandInput
123+
| UnregisterConnectorCommandInput
113124
| UntagResourceCommandInput
114125
| UpdateConnectorProfileCommandInput
115126
| UpdateFlowCommandInput;
@@ -119,17 +130,21 @@ export type ServiceOutputTypes =
119130
| CreateFlowCommandOutput
120131
| DeleteConnectorProfileCommandOutput
121132
| DeleteFlowCommandOutput
133+
| DescribeConnectorCommandOutput
122134
| DescribeConnectorEntityCommandOutput
123135
| DescribeConnectorProfilesCommandOutput
124136
| DescribeConnectorsCommandOutput
125137
| DescribeFlowCommandOutput
126138
| DescribeFlowExecutionRecordsCommandOutput
127139
| ListConnectorEntitiesCommandOutput
140+
| ListConnectorsCommandOutput
128141
| ListFlowsCommandOutput
129142
| ListTagsForResourceCommandOutput
143+
| RegisterConnectorCommandOutput
130144
| StartFlowCommandOutput
131145
| StopFlowCommandOutput
132146
| TagResourceCommandOutput
147+
| UnregisterConnectorCommandOutput
133148
| UntagResourceCommandOutput
134149
| UpdateConnectorProfileCommandOutput
135150
| UpdateFlowCommandOutput;

Diff for: clients/client-appflow/src/commands/CreateConnectorProfileCommand.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ export interface CreateConnectorProfileCommandInput extends CreateConnectorProfi
2222
export interface CreateConnectorProfileCommandOutput extends CreateConnectorProfileResponse, __MetadataBearer {}
2323

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

0 commit comments

Comments
 (0)