Skip to content

Commit 074bc89

Browse files
author
awstools
committedJun 5, 2023
feat(client-cloudformation): AWS CloudFormation StackSets provides customers with three new APIs to activate, deactivate, and describe AWS Organizations trusted access which is needed to get started with service-managed StackSets.
1 parent c28015d commit 074bc89

File tree

71 files changed

+4242
-3525
lines changed

Some content is hidden

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

71 files changed

+4242
-3525
lines changed
 

‎clients/client-cloudformation/README.md

+39-20
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,15 @@ AWS SDK for JavaScript CloudFormation Client for Node.js, Browser and React Nati
88

99
<fullname>CloudFormation</fullname>
1010

11-
<p>CloudFormation allows you to create and manage Amazon Web Services infrastructure
12-
deployments predictably and repeatedly. You can use CloudFormation to leverage
13-
Amazon Web Services products, such as Amazon Elastic Compute Cloud, Amazon Elastic Block Store,
14-
Amazon Simple Notification Service, Elastic Load Balancing, and Auto Scaling to build highly
15-
reliable, highly scalable, cost-effective applications without creating or configuring the
16-
underlying Amazon Web Services infrastructure.</p>
17-
<p>With CloudFormation, you declare all your resources and dependencies in a template
18-
file. The template defines a collection of resources as a single unit called a stack.
19-
CloudFormation creates and deletes all member resources of the stack together and
20-
manages all dependencies between the resources for you.</p>
11+
<p>CloudFormation allows you to create and manage Amazon Web Services infrastructure deployments predictably
12+
and repeatedly. You can use CloudFormation to leverage Amazon Web Services products, such as Amazon Elastic Compute Cloud, Amazon Elastic Block Store, Amazon Simple Notification Service, Elastic Load Balancing, and Auto Scaling to build
13+
highly reliable, highly scalable, cost-effective applications without creating or configuring the underlying Amazon Web Services infrastructure.</p>
14+
<p>With CloudFormation, you declare all your resources and dependencies in a template file. The template
15+
defines a collection of resources as a single unit called a stack. CloudFormation creates and deletes all member
16+
resources of the stack together and manages all dependencies between the resources for you.</p>
2117
<p>For more information about CloudFormation, see the <a href="http://aws.amazon.com/cloudformation/">CloudFormation product page</a>.</p>
22-
<p>CloudFormation makes use of other Amazon Web Services products. If you need
23-
additional technical information about a specific Amazon Web Services product, you can find
24-
the product's technical documentation at <a href="https://docs.aws.amazon.com/">
18+
<p>CloudFormation makes use of other Amazon Web Services products. If you need additional technical information
19+
about a specific Amazon Web Services product, you can find the product's technical documentation at <a href="https://docs.aws.amazon.com/">
2520
<code>docs.aws.amazon.com</code>
2621
</a>.</p>
2722

@@ -40,16 +35,16 @@ using your favorite package manager:
4035

4136
The AWS SDK is modulized by clients and commands.
4237
To send a request, you only need to import the `CloudFormationClient` and
43-
the commands you need, for example `ActivateTypeCommand`:
38+
the commands you need, for example `ActivateOrganizationsAccessCommand`:
4439

4540
```js
4641
// ES5 example
47-
const { CloudFormationClient, ActivateTypeCommand } = require("@aws-sdk/client-cloudformation");
42+
const { CloudFormationClient, ActivateOrganizationsAccessCommand } = require("@aws-sdk/client-cloudformation");
4843
```
4944

5045
```ts
5146
// ES6+ example
52-
import { CloudFormationClient, ActivateTypeCommand } from "@aws-sdk/client-cloudformation";
47+
import { CloudFormationClient, ActivateOrganizationsAccessCommand } from "@aws-sdk/client-cloudformation";
5348
```
5449

5550
### Usage
@@ -68,7 +63,7 @@ const client = new CloudFormationClient({ region: "REGION" });
6863
const params = {
6964
/** input parameters */
7065
};
71-
const command = new ActivateTypeCommand(params);
66+
const command = new ActivateOrganizationsAccessCommand(params);
7267
```
7368

7469
#### Async/await
@@ -147,15 +142,15 @@ const client = new AWS.CloudFormation({ region: "REGION" });
147142

148143
// async/await.
149144
try {
150-
const data = await client.activateType(params);
145+
const data = await client.activateOrganizationsAccess(params);
151146
// process data.
152147
} catch (error) {
153148
// error handling.
154149
}
155150

156151
// Promises.
157152
client
158-
.activateType(params)
153+
.activateOrganizationsAccess(params)
159154
.then((data) => {
160155
// process data.
161156
})
@@ -164,7 +159,7 @@ client
164159
});
165160

166161
// callbacks.
167-
client.activateType(params, (err, data) => {
162+
client.activateOrganizationsAccess(params, (err, data) => {
168163
// process err and data.
169164
});
170165
```
@@ -220,6 +215,14 @@ see LICENSE for more information.
220215

221216
## Client Commands (Operations List)
222217

