aws_resource_create
Create AWS resources via Cloud Control API by defining type and desired state, then either poll for progress or await completion.
Instructions
Create an AWS resource via Cloud Control API. Async by default: returns a ProgressEvent with OperationStatus=IN_PROGRESS and a requestToken (top-level) -- poll aws_resource_status with that token, or pass awaitCompletion: true to have the server poll for you and return the terminal event. desiredState is the resource properties JSON matching the CloudFormation schema for typeName.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| region | No | Override session region for this call. | |
| profile | No | Override session profile for this call. | |
| typeName | Yes | CloudFormation type name, e.g. 'AWS::SSM::Parameter'. | |
| maxWaitMs | No | Maximum total wait in ms when awaitCompletion is true (range 1000-1800000). Default 300000. On timeout, returns the last seen status with a hint to keep polling. | |
| timeoutMs | No | Timeout in milliseconds. Default 60000. | |
| clientToken | No | Idempotency token (max 128 chars). Prevents duplicate creation on retry. | |
| desiredState | Yes | Resource properties matching the CFN schema. E.g. for AWS::SSM::Parameter: {Name: '/my/param', Type: 'String', Value: 'hello'}. | |
| pollIntervalMs | No | Poll interval in ms when awaitCompletion is true (range 500-30000). Default 2000. ProgressEvent.RetryAfter overrides when CCAPI returns one. | |
| awaitCompletion | No | If true, poll get-resource-request-status until the operation reaches SUCCESS / FAILED / CANCEL_COMPLETE and return the final ProgressEvent. Default false (returns immediately with IN_PROGRESS, caller polls via aws_resource_status). |