Skip to content

Commit c2562b2

Browse files
author
AWS
committed
AWS Control Tower Update: Added ResetEnabledControl API.
1 parent a8df2d5 commit c2562b2

File tree

2 files changed

+49
-2
lines changed

2 files changed

+49
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Control Tower",
4+
"contributor": "",
5+
"description": "Added ResetEnabledControl API."
6+
}

services/controltower/src/main/resources/codegen-resources/service-2.json

Lines changed: 43 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,26 @@
398398
],
399399
"documentation":"<p>Re-enables an <code>EnabledBaseline</code> resource. For example, this API can re-apply the existing <code>Baseline</code> after a new member account is moved to the target OU. For usage examples, see <a href=\"https://docs.aws.amazon.com/controltower/latest/userguide/baseline-api-examples.html\"> <i>the Amazon Web Services Control Tower User Guide</i> </a>.</p>"
400400
},
401+
"ResetEnabledControl":{
402+
"name":"ResetEnabledControl",
403+
"http":{
404+
"method":"POST",
405+
"requestUri":"/reset-enabled-control",
406+
"responseCode":200
407+
},
408+
"input":{"shape":"ResetEnabledControlInput"},
409+
"output":{"shape":"ResetEnabledControlOutput"},
410+
"errors":[
411+
{"shape":"ValidationException"},
412+
{"shape":"ConflictException"},
413+
{"shape":"ServiceQuotaExceededException"},
414+
{"shape":"InternalServerException"},
415+
{"shape":"AccessDeniedException"},
416+
{"shape":"ThrottlingException"},
417+
{"shape":"ResourceNotFoundException"}
418+
],
419+
"documentation":"<p>Resets an enabled control.</p>"
420+
},
401421
"ResetLandingZone":{
402422
"name":"ResetLandingZone",
403423
"http":{
@@ -487,7 +507,7 @@
487507
{"shape":"ThrottlingException"},
488508
{"shape":"ResourceNotFoundException"}
489509
],
490-
"documentation":"<p> Updates the configuration of an already enabled control.</p> <p>If the enabled control shows an <code>EnablementStatus</code> of SUCCEEDED, supply parameters that are different from the currently configured parameters. Otherwise, Amazon Web Services Control Tower will not accept the request.</p> <p>If the enabled control shows an <code>EnablementStatus</code> of FAILED, Amazon Web Services Control Tower updates the control to match any valid parameters that you supply.</p> <p>If the <code>DriftSummary</code> status for the control shows as DRIFTED, you cannot call this API. Instead, you can update the control by calling <code>DisableControl</code> and again calling <code>EnableControl</code>, or you can run an extending governance operation. For usage examples, see the <a href=\"https://docs.aws.amazon.com/controltower/latest/controlreference/control-api-examples-short.html\"> <i>Controls Reference Guide</i> </a>. </p>"
510+
"documentation":"<p> Updates the configuration of an already enabled control.</p> <p>If the enabled control shows an <code>EnablementStatus</code> of SUCCEEDED, supply parameters that are different from the currently configured parameters. Otherwise, Amazon Web Services Control Tower will not accept the request.</p> <p>If the enabled control shows an <code>EnablementStatus</code> of FAILED, Amazon Web Services Control Tower updates the control to match any valid parameters that you supply.</p> <p>If the <code>DriftSummary</code> status for the control shows as <code>DRIFTED</code>, you cannot call this API. Instead, you can update the control by calling the <code>ResetEnabledControl</code> API. Alternatively, you can call <code>DisableControl</code> and then call <code>EnableControl</code> again. Also, you can run an extending governance operation to repair drift. For usage examples, see the <a href=\"https://docs.aws.amazon.com/controltower/latest/controlreference/control-api-examples-short.html\"> <i>Controls Reference Guide</i> </a>. </p>"
491511
},
492512
"UpdateLandingZone":{
493513
"name":"UpdateLandingZone",
@@ -766,7 +786,8 @@
766786
"enum":[
767787
"ENABLE_CONTROL",
768788
"DISABLE_CONTROL",
769-
"UPDATE_ENABLED_CONTROL"
789+
"UPDATE_ENABLED_CONTROL",
790+
"RESET_ENABLED_CONTROL"
770791
]
771792
},
772793
"ControlOperationTypes":{
@@ -1940,6 +1961,26 @@
19401961
}
19411962
}
19421963
},
1964+
"ResetEnabledControlInput":{
1965+
"type":"structure",
1966+
"required":["enabledControlIdentifier"],
1967+
"members":{
1968+
"enabledControlIdentifier":{
1969+
"shape":"Arn",
1970+
"documentation":"<p>The ARN of the enabled control to be reset.</p>"
1971+
}
1972+
}
1973+
},
1974+
"ResetEnabledControlOutput":{
1975+
"type":"structure",
1976+
"required":["operationIdentifier"],
1977+
"members":{
1978+
"operationIdentifier":{
1979+
"shape":"OperationIdentifier",
1980+
"documentation":"<p> The operation identifier for this <code>ResetEnabledControl</code> operation. </p>"
1981+
}
1982+
}
1983+
},
19431984
"ResetLandingZoneInput":{
19441985
"type":"structure",
19451986
"required":["landingZoneIdentifier"],

0 commit comments

Comments
 (0)