aws_resource_create
Create an AWS resource via Cloud Control API by specifying typeName and desiredState, returning an IN_PROGRESS ProgressEvent with a requestToken for async tracking. Set awaitCompletion true to poll until SUCCESS, FAILED, or CANCEL_COMPLETE.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"typeName": "<typeName>",
"desiredState": "<desiredState>"
},
"name": "aws_resource_create"
}
}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). |