list_aws_hosting_targets
Lists eligible AWS hosting targets for a static stack, showing managed and customer options with notices, so you can choose the right account before creating a deployment.
Instructions
Use this when an existing stack's deploymentTarget is AWS_STATIC and you need to choose which AWS account will own its next deployment. Call it with that stack's stackId before create_deployment because managed-account eligibility and the current selection are stack-specific.
Render the response; do not derive or repair it:
managedis the Staticbot-hosted option. It can be null; when null, do not offer it.customerOptionscontains ready-to-renderlabels and opaquevalues for connected customer accounts.noticesexplains why an option is absent or unusable. Surface every notice verbatim.selectedValueis the stack's current account when stackId was supplied and is suitable as the default selection.
If one usable option exists, use it without asking. If several exist, present them and let the user decide. If none exist, show the notices and do not create a deployment. Pass only a returned option's exact value as create_deployment.targetAccountId. That value decides infrastructure ownership; never invent an account id or send infrastructureOwnership.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stackId | No | Optional stack ID. Supply it before create_deployment so `managed`, `notices`, and `selectedValue` reflect that stack's AWS hosting rules. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | Parsed JSON response from the Staticbot public API |