@@ -135,13 +135,39 @@ defmodule AWS.ControlTower do
135135 )
136136 end
137137
138+ @ doc """
139+ Disable an `EnabledBaseline` resource on the specified Target.
140+
141+ This API starts an asynchronous operation to remove all resources deployed as
142+ part of the baseline enablement. The resource will vary depending on the enabled
143+ baseline.
144+ """
145+ def disable_baseline ( % Client { } = client , input , options \\ [ ] ) do
146+ url_path = "/disable-baseline"
147+ headers = [ ]
148+ query_params = [ ]
149+
150+ meta = metadata ( )
151+
152+ Request . request_rest (
153+ client ,
154+ meta ,
155+ :post ,
156+ url_path ,
157+ query_params ,
158+ headers ,
159+ input ,
160+ options ,
161+ 200
162+ )
163+ end
164+
138165 @ doc """
139166 This API call turns off a control.
140167
141- It starts an asynchronous operation that deletes Amazon Web Services resources
142- on the specified organizational unit and the accounts it contains. The resources
143- will vary according to the control that you specify. For usage examples, see [
144- *the Amazon Web Services Control Tower User Guide*
168+ It starts an asynchronous operation that deletes AWS resources on the specified
169+ organizational unit and the accounts it contains. The resources will vary
170+ according to the control that you specify. For usage examples, see [ *the Amazon Web Services Control Tower User Guide*
145171 ](https://docs.aws.amazon.com/controltower/latest/userguide/control-api-examples-short.html).
146172 """
147173 def disable_control ( % Client { } = client , input , options \\ [ ] ) do
@@ -164,6 +190,32 @@ defmodule AWS.ControlTower do
164190 )
165191 end
166192
193+ @ doc """
194+ Enable (apply) a `Baseline` to a Target.
195+
196+ This API starts an asynchronous operation to deploy resources specified by the
197+ `Baseline` to the specified Target.
198+ """
199+ def enable_baseline ( % Client { } = client , input , options \\ [ ] ) do
200+ url_path = "/enable-baseline"
201+ headers = [ ]
202+ query_params = [ ]
203+
204+ meta = metadata ( )
205+
206+ Request . request_rest (
207+ client ,
208+ meta ,
209+ :post ,
210+ url_path ,
211+ query_params ,
212+ headers ,
213+ input ,
214+ options ,
215+ 200
216+ )
217+ end
218+
167219 @ doc """
168220 This API call activates a control.
169221
@@ -193,6 +245,57 @@ defmodule AWS.ControlTower do
193245 )
194246 end
195247
248+ @ doc """
249+ Retrieve details about an existing `Baseline` resource by specifying its
250+ identifier.
251+ """
252+ def get_baseline ( % Client { } = client , input , options \\ [ ] ) do
253+ url_path = "/get-baseline"
254+ headers = [ ]
255+ query_params = [ ]
256+
257+ meta = metadata ( )
258+
259+ Request . request_rest (
260+ client ,
261+ meta ,
262+ :post ,
263+ url_path ,
264+ query_params ,
265+ headers ,
266+ input ,
267+ options ,
268+ 200
269+ )
270+ end
271+
272+ @ doc """
273+ Returns the details of an asynchronous baseline operation, as initiated by any
274+ of these APIs: `EnableBaseline`, `DisableBaseline`, `UpdateEnabledBaseline`,
275+ `ResetEnabledBaseline`.
276+
277+ A status message is displayed in case of operation failure.
278+ """
279+ def get_baseline_operation ( % Client { } = client , input , options \\ [ ] ) do
280+ url_path = "/get-baseline-operation"
281+ headers = [ ]
282+ query_params = [ ]
283+
284+ meta = metadata ( )
285+
286+ Request . request_rest (
287+ client ,
288+ meta ,
289+ :post ,
290+ url_path ,
291+ query_params ,
292+ headers ,
293+ input ,
294+ options ,
295+ 200
296+ )
297+ end
298+
196299 @ doc """
197300 Returns the status of a particular `EnableControl` or `DisableControl`
198301 operation.
@@ -221,6 +324,29 @@ defmodule AWS.ControlTower do
221324 )
222325 end
223326
327+ @ doc """
328+ Retrieve details of an `EnabledBaseline` resource by specifying its identifier.
329+ """
330+ def get_enabled_baseline ( % Client { } = client , input , options \\ [ ] ) do
331+ url_path = "/get-enabled-baseline"
332+ headers = [ ]
333+ query_params = [ ]
334+
335+ meta = metadata ( )
336+
337+ Request . request_rest (
338+ client ,
339+ meta ,
340+ :post ,
341+ url_path ,
342+ query_params ,
343+ headers ,
344+ input ,
345+ options ,
346+ 200
347+ )
348+ end
349+
224350 @ doc """
225351 Retrieves details about an enabled control.
226352
@@ -272,6 +398,55 @@ defmodule AWS.ControlTower do
272398 )
273399 end
274400
401+ @ doc """
402+ Returns a summary list of all available baselines.
403+ """
404+ def list_baselines ( % Client { } = client , input , options \\ [ ] ) do
405+ url_path = "/list-baselines"
406+ headers = [ ]
407+ query_params = [ ]
408+
409+ meta = metadata ( )
410+
411+ Request . request_rest (
412+ client ,
413+ meta ,
414+ :post ,
415+ url_path ,
416+ query_params ,
417+ headers ,
418+ input ,
419+ options ,
420+ 200
421+ )
422+ end
423+
424+ @ doc """
425+ Returns a list of summaries describing `EnabledBaseline` resources.
426+
427+ You can filter the list by the corresponding `Baseline` or `Target` of the
428+ `EnabledBaseline` resources.
429+ """
430+ def list_enabled_baselines ( % Client { } = client , input , options \\ [ ] ) do
431+ url_path = "/list-enabled-baselines"
432+ headers = [ ]
433+ query_params = [ ]
434+
435+ meta = metadata ( )
436+
437+ Request . request_rest (
438+ client ,
439+ meta ,
440+ :post ,
441+ url_path ,
442+ query_params ,
443+ headers ,
444+ input ,
445+ options ,
446+ 200
447+ )
448+ end
449+
275450 @ doc """
276451 Lists the controls enabled by Amazon Web Services Control Tower on the specified
277452 organizational unit and the accounts it contains.
@@ -344,6 +519,32 @@ defmodule AWS.ControlTower do
344519 Request . request_rest ( client , meta , :get , url_path , query_params , headers , nil , options , 200 )
345520 end
346521
522+ @ doc """
523+ Re-enables an `EnabledBaseline` resource.
524+
525+ For example, this API can re-apply the existing `Baseline` after a new member
526+ account is moved to the target OU.
527+ """
528+ def reset_enabled_baseline ( % Client { } = client , input , options \\ [ ] ) do
529+ url_path = "/reset-enabled-baseline"
530+ headers = [ ]
531+ query_params = [ ]
532+
533+ meta = metadata ( )
534+
535+ Request . request_rest (
536+ client ,
537+ meta ,
538+ :post ,
539+ url_path ,
540+ query_params ,
541+ headers ,
542+ input ,
543+ options ,
544+ 200
545+ )
546+ end
547+
347548 @ doc """
348549 This API call resets a landing zone.
349550
@@ -426,4 +627,27 @@ defmodule AWS.ControlTower do
426627 204
427628 )
428629 end
630+
631+ @ doc """
632+ Updates an `EnabledBaseline` resource's applied parameters or version.
633+ """
634+ def update_enabled_baseline ( % Client { } = client , input , options \\ [ ] ) do
635+ url_path = "/update-enabled-baseline"
636+ headers = [ ]
637+ query_params = [ ]
638+
639+ meta = metadata ( )
640+
641+ Request . request_rest (
642+ client ,
643+ meta ,
644+ :post ,
645+ url_path ,
646+ query_params ,
647+ headers ,
648+ input ,
649+ options ,
650+ 200
651+ )
652+ end
429653end
0 commit comments