@aws-sdk/client-controltower 3.445.0 → 3.450.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/README.md +30 -3
  2. package/dist-cjs/ControlTower.js +6 -0
  3. package/dist-cjs/commands/ListTagsForResourceCommand.js +51 -0
  4. package/dist-cjs/commands/TagResourceCommand.js +51 -0
  5. package/dist-cjs/commands/UntagResourceCommand.js +51 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/protocols/Aws_restJson1.js +178 -1
  8. package/dist-es/ControlTower.js +6 -0
  9. package/dist-es/commands/ListTagsForResourceCommand.js +47 -0
  10. package/dist-es/commands/TagResourceCommand.js +47 -0
  11. package/dist-es/commands/UntagResourceCommand.js +47 -0
  12. package/dist-es/commands/index.js +3 -0
  13. package/dist-es/protocols/Aws_restJson1.js +172 -1
  14. package/dist-types/ControlTower.d.ts +39 -15
  15. package/dist-types/ControlTowerClient.d.ts +23 -17
  16. package/dist-types/commands/DisableControlCommand.d.ts +2 -2
  17. package/dist-types/commands/EnableControlCommand.d.ts +7 -4
  18. package/dist-types/commands/GetControlOperationCommand.d.ts +3 -4
  19. package/dist-types/commands/GetEnabledControlCommand.d.ts +1 -16
  20. package/dist-types/commands/ListEnabledControlsCommand.d.ts +2 -3
  21. package/dist-types/commands/ListTagsForResourceCommand.d.ts +86 -0
  22. package/dist-types/commands/TagResourceCommand.d.ts +85 -0
  23. package/dist-types/commands/UntagResourceCommand.d.ts +85 -0
  24. package/dist-types/commands/index.d.ts +3 -0
  25. package/dist-types/index.d.ts +18 -15
  26. package/dist-types/models/models_0.d.ts +106 -66
  27. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  28. package/dist-types/ts3.4/ControlTower.d.ts +51 -0
  29. package/dist-types/ts3.4/ControlTowerClient.d.ts +20 -2
  30. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  31. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
  32. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
  33. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  34. package/dist-types/ts3.4/models/models_0.d.ts +18 -0
  35. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  36. package/package.json +12 -12
@@ -19,6 +19,18 @@ import {
19
19
  ListEnabledControlsCommandInput,
20
20
  ListEnabledControlsCommandOutput,
21
21
  } from "./commands/ListEnabledControlsCommand";
22
+ import {
23
+ ListTagsForResourceCommandInput,
24
+ ListTagsForResourceCommandOutput,
25
+ } from "./commands/ListTagsForResourceCommand";
26
+ import {
27
+ TagResourceCommandInput,
28
+ TagResourceCommandOutput,
29
+ } from "./commands/TagResourceCommand";
30
+ import {
31
+ UntagResourceCommandInput,
32
+ UntagResourceCommandOutput,
33
+ } from "./commands/UntagResourceCommand";
22
34
  import { ControlTowerClient } from "./ControlTowerClient";
