Skip to content

Commit fdd0ddf

Browse files
authored
feat(clients): update clients as of 10/30 (#1648)
1 parent 5fb8918 commit fdd0ddf

File tree

161 files changed

+88672
-72512
lines changed

Some content is hidden

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

161 files changed

+88672
-72512
lines changed

clients/client-api-gateway/models/models_0.ts

+929-1,472
Large diffs are not rendered by default.

clients/client-api-gateway/protocols/Aws_restJson1.ts

+477-1,285
Large diffs are not rendered by default.

clients/client-codeartifact/Codeartifact.ts

+124-15
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,11 @@ import {
130130
ListRepositoriesInDomainCommandInput,
131131
ListRepositoriesInDomainCommandOutput,
132132
} from "./commands/ListRepositoriesInDomainCommand";
133+
import {
134+
ListTagsForResourceCommand,
135+
ListTagsForResourceCommandInput,
136+
ListTagsForResourceCommandOutput,
137+
} from "./commands/ListTagsForResourceCommand";
133138
import {
134139
PutDomainPermissionsPolicyCommand,
135140
PutDomainPermissionsPolicyCommandInput,
@@ -140,6 +145,12 @@ import {
140145
PutRepositoryPermissionsPolicyCommandInput,
141146
PutRepositoryPermissionsPolicyCommandOutput,
142147
} from "./commands/PutRepositoryPermissionsPolicyCommand";
148+
import { TagResourceCommand, TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
149+
import {
150+
UntagResourceCommand,
151+
UntagResourceCommandInput,
152+
UntagResourceCommandOutput,
153+
} from "./commands/UntagResourceCommand";
143154
import {
144155
UpdatePackageVersionsStatusCommand,
145156
UpdatePackageVersionsStatusCommandInput,
@@ -178,7 +189,7 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
178189
* <code>mvn</code>
179190
* </b>), and <b>
180191
* <code>pip</code>
181-
* </b>. You can create up to 100 repositories per AWS account.</p>
192+
* </b>.</p>
182193
* </li>
183194
* <li>
184195
* <p>
@@ -892,23 +903,19 @@ export class Codeartifact extends CodeartifactClient {
892903
* </p>
893904
*
894905
* <p>
895-
* To view all disposed package versions in a repository, use <code>
896-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html">ListackageVersions</a>
897-
* </code> and set the
898-
* <code>
899-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html#API_ListPackageVersions_RequestSyntax">status</a>
900-
* </code> parameter
906+
* To view all disposed package versions in a repository, use <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html">
907+
* <code>ListPackageVersions</code>
908+
* </a> and set the
909+
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html#API_ListPackageVersions_RequestSyntax">
910+
* <code>status</code>
911+
* </a> parameter
901912
* to <code>Disposed</code>.
902913
* </p>
903914
*
904915
* <p>
905-
* To view information about a disposed package version, use <code>
906-
* <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_ListPackageVersions.html">ListPackageVersions</a>
907-
* </code> and set the
908-
* <code>
909-
* <a href="https://docs.aws.amazon.com/API_ListPackageVersions.html#codeartifact-ListPackageVersions-response-status">status</a>
910-
* </code> parameter
911-
* to <code>Disposed</code>.
916+
* To view information about a disposed package version, use <a href="https://docs.aws.amazon.com/codeartifact/latest/APIReference/API_DescribePackageVersion.html">
917+
* <code>DescribePackageVersion</code>
918+
* </a>..
912919
* </p>
913920
*/
914921
public disposePackageVersions(
@@ -942,8 +949,10 @@ export class Codeartifact extends CodeartifactClient {
942949

943950
/**
944951
* <p>
945-
* Generates a temporary authentication token for accessing repositories in the domain.
952+
* Generates a temporary authorization token for accessing repositories in the domain.
946953
* This API requires the <code>codeartifact:GetAuthorizationToken</code> and <code>sts:GetServiceBearerToken</code> permissions.
954+
* For more information about authorization tokens, see
955+
* <a href="https://docs.aws.amazon.com/codeartifact/latest/ug/tokens-authentication.html">AWS CodeArtifact authentication and tokens</a>.
947956
* </p>
948957
* <note>
949958
* <p>CodeArtifact authorization tokens are valid for a period of 12 hours when created with the <code>login</code> command.
@@ -1451,10 +1460,47 @@ export class Codeartifact extends CodeartifactClient {
14511460
}
14521461
}
14531462

1463+
/**
1464+
* <p>Gets information about AWS tags for a specified Amazon Resource Name (ARN) in AWS CodeArtifact.</p>
1465+
*/
1466+
public listTagsForResource(
1467+
args: ListTagsForResourceCommandInput,
1468+
options?: __HttpHandlerOptions
1469+
): Promise<ListTagsForResourceCommandOutput>;
1470+
public listTagsForResource(
1471+
args: ListTagsForResourceCommandInput,
1472+
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
1473+
): void;
1474+
public listTagsForResource(
1475+
args: ListTagsForResourceCommandInput,
1476+
options: __HttpHandlerOptions,
1477+
cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
1478+
): void;
1479+
public listTagsForResource(
1480+
args: ListTagsForResourceCommandInput,
1481+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTagsForResourceCommandOutput) => void),
1482+
cb?: (err: any, data?: ListTagsForResourceCommandOutput) => void
1483+
): Promise<ListTagsForResourceCommandOutput> | void {
1484+
const command = new ListTagsForResourceCommand(args);
1485+
if (typeof optionsOrCb === "function") {
1486+
this.send(command, optionsOrCb);
1487+
} else if (typeof cb === "function") {
1488+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1489+
this.send(command, optionsOrCb || {}, cb);
1490+
} else {
1491+
return this.send(command, optionsOrCb);
1492+
}
1493+
}
1494+
14541495
/**
14551496
* <p>
14561497
* Sets a resource policy on a domain that specifies permissions to access it.
14571498
* </p>
1499+
* <p>
1500+
* When you call <code>PutDomainPermissionsPolicy</code>, the resource policy on the domain is ignored when evaluting permissions.
1501+
* This ensures that the owner of a domain cannot lock themselves out of the domain, which would prevent them from being
1502+
* able to update the resource policy.
1503+
* </p>
14581504
*/
14591505
public putDomainPermissionsPolicy(
14601506
args: PutDomainPermissionsPolicyCommandInput,
@@ -1489,6 +1535,11 @@ export class Codeartifact extends CodeartifactClient {
14891535
* <p>
14901536
* Sets the resource policy on a repository that specifies permissions to access it.
14911537
* </p>
1538+
* <p>
1539+
* When you call <code>PutRepositoryPermissionsPolicy</code>, the resource policy on the repository is ignored when evaluting permissions.
1540+
* This ensures that the owner of a repository cannot lock themselves out of the repository, which would prevent them from being
1541+
* able to update the resource policy.
1542+
* </p>
14921543
*/
14931544
public putRepositoryPermissionsPolicy(
14941545
args: PutRepositoryPermissionsPolicyCommandInput,
@@ -1519,6 +1570,64 @@ export class Codeartifact extends CodeartifactClient {
15191570
}
15201571
}
15211572

1573+
/**
1574+
* <p>Adds or updates tags for a resource in AWS CodeArtifact.</p>
1575+
*/
1576+
public tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
1577+
public tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
1578+
public tagResource(
1579+
args: TagResourceCommandInput,
1580+
options: __HttpHandlerOptions,
1581+
cb: (err: any, data?: TagResourceCommandOutput) => void
1582+
): void;
1583+
public tagResource(
1584+
args: TagResourceCommandInput,
1585+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: TagResourceCommandOutput) => void),
1586+
cb?: (err: any, data?: TagResourceCommandOutput) => void
1587+
): Promise<TagResourceCommandOutput> | void {
1588+
const command = new TagResourceCommand(args);
1589+
if (typeof optionsOrCb === "function") {
1590+
this.send(command, optionsOrCb);
1591+
} else if (typeof cb === "function") {
1592+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1593+
this.send(command, optionsOrCb || {}, cb);
1594+
} else {
1595+
return this.send(command, optionsOrCb);
1596+
}
1597+
}
1598+
1599+
/**
1600+
* <p>Removes tags from a resource in AWS CodeArtifact.</p>
1601+
*/
1602+
public untagResource(
1603+
args: UntagResourceCommandInput,
1604+
options?: __HttpHandlerOptions
1605+
): Promise<UntagResourceCommandOutput>;
1606+
public untagResource(
1607+
args: UntagResourceCommandInput,
1608+
cb: (err: any, data?: UntagResourceCommandOutput) => void
1609+
): void;
1610+
public untagResource(
1611+
args: UntagResourceCommandInput,
1612+
options: __HttpHandlerOptions,
1613+
cb: (err: any, data?: UntagResourceCommandOutput) => void
1614+
): void;
1615+
public untagResource(
1616+
args: UntagResourceCommandInput,
1617+
optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: UntagResourceCommandOutput) => void),
1618+
cb?: (err: any, data?: UntagResourceCommandOutput) => void
1619+
): Promise<UntagResourceCommandOutput> | void {
1620+
const command = new UntagResourceCommand(args);
1621+
if (typeof optionsOrCb === "function") {
1622+
this.send(command, optionsOrCb);
1623+
} else if (typeof cb === "function") {
1624+
if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
1625+
this.send(command, optionsOrCb || {}, cb);
1626+
} else {
1627+
return this.send(command, optionsOrCb);
1628+
}
1629+
}
1630+
15221631
/**
15231632
* <p>
15241633
* Updates the status of one or more versions of a package.

clients/client-codeartifact/CodeartifactClient.ts

+13-1
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ import {
7979
ListRepositoriesInDomainCommandInput,
8080
ListRepositoriesInDomainCommandOutput,
8181
} from "./commands/ListRepositoriesInDomainCommand";
82+
import {
83+
ListTagsForResourceCommandInput,
84+
ListTagsForResourceCommandOutput,
85+
} from "./commands/ListTagsForResourceCommand";
8286
import {
8387
PutDomainPermissionsPolicyCommandInput,
8488
PutDomainPermissionsPolicyCommandOutput,
@@ -87,6 +91,8 @@ import {
8791
PutRepositoryPermissionsPolicyCommandInput,
8892
PutRepositoryPermissionsPolicyCommandOutput,
8993
} from "./commands/PutRepositoryPermissionsPolicyCommand";
94+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
95+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
9096
import {
9197
UpdatePackageVersionsStatusCommandInput,
9298
UpdatePackageVersionsStatusCommandOutput,
@@ -169,8 +175,11 @@ export type ServiceInputTypes =
169175
| ListPackagesCommandInput
170176
| ListRepositoriesCommandInput
171177
| ListRepositoriesInDomainCommandInput
178+
| ListTagsForResourceCommandInput
172179
| PutDomainPermissionsPolicyCommandInput
173180
| PutRepositoryPermissionsPolicyCommandInput
181+
| TagResourceCommandInput
182+
| UntagResourceCommandInput
174183
| UpdatePackageVersionsStatusCommandInput
175184
| UpdateRepositoryCommandInput;
176185

@@ -202,8 +211,11 @@ export type ServiceOutputTypes =
202211
| ListPackagesCommandOutput
203212
| ListRepositoriesCommandOutput
204213
| ListRepositoriesInDomainCommandOutput
214+
| ListTagsForResourceCommandOutput
205215
| PutDomainPermissionsPolicyCommandOutput
206216
| PutRepositoryPermissionsPolicyCommandOutput
217+
| TagResourceCommandOutput
218+
| UntagResourceCommandOutput
207219
| UpdatePackageVersionsStatusCommandOutput
208220
| UpdateRepositoryCommandOutput;
209221

@@ -345,7 +357,7 @@ export type CodeartifactClientResolvedConfig = __SmithyResolvedConfiguration<__H
345357
* <code>mvn</code>
346358
* </b>), and <b>
347359
* <code>pip</code>
348-
* </b>. You can create up to 100 repositories per AWS account.</p>
360+
* </b>.</p>
349361
* </li>
350362
* <li>
351363
* <p>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
import { CodeartifactClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CodeartifactClient";
2+
import { ListTagsForResourceRequest, ListTagsForResourceResult } from "../models/models_0";
3+
import {
4+
deserializeAws_restJson1ListTagsForResourceCommand,
5+
serializeAws_restJson1ListTagsForResourceCommand,
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 type ListTagsForResourceCommandInput = ListTagsForResourceRequest;
21+
export type ListTagsForResourceCommandOutput = ListTagsForResourceResult & __MetadataBearer;
22+
23+
export class ListTagsForResourceCommand extends $Command<
24+
ListTagsForResourceCommandInput,
25+
ListTagsForResourceCommandOutput,
26+
CodeartifactClientResolvedConfig
27+
> {
28+
// Start section: command_properties
29+
// End section: command_properties
30+
31+
constructor(readonly input: ListTagsForResourceCommandInput) {
32+
// Start section: command_constructor
33+
super();
34+
// End section: command_constructor
35+
}
36+
37+
resolveMiddleware(
38+
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
39+
configuration: CodeartifactClientResolvedConfig,
40+
options?: __HttpHandlerOptions
41+
): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput> {
42+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
43+
44+
const stack = clientStack.concat(this.middlewareStack);
45+
46+
const { logger } = configuration;
47+
const clientName = "CodeartifactClient";
48+
const commandName = "ListTagsForResourceCommand";
49+
const handlerExecutionContext: HandlerExecutionContext = {
50+
logger,
51+
clientName,
52+
commandName,
53+
inputFilterSensitiveLog: ListTagsForResourceRequest.filterSensitiveLog,
54+
outputFilterSensitiveLog: ListTagsForResourceResult.filterSensitiveLog,
55+
};
56+
57+
if (typeof logger.info === "function") {
58+
logger.info({
59+
clientName,
60+
commandName,
61+
});
62+
}
63+
64+
const { requestHandler } = configuration;
65+
return stack.resolve(
66+
(request: FinalizeHandlerArguments<any>) =>
67+
requestHandler.handle(request.request as __HttpRequest, options || {}),
68+
handlerExecutionContext
69+
);
70+
}
71+
72+
private serialize(input: ListTagsForResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
73+
return serializeAws_restJson1ListTagsForResourceCommand(input, context);
74+
}
75+
76+
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListTagsForResourceCommandOutput> {
77+
return deserializeAws_restJson1ListTagsForResourceCommand(output, context);
78+
}
79+
80+
// Start section: command_body_extra
81+
// End section: command_body_extra
82+
}

0 commit comments

Comments
 (0)