218+
<details>
219+
<summary>
220+
ActivateOrganizationsAccess
221+
</summary>
222+
223+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/classes/activateorganizationsaccesscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/interfaces/activateorganizationsaccesscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/interfaces/activateorganizationsaccesscommandoutput.html)
224+
225+
</details>
223226
<details>
224227
<summary>
225228
ActivateType
@@ -283,6 +286,14 @@ CreateStackSet
283286

284287
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/classes/createstacksetcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/interfaces/createstacksetcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/interfaces/createstacksetcommandoutput.html)
285288

289+
</details>
290+
<details>
291+
<summary>
292+
DeactivateOrganizationsAccess
293+
</summary>
294+
295+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/classes/deactivateorganizationsaccesscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/interfaces/deactivateorganizationsaccesscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/interfaces/deactivateorganizationsaccesscommandoutput.html)
296+
286297
</details>
287298
<details>
288299
<summary>
@@ -355,6 +366,14 @@ DescribeChangeSetHooks
355366

356367
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/classes/describechangesethookscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/interfaces/describechangesethookscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/interfaces/describechangesethookscommandoutput.html)
357368

369+
</details>
370+
<details>
371+
<summary>
372+
DescribeOrganizationsAccess
373+
</summary>
374+
375+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/classes/describeorganizationsaccesscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/interfaces/describeorganizationsaccesscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-cloudformation/interfaces/describeorganizationsaccesscommandoutput.html)
376+
358377
</details>
359378
<details>
360379
<summary>

‎clients/client-cloudformation/src/CloudFormation.ts

+77-13
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ import { createAggregatedClient } from "@aws-sdk/smithy-client";
33
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
44