23
35
  export interface ControlTower {
24
36
  disableControl(
@@ -86,6 +98,45 @@ export interface ControlTower {
86
98
  options: __HttpHandlerOptions,
87
99
  cb: (err: any, data?: ListEnabledControlsCommandOutput) => void
88
100
  ): void;
101
+ listTagsForResource(
102
+ args: ListTagsForResourceCommandInput,
103
+ options?: __HttpHandlerOptions
104
+ ): Promise<ListTagsForResourceCommandOutput>;
105
+ listTagsForResource(
106
+ args: ListTagsForResourceCommandInput,
107
+ cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
108
+ ): void;
109
+ listTagsForResource(
110
+ args: ListTagsForResourceCommandInput,
111
+ options: __HttpHandlerOptions,
112
+ cb: (err: any, data?: ListTagsForResourceCommandOutput) => void
113
+ ): void;
114
+ tagResource(
115
+ args: TagResourceCommandInput,
116
+ options?: __HttpHandlerOptions
117
+ ): Promise<TagResourceCommandOutput>;
118
+ tagResource(
119
+ args: TagResourceCommandInput,
120
+ cb: (err: any, data?: TagResourceCommandOutput) => void
121
+ ): void;
122
+ tagResource(
123
+ args: TagResourceCommandInput,
124
+ options: __HttpHandlerOptions,
125
+ cb: (err: any, data?: TagResourceCommandOutput) => void
126
+ ): void;
127
+ untagResource(
128
+ args: UntagResourceCommandInput,
129
+ options?: __HttpHandlerOptions
130
+ ): Promise<UntagResourceCommandOutput>;
131
+ untagResource(
132
+ args: UntagResourceCommandInput,
133
+ cb: (err: any, data?: UntagResourceCommandOutput) => void
134
+ ): void;
135
+ untagResource(
136
+ args: UntagResourceCommandInput,
137
+ options: __HttpHandlerOptions,
138
+ cb: (err: any, data?: UntagResourceCommandOutput) => void
139
+ ): void;
89
140
  }
90
141
  export declare class ControlTower
91
142
  extends ControlTowerClient
@@ -65,6 +65,18 @@ import {
65
65
  ListEnabledControlsCommandInput,
66
66
  ListEnabledControlsCommandOutput,
67
67
  } from "./commands/ListEnabledControlsCommand";
68
+ import {
69
+ ListTagsForResourceCommandInput,
70
+ ListTagsForResourceCommandOutput,
71
+ } from "./commands/ListTagsForResourceCommand";
72
+ import {
73
+ TagResourceCommandInput,
74
+ TagResourceCommandOutput,
75
+ } from "./commands/TagResourceCommand";
76
+ import {
77
+ UntagResourceCommandInput,
78
+ UntagResourceCommandOutput,
79
+ } from "./commands/UntagResourceCommand";
68
80
  import {
69
81
  ClientInputEndpointParameters,
70
82
  ClientResolvedEndpointParameters,
@@ -77,13 +89,19 @@ export type ServiceInputTypes =
77
89
  | EnableControlCommandInput
78
90
  | GetControlOperationCommandInput
79
91
  | GetEnabledControlCommandInput
80
- | ListEnabledControlsCommandInput;
92
+ | ListEnabledControlsCommandInput
93
+ | ListTagsForResourceCommandInput
94
+ | TagResourceCommandInput
95
+ | UntagResourceCommandInput;
81
96
  export type ServiceOutputTypes =
82
97
  | DisableControlCommandOutput
83
98
  | EnableControlCommandOutput
84
99
  | GetControlOperationCommandOutput
85
100
  | GetEnabledControlCommandOutput
86
- | ListEnabledControlsCommandOutput;
101
+ | ListEnabledControlsCommandOutput
102
+ | ListTagsForResourceCommandOutput
103
+ | TagResourceCommandOutput
104
+ | UntagResourceCommandOutput;
87
105
  export interface ClientDefaults
88
106
  extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
89
107
  requestHandler?: __HttpHandler;
@@ -0,0 +1,39 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ ControlTowerClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../ControlTowerClient";
14
+ import {
15
+ ListTagsForResourceInput,
16
+ ListTagsForResourceOutput,
17
+ } from "../models/models_0";
18
+ export { __MetadataBearer, $Command };
19
+ export interface ListTagsForResourceCommandInput
20
+ extends ListTagsForResourceInput {}
21
+ export interface ListTagsForResourceCommandOutput
22
+ extends ListTagsForResourceOutput,
23
+ __MetadataBearer {}
24
+ export declare class ListTagsForResourceCommand extends $Command<
25
+ ListTagsForResourceCommandInput,
26
+ ListTagsForResourceCommandOutput,
27
+ ControlTowerClientResolvedConfig
28
+ > {
29
+ readonly input: ListTagsForResourceCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: ListTagsForResourceCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: ControlTowerClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput>;
37
+ private serialize;
38
+ private deserialize;
39
+ }
@@ -0,0 +1,35 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ ControlTowerClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../ControlTowerClient";
14
+ import { TagResourceInput, TagResourceOutput } from "../models/models_0";
15
+ export { __MetadataBearer, $Command };
16
+ export interface TagResourceCommandInput extends TagResourceInput {}
17
+ export interface TagResourceCommandOutput
18
+ extends TagResourceOutput,
19
+ __MetadataBearer {}
20
+ export declare class TagResourceCommand extends $Command<
21
+ TagResourceCommandInput,
22
+ TagResourceCommandOutput,
23
+ ControlTowerClientResolvedConfig
24
+ > {
25
+ readonly input: TagResourceCommandInput;
26
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
+ constructor(input: TagResourceCommandInput);
28
+ resolveMiddleware(
29
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
30
+ configuration: ControlTowerClientResolvedConfig,
31
+ options?: __HttpHandlerOptions
32
+ ): Handler<TagResourceCommandInput, TagResourceCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -0,0 +1,35 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ ControlTowerClientResolvedConfig,
11
+ ServiceInputTypes,
12
+ ServiceOutputTypes,
13
+ } from "../ControlTowerClient";
14
+ import { UntagResourceInput, UntagResourceOutput } from "../models/models_0";
15
+ export { __MetadataBearer, $Command };
16
+ export interface UntagResourceCommandInput extends UntagResourceInput {}
17
+ export interface UntagResourceCommandOutput
18
+ extends UntagResourceOutput,
19
+ __MetadataBearer {}
20
+ export declare class UntagResourceCommand extends $Command<
21
+ UntagResourceCommandInput,
22
+ UntagResourceCommandOutput,
23
+ ControlTowerClientResolvedConfig
24
+ > {
25
+ readonly input: UntagResourceCommandInput;
26
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
27
+ constructor(input: UntagResourceCommandInput);
28
+ resolveMiddleware(
29
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
30
+ configuration: ControlTowerClientResolvedConfig,
31
+ options?: __HttpHandlerOptions
32
+ ): Handler<UntagResourceCommandInput, UntagResourceCommandOutput>;
33
+ private serialize;
34
+ private deserialize;
35
+ }
@@ -3,3 +3,6 @@ export * from "./EnableControlCommand";
3
3
  export * from "./GetControlOperationCommand";
4
4
  export * from "./GetEnabledControlCommand";
5
5
  export * from "./ListEnabledControlsCommand";
6
+ export * from "./ListTagsForResourceCommand";
7
+ export * from "./TagResourceCommand";
8
+ export * from "./UntagResourceCommand";
@@ -64,9 +64,11 @@ export declare class ValidationException extends __BaseException {
64
64
  export interface EnableControlInput {
65
65
  controlIdentifier: string | undefined;
66
66
  targetIdentifier: string | undefined;
67
+ tags?: Record<string, string>;
67
68
  }
68
69
  export interface EnableControlOutput {
69
70
  operationIdentifier: string | undefined;
71
+ arn?: string;
70
72
  }
71
73
  export interface GetControlOperationInput {
72
74
  operationIdentifier: string | undefined;
@@ -148,3 +150,19 @@ export interface ListEnabledControlsOutput {
148
150
  enabledControls: EnabledControlSummary[] | undefined;
149
151
  nextToken?: string;
150
152
  }
153
+ export interface ListTagsForResourceInput {
154
+ resourceArn: string | undefined;
155
+ }
156
+ export interface ListTagsForResourceOutput {
157
+ tags: Record<string, string> | undefined;
158
+ }
159
+ export interface TagResourceInput {
160
+ resourceArn: string | undefined;
161
+ tags: Record<string, string> | undefined;
162
+ }
163
+ export interface TagResourceOutput {}
164
+ export interface UntagResourceInput {
165
+ resourceArn: string | undefined;
166
+ tagKeys: string[] | undefined;
167
+ }
168
+ export interface UntagResourceOutput {}
@@ -23,6 +23,18 @@ import {
23
23
  ListEnabledControlsCommandInput,
24
24
  ListEnabledControlsCommandOutput,
25
25
  } from "../commands/ListEnabledControlsCommand";
26
+ import {
27
+ ListTagsForResourceCommandInput,
28
+ ListTagsForResourceCommandOutput,
29
+ } from "../commands/ListTagsForResourceCommand";
30
+ import {
31
+ TagResourceCommandInput,
32
+ TagResourceCommandOutput,
33
+ } from "../commands/TagResourceCommand";
34
+ import {
35
+ UntagResourceCommandInput,
36
+ UntagResourceCommandOutput,
37
+ } from "../commands/UntagResourceCommand";
26
38
  export declare const se_DisableControlCommand: (
27
39
  input: DisableControlCommandInput,
28
40
  context: __SerdeContext
@@ -43,6 +55,18 @@ export declare const se_ListEnabledControlsCommand: (
43
55
  input: ListEnabledControlsCommandInput,
44
56
  context: __SerdeContext
45
57
  ) => Promise<__HttpRequest>;
58
+ export declare const se_ListTagsForResourceCommand: (
59
+ input: ListTagsForResourceCommandInput,
60
+ context: __SerdeContext
61
+ ) => Promise<__HttpRequest>;
62
+ export declare const se_TagResourceCommand: (
63
+ input: TagResourceCommandInput,
64
+ context: __SerdeContext
65
+ ) => Promise<__HttpRequest>;
66
+ export declare const se_UntagResourceCommand: (
67
+ input: UntagResourceCommandInput,
68
+ context: __SerdeContext
69
+ ) => Promise<__HttpRequest>;
46
70
  export declare const de_DisableControlCommand: (
47
71
  output: __HttpResponse,
48
72
  context: __SerdeContext
@@ -63,3 +87,15 @@ export declare const de_ListEnabledControlsCommand: (
63
87
  output: __HttpResponse,
64
88
  context: __SerdeContext
65
89
  ) => Promise<ListEnabledControlsCommandOutput>;
90
+ export declare const de_ListTagsForResourceCommand: (
91
+ output: __HttpResponse,
92
+ context: __SerdeContext
93
+ ) => Promise<ListTagsForResourceCommandOutput>;
94
+ export declare const de_TagResourceCommand: (
95
+ output: __HttpResponse,
96
+ context: __SerdeContext
97
+ ) => Promise<TagResourceCommandOutput>;
98
+ export declare const de_UntagResourceCommand: (
99
+ output: __HttpResponse,
100
+ context: __SerdeContext
101
+ ) => Promise<UntagResourceCommandOutput>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-controltower",
3
3
  "description": "AWS SDK for JavaScript Controltower Client for Node.js, Browser and React Native",
4
- "version": "3.445.0",
4
+ "version": "3.450.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,19 +21,19 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.445.0",
24
+ "@aws-sdk/client-sts": "3.450.0",
25
25
  "@aws-sdk/core": "3.445.0",
26
- "@aws-sdk/credential-provider-node": "3.445.0",
27
- "@aws-sdk/middleware-host-header": "3.433.0",
28
- "@aws-sdk/middleware-logger": "3.433.0",
29
- "@aws-sdk/middleware-recursion-detection": "3.433.0",
30
- "@aws-sdk/middleware-signing": "3.433.0",
31
- "@aws-sdk/middleware-user-agent": "3.438.0",
26
+ "@aws-sdk/credential-provider-node": "3.450.0",
27
+ "@aws-sdk/middleware-host-header": "3.449.0",
28
+ "@aws-sdk/middleware-logger": "3.449.0",
29
+ "@aws-sdk/middleware-recursion-detection": "3.449.0",
30
+ "@aws-sdk/middleware-signing": "3.449.0",
31
+ "@aws-sdk/middleware-user-agent": "3.449.0",
32
32
  "@aws-sdk/region-config-resolver": "3.433.0",
33
- "@aws-sdk/types": "3.433.0",
34
- "@aws-sdk/util-endpoints": "3.438.0",
35
- "@aws-sdk/util-user-agent-browser": "3.433.0",
36
- "@aws-sdk/util-user-agent-node": "3.437.0",
33
+ "@aws-sdk/types": "3.449.0",
34
+ "@aws-sdk/util-endpoints": "3.449.0",
35
+ "@aws-sdk/util-user-agent-browser": "3.449.0",
36
+ "@aws-sdk/util-user-agent-node": "3.449.0",
37
37
  "@smithy/config-resolver": "^2.0.16",
38
38
  "@smithy/fetch-http-handler": "^2.2.4",
39
39
  "@smithy/hash-node": "^2.0.12",