Skip to main content

rcs_agents

Creates, updates, deletes, gets or lists a rcs_agents resource.

Overview

Namercs_agents
TypeResource
Idaws.pinpoint_sms_voice_v2.rcs_agents

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
created_timestampstring (date-time)The time when the RCS agent was created, in UNIX epoch time format.
deletion_protection_enabledbooleanWhen set to true the RCS agent can't be deleted.
opt_out_list_namestringThe name of the OptOutList associated with the RCS agent. (pattern: <code>[A-Za-z0-9_-]+</code>)
pool_idstringThe unique identifier of the pool associated with the RCS agent.
rcs_agent_arnstringThe Amazon Resource Name (ARN) of the RCS agent.
rcs_agent_idstringThe unique identifier for the RCS agent.
self_managed_opt_outs_enabledbooleanWhen set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
statusstringThe current status of the RCS agent. (CREATED, PENDING, TESTING, PARTIAL, ACTIVE, DELETED)
testing_agentobjectThe testing agent information associated with the RCS agent.
two_way_channel_arnstringThe Amazon Resource Name (ARN) of the two way channel. (pattern: <code>\S+</code>)
two_way_channel_rolestringAn optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages. (pattern: <code>arn:\S+</code>)
two_way_enabledbooleanWhen set to true you can receive incoming text messages from your end recipients using the TwoWayChannelArn.
two_way_media_s3_bucket_namestringThe name of the S3 bucket where inbound RCS media files are stored. (pattern: <code>[a-z0-9][a-z0-9.-]*[a-z0-9]</code>)
two_way_media_s3_key_prefixstringThe key prefix used for inbound RCS media objects in the S3 bucket. (pattern: <code>[\S]+</code>)
two_way_media_s3_rolestringThe ARN of the IAM role used to write inbound RCS media files to the S3 bucket. (pattern: <code>arn:\S+</code>)
two_way_rcs_events_enabledarrayThe list of RCS event types enabled for two-way messaging on the agent.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_rcs_agentsselectregionRetrieves the specified RCS agents or all RCS agents associated with your Amazon Web Services account. If you specify RCS agent IDs, the output includes information for only the specified RCS agents. If you specify filters, the output includes information for only those RCS agents that meet the filter criteria. If you don't specify RCS agent IDs or filters, the output includes information for all RCS agents.
create_rcs_agentinsertregionCreates a new RCS agent for sending rich messages through the RCS channel. The RCS agent serves as an origination identity for sending RCS messages to your recipients.
update_rcs_agentupdateregion, RcsAgentIdUpdates the configuration of an existing RCS agent. You can update the opt-out list, deletion protection, two-way messaging settings, and self-managed opt-outs configuration.
delete_rcs_agentdeleteregionDeletes an existing RCS agent. If deletion protection is enabled, an error is returned.

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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the specified RCS agents or all RCS agents associated with your Amazon Web Services account. If you specify RCS agent IDs, the output includes information for only the specified RCS agents. If you specify filters, the output includes information for only those RCS agents that meet the filter criteria. If you don't specify RCS agent IDs or filters, the output includes information for all RCS agents.

SELECT
created_timestamp,
deletion_protection_enabled,
opt_out_list_name,
pool_id,
rcs_agent_arn,
rcs_agent_id,
self_managed_opt_outs_enabled,
status,
testing_agent,
two_way_channel_arn,
two_way_channel_role,
two_way_enabled,
two_way_media_s3_bucket_name,
two_way_media_s3_key_prefix,
two_way_media_s3_role,
two_way_rcs_events_enabled
FROM aws.pinpoint_sms_voice_v2.rcs_agents
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a new RCS agent for sending rich messages through the RCS channel. The RCS agent serves as an origination identity for sending RCS messages to your recipients.

INSERT INTO aws.pinpoint_sms_voice_v2.rcs_agents (
DeletionProtectionEnabled,
OptOutListName,
Tags,
ClientToken,
region
)
SELECT
{{ DeletionProtectionEnabled }},
'{{ OptOutListName }}',
'{{ Tags }}',
'{{ ClientToken }}',
'{{ region }}'
RETURNING
created_timestamp,
deletion_protection_enabled,
opt_out_list_name,
rcs_agent_arn,
rcs_agent_id,
self_managed_opt_outs_enabled,
status,
tags,
two_way_channel_arn,
two_way_channel_role,
two_way_enabled,
two_way_media_s3_bucket_name,
two_way_media_s3_key_prefix,
two_way_media_s3_role,
two_way_rcs_events_enabled
;

UPDATE examples

Updates the configuration of an existing RCS agent. You can update the opt-out list, deletion protection, two-way messaging settings, and self-managed opt-outs configuration.

UPDATE aws.pinpoint_sms_voice_v2.rcs_agents
SET
RcsAgentId = '{{ RcsAgentId }}',
DeletionProtectionEnabled = {{ DeletionProtectionEnabled }},
OptOutListName = '{{ OptOutListName }}',
SelfManagedOptOutsEnabled = {{ SelfManagedOptOutsEnabled }},
TwoWayChannelArn = '{{ TwoWayChannelArn }}',
TwoWayChannelRole = '{{ TwoWayChannelRole }}',
TwoWayEnabled = {{ TwoWayEnabled }},
TwoWayMediaS3BucketName = '{{ TwoWayMediaS3BucketName }}',
TwoWayMediaS3KeyPrefix = '{{ TwoWayMediaS3KeyPrefix }}',
TwoWayMediaS3Role = '{{ TwoWayMediaS3Role }}',
TwoWayRcsEventsEnabled = '{{ TwoWayRcsEventsEnabled }}'
WHERE
region = '{{ region }}' --required
AND RcsAgentId = '{{ RcsAgentId }}' --required
RETURNING
created_timestamp,
deletion_protection_enabled,
opt_out_list_name,
rcs_agent_arn,
rcs_agent_id,
self_managed_opt_outs_enabled,
status,
two_way_channel_arn,
two_way_channel_role,
two_way_enabled,
two_way_media_s3_bucket_name,
two_way_media_s3_key_prefix,
two_way_media_s3_role,
two_way_rcs_events_enabled;

DELETE examples

Deletes an existing RCS agent. If deletion protection is enabled, an error is returned.

DELETE FROM aws.pinpoint_sms_voice_v2.rcs_agents
WHERE region = '{{ region }}' --required
;