55
import { CloudFormationClient, CloudFormationClientConfig } from "./CloudFormationClient";
6+
import {
7+
ActivateOrganizationsAccessCommand,
8+
ActivateOrganizationsAccessCommandInput,
9+
ActivateOrganizationsAccessCommandOutput,
10+
} from "./commands/ActivateOrganizationsAccessCommand";
611
import {
712
ActivateTypeCommand,
813
ActivateTypeCommandInput,
@@ -39,6 +44,11 @@ import {
3944
CreateStackSetCommandInput,
4045
CreateStackSetCommandOutput,
4146
} from "./commands/CreateStackSetCommand";
47+
import {
48+
DeactivateOrganizationsAccessCommand,
49+
DeactivateOrganizationsAccessCommandInput,
50+
DeactivateOrganizationsAccessCommandOutput,
51+
} from "./commands/DeactivateOrganizationsAccessCommand";
4252
import {
4353
DeactivateTypeCommand,
4454
DeactivateTypeCommandInput,
@@ -80,6 +90,11 @@ import {
8090
DescribeChangeSetHooksCommandInput,
8191
DescribeChangeSetHooksCommandOutput,
8292
} from "./commands/DescribeChangeSetHooksCommand";
93+
import {
94+
DescribeOrganizationsAccessCommand,
95+
DescribeOrganizationsAccessCommandInput,
96+
DescribeOrganizationsAccessCommandOutput,
97+
} from "./commands/DescribeOrganizationsAccessCommand";
8398
import {
8499
DescribePublisherCommand,
85100
DescribePublisherCommandInput,
@@ -295,6 +310,7 @@ import {
295310
} from "./commands/ValidateTemplateCommand";
296311

297312
const commands = {
313+
ActivateOrganizationsAccessCommand,
298314
ActivateTypeCommand,
299315
BatchDescribeTypeConfigurationsCommand,
300316
CancelUpdateStackCommand,
@@ -303,6 +319,7 @@ const commands = {
303319
CreateStackCommand,
304320
CreateStackInstancesCommand,
305321
CreateStackSetCommand,
322+
DeactivateOrganizationsAccessCommand,
306323
DeactivateTypeCommand,
307324
DeleteChangeSetCommand,
308325
DeleteStackCommand,
@@ -312,6 +329,7 @@ const commands = {
312329
DescribeAccountLimitsCommand,
313330
DescribeChangeSetCommand,
314331
DescribeChangeSetHooksCommand,
332+
DescribeOrganizationsAccessCommand,
315333
DescribePublisherCommand,
316334
DescribeStackDriftDetectionStatusCommand,
317335
DescribeStackEventsCommand,
@@ -364,6 +382,23 @@ const commands = {
364382
};
365383

366384
export interface CloudFormation {
385+
/**
386+
* @see {@link ActivateOrganizationsAccessCommand}
387+
*/
388+
activateOrganizationsAccess(
389+
args: ActivateOrganizationsAccessCommandInput,
390+
options?: __HttpHandlerOptions
391+
): Promise<ActivateOrganizationsAccessCommandOutput>;
392+
activateOrganizationsAccess(
393+
args: ActivateOrganizationsAccessCommandInput,
394+
cb: (err: any, data?: ActivateOrganizationsAccessCommandOutput) => void
395+
): void;
396+
activateOrganizationsAccess(
397+
args: ActivateOrganizationsAccessCommandInput,
398+
options: __HttpHandlerOptions,
399+
cb: (err: any, data?: ActivateOrganizationsAccessCommandOutput) => void
400+
): void;
401+
367402
/**
368403
* @see {@link ActivateTypeCommand}
369404
*/
@@ -482,6 +517,23 @@ export interface CloudFormation {
482517
cb: (err: any, data?: CreateStackSetCommandOutput) => void
483518
): void;
484519

520+
/**
521+
* @see {@link DeactivateOrganizationsAccessCommand}
522+
*/
523+
deactivateOrganizationsAccess(
524+
args: DeactivateOrganizationsAccessCommandInput,
525+
options?: __HttpHandlerOptions
526+
): Promise<DeactivateOrganizationsAccessCommandOutput>;
527+
deactivateOrganizationsAccess(
528+
args: DeactivateOrganizationsAccessCommandInput,
529+
cb: (err: any, data?: DeactivateOrganizationsAccessCommandOutput) => void
530+
): void;
531+
deactivateOrganizationsAccess(
532+
args: DeactivateOrganizationsAccessCommandInput,
533+
options: __HttpHandlerOptions,
534+
cb: (err: any, data?: DeactivateOrganizationsAccessCommandOutput) => void
535+
): void;
536+
485537
/**
486538
* @see {@link DeactivateTypeCommand}
487539
*/
@@ -617,6 +669,23 @@ export interface CloudFormation {
617669
cb: (err: any, data?: DescribeChangeSetHooksCommandOutput) => void
618670
): void;
619671

672+
/**
673+
* @see {@link DescribeOrganizationsAccessCommand}
674+
*/
675+
describeOrganizationsAccess(
676+
args: DescribeOrganizationsAccessCommandInput,
677+
options?: __HttpHandlerOptions
678+
): Promise<DescribeOrganizationsAccessCommandOutput>;
679+
describeOrganizationsAccess(
680+
args: DescribeOrganizationsAccessCommandInput,
681+
cb: (err: any, data?: DescribeOrganizationsAccessCommandOutput) => void
682+
): void;
683+
describeOrganizationsAccess(
684+
args: DescribeOrganizationsAccessCommandInput,
685+
options: __HttpHandlerOptions,
686+
cb: (err: any, data?: DescribeOrganizationsAccessCommandOutput) => void
687+
): void;
688+
620689
/**
621690
* @see {@link DescribePublisherCommand}
622691
*/
@@ -1364,20 +1433,15 @@ export interface CloudFormation {
13641433
/**
13651434
* @public
13661435
* <fullname>CloudFormation</fullname>
1367-
* <p>CloudFormation allows you to create and manage Amazon Web Services infrastructure
1368-
* deployments predictably and repeatedly. You can use CloudFormation to leverage
1369-
* Amazon Web Services products, such as Amazon Elastic Compute Cloud, Amazon Elastic Block Store,
1370-
* Amazon Simple Notification Service, Elastic Load Balancing, and Auto Scaling to build highly
1371-
* reliable, highly scalable, cost-effective applications without creating or configuring the
1372-
* underlying Amazon Web Services infrastructure.</p>
1373-
* <p>With CloudFormation, you declare all your resources and dependencies in a template
1374-
* file. The template defines a collection of resources as a single unit called a stack.
1375-
* CloudFormation creates and deletes all member resources of the stack together and
1376-
* manages all dependencies between the resources for you.</p>
1436+
* <p>CloudFormation allows you to create and manage Amazon Web Services infrastructure deployments predictably
1437+
* and repeatedly. You can use CloudFormation to leverage Amazon Web Services products, such as Amazon Elastic Compute Cloud, Amazon Elastic Block Store, Amazon Simple Notification Service, Elastic Load Balancing, and Auto Scaling to build
1438+
* highly reliable, highly scalable, cost-effective applications without creating or configuring the underlying Amazon Web Services infrastructure.</p>
1439+
* <p>With CloudFormation, you declare all your resources and dependencies in a template file. The template
1440+
* defines a collection of resources as a single unit called a stack. CloudFormation creates and deletes all member
1441+
* resources of the stack together and manages all dependencies between the resources for you.</p>
13771442
* <p>For more information about CloudFormation, see the <a href="http://aws.amazon.com/cloudformation/">CloudFormation product page</a>.</p>
1378-
* <p>CloudFormation makes use of other Amazon Web Services products. If you need
1379-
* additional technical information about a specific Amazon Web Services product, you can find
1380-
* the product's technical documentation at <a href="https://docs.aws.amazon.com/">
1443+
* <p>CloudFormation makes use of other Amazon Web Services products. If you need additional technical information
1444+
* about a specific Amazon Web Services product, you can find the product's technical documentation at <a href="https://docs.aws.amazon.com/">
13811445
* <code>docs.aws.amazon.com</code>
13821446
* </a>.</p>
13831447
*/

0 commit comments

Comments
 (0)
Please sign in to comment.