Add waiter for ControlTower Baseline Operation #4068
Labels
feature-request
This issue requests a feature.
investigating
This issue is being investigated and/or work is in progress to resolve the issue.
p3
This is a minor priority issue
Describe the feature
Enabling a baseline in control tower needs to wait for baselines to be status SUCCEEDED. Setup a waiter for this so that it doesn't have to be done manually.
Use Case
enabling baselines for several OUs in control tower
def wait_for_baseline_operation(operation_id, region):
ct_client = boto3.client('controltower', region_name=region)
try:
waiter = ct_client.get_waiter('baseline_operation_complete')
waiter.wait(
BaselineId='arn:aws:controltower:'+region+'::baseline/17BSJV3IGJ2QSGA2',
OperationId=operation_id
)
Proposed Solution
No response
Other Information
No response
Acknowledgements
SDK version used
1.34.50
Environment details (OS name and version, etc.)
macOS 14.3.1 (23D60)
The text was updated successfully, but these errors were encountered: