Skip to content

Commit 89c1f79

Browse files
author
awstools
committed
feat(client-controltower): Added Parent Identifier support to ListEnabledControls and GetEnabledControl API. Implemented RemediationType support for Landing Zone operations: CreateLandingZone, UpdateLandingZone and GetLandingZone APIs
1 parent 1d8341d commit 89c1f79

18 files changed

+386
-49
lines changed

clients/client-controltower/src/ControlTower.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ export interface ControlTower {
219219
/**
220220
* @see {@link DisableControlCommand}
221221
*/
222+
disableControl(): Promise<DisableControlCommandOutput>;
222223
disableControl(
223224
args: DisableControlCommandInput,
224225
options?: __HttpHandlerOptions

clients/client-controltower/src/commands/CreateLandingZoneCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ export interface CreateLandingZoneCommandOutput extends CreateLandingZoneOutput,
4040
* const input = { // CreateLandingZoneInput
4141
* version: "STRING_VALUE", // required
4242
* manifest: "DOCUMENT_VALUE", // required
43+
* remediationTypes: [ // RemediationTypes
44+
* "INHERITANCE_DRIFT",
45+
* ],
4346
* tags: { // TagMap
4447
* "<keys>": "STRING_VALUE",
4548
* },

clients/client-controltower/src/commands/DeleteLandingZoneCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export interface DeleteLandingZoneCommandInput extends DeleteLandingZoneInput {}
2828
export interface DeleteLandingZoneCommandOutput extends DeleteLandingZoneOutput, __MetadataBearer {}
2929

3030
/**
31-
* <p>Decommissions a landing zone. This API call starts an asynchronous operation that deletes Amazon Web Services Control Tower resources deployed in accounts managed by Amazon Web Services Control Tower.</p>
31+
* <p>Decommissions a landing zone. This API call starts an asynchronous operation that deletes Amazon Web Services Control Tower resources deployed in accounts managed by Amazon Web Services Control Tower.</p> <p>Decommissioning a landing zone is a process with significant consequences, and it cannot be undone. We strongly recommend that you perform this decommissioning process only if you intend to stop using your landing zone.</p>
3232
* @example
3333
* Use a bare-bones client and the command you need to make an API call.
3434
* ```javascript

clients/client-controltower/src/commands/DisableBaselineCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export interface DisableBaselineCommandOutput extends DisableBaselineOutput, __M
6767
* <p>The request references a resource that does not exist.</p>
6868
*
6969
* @throws {@link ServiceQuotaExceededException} (client fault)
70-
* <p>The request would cause a service quota to be exceeded. The limit is 100 concurrent operations.</p>
70+
* <p>The request would cause a service quota to be exceeded. See <a href="https://docs.aws.amazon.com/controltower/latest/userguide/request-an-increase.html">Service quotas</a>.</p>
7171
*
7272
* @throws {@link ThrottlingException} (client fault)
7373
* <p>The request was denied due to request throttling.</p>

clients/client-controltower/src/commands/DisableControlCommand.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ export interface DisableControlCommandOutput extends DisableControlOutput, __Met
3838
* const config = {}; // type is ControlTowerClientConfig
3939
* const client = new ControlTowerClient(config);
4040
* const input = { // DisableControlInput
41-
* controlIdentifier: "STRING_VALUE", // required
42-
* targetIdentifier: "STRING_VALUE", // required
41+
* controlIdentifier: "STRING_VALUE",
42+
* targetIdentifier: "STRING_VALUE",
43+
* enabledControlIdentifier: "STRING_VALUE",
4344
* };
4445
* const command = new DisableControlCommand(input);
4546
* const response = await client.send(command);
@@ -68,7 +69,7 @@ export interface DisableControlCommandOutput extends DisableControlOutput, __Met
6869
* <p>The request references a resource that does not exist.</p>
6970
*
7071
* @throws {@link ServiceQuotaExceededException} (client fault)
71-
* <p>The request would cause a service quota to be exceeded. The limit is 100 concurrent operations.</p>
72+
* <p>The request would cause a service quota to be exceeded. See <a href="https://docs.aws.amazon.com/controltower/latest/userguide/request-an-increase.html">Service quotas</a>.</p>
7273
*
7374
* @throws {@link ThrottlingException} (client fault)
7475
* <p>The request was denied due to request throttling.</p>

clients/client-controltower/src/commands/EnableBaselineCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export interface EnableBaselineCommandOutput extends EnableBaselineOutput, __Met
7979
* <p>The request references a resource that does not exist.</p>
8080
*
8181
* @throws {@link ServiceQuotaExceededException} (client fault)
82-
* <p>The request would cause a service quota to be exceeded. The limit is 100 concurrent operations.</p>
82+
* <p>The request would cause a service quota to be exceeded. See <a href="https://docs.aws.amazon.com/controltower/latest/userguide/request-an-increase.html">Service quotas</a>.</p>
8383
*
8484
* @throws {@link ThrottlingException} (client fault)
8585
* <p>The request was denied due to request throttling.</p>

clients/client-controltower/src/commands/EnableControlCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export interface EnableControlCommandOutput extends EnableControlOutput, __Metad
7878
* <p>The request references a resource that does not exist.</p>
7979
*
8080
* @throws {@link ServiceQuotaExceededException} (client fault)
81-
* <p>The request would cause a service quota to be exceeded. The limit is 100 concurrent operations.</p>
81+
* <p>The request would cause a service quota to be exceeded. See <a href="https://docs.aws.amazon.com/controltower/latest/userguide/request-an-increase.html">Service quotas</a>.</p>
8282
*
8383
* @throws {@link ThrottlingException} (client fault)
8484
* <p>The request was denied due to request throttling.</p>

clients/client-controltower/src/commands/GetEnabledControlCommand.ts

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,18 +47,27 @@ export interface GetEnabledControlCommandOutput extends GetEnabledControlOutput,
4747
* // arn: "STRING_VALUE",
4848
* // controlIdentifier: "STRING_VALUE",
4949
* // targetIdentifier: "STRING_VALUE",
50-
* // targetRegions: [ // TargetRegions
51-
* // { // Region
52-
* // name: "STRING_VALUE",
53-
* // },
54-
* // ],
5550
* // statusSummary: { // EnablementStatusSummary
5651
* // status: "SUCCEEDED" || "FAILED" || "UNDER_CHANGE",
5752
* // lastOperationIdentifier: "STRING_VALUE",
5853
* // },
5954
* // driftStatusSummary: { // DriftStatusSummary
6055
* // driftStatus: "DRIFTED" || "IN_SYNC" || "NOT_CHECKING" || "UNKNOWN",
56+
* // types: { // EnabledControlDriftTypes
57+
* // inheritance: { // EnabledControlInheritanceDrift
58+
* // status: "DRIFTED" || "IN_SYNC" || "NOT_CHECKING" || "UNKNOWN",
59+
* // },
60+
* // resource: { // EnabledControlResourceDrift
61+
* // status: "DRIFTED" || "IN_SYNC" || "NOT_CHECKING" || "UNKNOWN",
62+
* // },
63+
* // },
6164
* // },
65+
* // parentIdentifier: "STRING_VALUE",
66+
* // targetRegions: [ // TargetRegions
67+
* // { // Region
68+
* // name: "STRING_VALUE",
69+
* // },
70+
* // ],
6271
* // parameters: [ // EnabledControlParameterSummaries
6372
* // { // EnabledControlParameterSummary
6473
* // key: "STRING_VALUE", // required

clients/client-controltower/src/commands/GetLandingZoneCommand.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ export interface GetLandingZoneCommandOutput extends GetLandingZoneOutput, __Met
4646
* // landingZone: { // LandingZoneDetail
4747
* // version: "STRING_VALUE", // required
4848
* // manifest: "DOCUMENT_VALUE", // required
49+
* // remediationTypes: [ // RemediationTypes
50+
* // "INHERITANCE_DRIFT",
51+
* // ],
4952
* // arn: "STRING_VALUE",
5053
* // status: "ACTIVE" || "PROCESSING" || "FAILED",
5154
* // latestAvailableVersion: "STRING_VALUE",

clients/client-controltower/src/commands/ListEnabledControlsCommand.ts

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,42 @@ export interface ListEnabledControlsCommandOutput extends ListEnabledControlsOut
5151
* driftStatuses: [ // DriftStatuses
5252
* "DRIFTED" || "IN_SYNC" || "NOT_CHECKING" || "UNKNOWN",
5353
* ],
54+
* parentIdentifiers: [ // ParentIdentifiers
55+
* "STRING_VALUE",
56+
* ],
57+
* inheritanceDriftStatuses: [
58+
* "DRIFTED" || "IN_SYNC" || "NOT_CHECKING" || "UNKNOWN",
59+
* ],
60+
* resourceDriftStatuses: [
61+
* "DRIFTED" || "IN_SYNC" || "NOT_CHECKING" || "UNKNOWN",
62+
* ],
5463
* },
64+
* includeChildren: true || false,
5565
* };
5666
* const command = new ListEnabledControlsCommand(input);
5767
* const response = await client.send(command);
5868
* // { // ListEnabledControlsOutput
5969
* // enabledControls: [ // EnabledControls // required
6070
* // { // EnabledControlSummary
61-
* // controlIdentifier: "STRING_VALUE",
6271
* // arn: "STRING_VALUE",
72+
* // controlIdentifier: "STRING_VALUE",
6373
* // targetIdentifier: "STRING_VALUE",
6474
* // statusSummary: { // EnablementStatusSummary
6575
* // status: "SUCCEEDED" || "FAILED" || "UNDER_CHANGE",
6676
* // lastOperationIdentifier: "STRING_VALUE",
6777
* // },
6878
* // driftStatusSummary: { // DriftStatusSummary
6979
* // driftStatus: "DRIFTED" || "IN_SYNC" || "NOT_CHECKING" || "UNKNOWN",
80+
* // types: { // EnabledControlDriftTypes
81+
* // inheritance: { // EnabledControlInheritanceDrift
82+
* // status: "DRIFTED" || "IN_SYNC" || "NOT_CHECKING" || "UNKNOWN",
83+
* // },
84+
* // resource: { // EnabledControlResourceDrift
85+
* // status: "DRIFTED" || "IN_SYNC" || "NOT_CHECKING" || "UNKNOWN",
86+
* // },
87+
* // },
7088
* // },
89+
* // parentIdentifier: "STRING_VALUE",
7190
* // },
7291
* // ],
7392
* // nextToken: "STRING_VALUE",

0 commit comments

Comments
 (0)