Skip to content

Add CLI examples for ControTower APIs#9452

Merged
AndrewAsseily merged 48 commits into
aws:developfrom
eodeyemi14:eodeyemi/controltower-cli-docs
May 12, 2026
Merged

Add CLI examples for ControTower APIs#9452
AndrewAsseily merged 48 commits into
aws:developfrom
eodeyemi14:eodeyemi/controltower-cli-docs

Conversation

@eodeyemi14
Copy link
Copy Markdown
Contributor

Issue #, if available:
N/A
Description of changes:
This PR adds example CLI inputs and outputs of all AWS Control Tower APIs

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@ashovlin ashovlin added the documentation This is a problem with documentation. label Apr 22, 2025
@elysahall elysahall self-assigned this Jul 2, 2025
@elysahall elysahall added the pr:work-in-progress This PR is a draft and needs further work. label Jul 2, 2025
Copy link
Copy Markdown
Contributor

@elysahall elysahall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello @eodeyemi14,
Thank you for your contribution! Please review the requested format changes, rebase, commit, and push your updates.

Thank you.

Comment thread awscli/examples/controltower/create-landing-zone.rst Outdated
Comment thread awscli/examples/controltower/create-landing-zone.rst Outdated
Comment thread awscli/examples/controltower/create-landing-zone.rst Outdated
Comment thread awscli/examples/controltower/delete-landing-zone.rst Outdated
Comment thread awscli/examples/controltower/delete-landing-zone.rst Outdated
Comment thread awscli/examples/controltower/update-enabled-baseline.rst Outdated
Comment thread awscli/examples/controltower/update-enabled-baseline.rst Outdated
Comment thread awscli/examples/controltower/update-enabled-control.rst Outdated
Comment thread awscli/examples/controltower/update-enabled-control.rst Outdated
Comment thread awscli/examples/controltower/update-enabled-control.rst Outdated
@eodeyemi14 eodeyemi14 force-pushed the eodeyemi/controltower-cli-docs branch from 113f658 to 190c64d Compare November 9, 2025 20:58
@eodeyemi14
Copy link
Copy Markdown
Contributor Author

Hello @eodeyemi14, Thank you for your contribution! Please review the requested format changes, rebase, commit, and push your updates.

Thank you.

H @elysahall This has been updated. Please review.

@AndrewAsseily
Copy link
Copy Markdown
Contributor

AndrewAsseily commented May 5, 2026

Hey @eodeyemi14, looks good thanks! In enable-baseline.rst, let's use dummy values (like 123456789012 and masked org IDs) to stay consistent with the rest of the examples. Also, could you add a trailing newline to each .rst file? Thanks!

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.43%. Comparing base (68039fa) to head (0d8f142).
⚠️ Report is 829 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #9452      +/-   ##
===========================================
+ Coverage    93.40%   93.43%   +0.03%     
===========================================
  Files          211      211              
  Lines        17012    17283     +271     
===========================================
+ Hits         15890    16149     +259     
- Misses        1122     1134      +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

"startTime": "2024-02-19T19:21:09+00:00",
"operationType": "ENABLE_CONTROL",
"status": "IN_PROGRESS",
"statusMessage": "Operation is in progress."
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing comma after "statusMessage": "Operation is in progress.". This makes the JSON invalid.

Comment thread awscli/examples/controltower/enable-baseline.rst
"loggingBucket": {
"retentionDays": 365
},
"kmsKeyArn": "<arn_of_kms_key",
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stray < with no closing >. Should probably be a placeholder ARN like "arn:aws:kms:us-east-1:123456789012:key/example-key-id"

Comment thread awscli/examples/controltower/list-enabled-controls.rst Outdated
The following ``update-enabled-control`` example updates an AWS Control Tower enabled control. ::

aws controltower update-enabled-control \
--enabled-control-identifier arn:aws:controltower:us-east-1:493301538276:enabledcontrol/JSJN8UL0G2MWGRTZ \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This uses 493301538276. Can we use a value like all the other examples to keep it consistent (123456789012 as the placeholder account ID)

@@ -0,0 +1,19 @@
**To get a Control Tower landing zone operation**

The following ``get-landing-zone-operation`` example get details of an AWS Control Tower landing zone operation. ::
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few of the descriptions say "get details" where it should be "gets details"

Copy link
Copy Markdown
Contributor

@AndrewAsseily AndrewAsseily left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@AndrewAsseily AndrewAsseily merged commit d29df49 into aws:develop May 12, 2026
41 checks passed
aws-sdk-python-automation added a commit that referenced this pull request May 13, 2026
* release-1.45.7:
  Bumping version to 1.45.7
  Update changelog based on model updates
  Add CLI examples for ControTower APIs (#9452)
  Add Express Configuration example to create-db-cluster CLI docs (#10300)
  Adding path and state parameters to outputs where appropriate (#10288)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation This is a problem with documentation. pr:work-in-progress This PR is a draft and needs further work.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants