campaign_states
Creates, updates, deletes, gets or lists a campaign_states resource.
Overview
| Name | campaign_states |
| Type | Resource |
| Id | aws.connectcampaignsv2.campaign_states |
Fields
The following fields are returned by SELECT queries:
- get_campaign_state
| Name | Datatype | Description |
|---|---|---|
state | string | State of a campaign (Initialized, Running, Paused, Stopped, Failed, Completed) |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_campaign_state | select | id, region | Get state of a campaign for the specified Amazon Connect account. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
id | string | |
region | string | AWS region (default: us-east-1) |
SELECT examples
- get_campaign_state
Get state of a campaign for the specified Amazon Connect account.
SELECT
state
FROM aws.connectcampaignsv2.campaign_states
WHERE id = '{{ id }}' -- required
AND region = '{{ region }}' -- required
;