update_rcs_agent
¶
update_rcs_agent(
rcs_agent_id: RcsAgentIdOrArn,
*,
config_overrides: Optional[PinpointSMSVoiceV2ClientConfig] = None,
deletion_protection_enabled: Optional[bool] = None,
opt_out_list_name: Optional[OptOutListNameOrArn] = None,
self_managed_opt_outs_enabled: Optional[bool] = None,
two_way_channel_arn: Optional[TwoWayChannelArn] = None,
two_way_channel_role: Optional[IamRoleArn] = None,
two_way_enabled: Optional[bool] = None,
two_way_media_s3_bucket_name: Optional[TwoWayMediaS3BucketNameOrUnset] = None,
two_way_media_s3_key_prefix: Optional[TwoWayMediaS3KeyPrefix] = None,
two_way_media_s3_role: Optional[IamRoleArnOrUnset] = None,
two_way_rcs_events_enabled: Optional[RcsEventTypeList] = None,
) -> UpdateRcsAgentResult
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.
Parameters:
-
rcs_agent_id(RcsAgentIdOrArn) –The unique identifier of the RCS agent to update. You can use either the RcsAgentId or RcsAgentArn.
-
deletion_protection_enabled(Optional[bool], default:None) –By default this is set to false. When set to true the RCS agent can't be deleted.
-
opt_out_list_name(Optional[OptOutListNameOrArn], default:None) –The OptOutList to associate with the RCS agent. Valid values are either OptOutListName or OptOutListArn.
-
self_managed_opt_outs_enabled(Optional[bool], default:None) –By default this is set to false. When set to true you're responsible for responding to HELP and STOP requests. You're also responsible for tracking and honoring opt-out requests.
-
two_way_channel_arn(Optional[TwoWayChannelArn], default:None) –The Amazon Resource Name (ARN) of the two way channel.
-
two_way_channel_role(Optional[IamRoleArn], default:None) –An optional IAM Role Arn for a service to assume, to be able to post inbound SMS messages.
-
two_way_enabled(Optional[bool], default:None) –By default this is set to false. When set to true you can receive incoming text messages from your end recipients.
-
two_way_media_s3_bucket_name(Optional[TwoWayMediaS3BucketNameOrUnset], default:None) –The name of the S3 bucket where inbound RCS media files are stored. Two-way messaging must be enabled on the agent. To remove the media configuration, pass the sentinel value
UNSET_RCS_MEDIA_CONFIGURATIONfor both this field and TwoWayMediaS3Role. -
two_way_media_s3_key_prefix(Optional[TwoWayMediaS3KeyPrefix], default:None) –The key prefix used for inbound RCS media objects in the S3 bucket.
-
two_way_media_s3_role(Optional[IamRoleArnOrUnset], default:None) –The ARN of the IAM role used to write inbound RCS media files to the S3 bucket. The role must have
s3:PutObjectpermission on the bucket and a trust policy allowingsms-voice.amazonaws.comto assume it. To remove the media configuration, pass the sentinel valueUNSET_RCS_MEDIA_CONFIGURATIONfor both this field and TwoWayMediaS3BucketName. -
two_way_rcs_events_enabled(Optional[RcsEventTypeList], default:None) –The list of RCS event types to enable for two-way messaging. Pass an empty list to disable all event types. The special value
ALLenables all current and future event types and must be the sole element if used.
Raises:
-
AccessDeniedException–The request was denied because you don't have sufficient permissions to access the resource.
-
ConflictException–Your request has conflicting operations. This can occur if you're trying to perform more than one operation on the same resource at the same time or it could be that the requested action isn't valid for the current state or configuration of the resource.
-
InternalServerException–The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.
-
ResourceNotFoundException–A requested resource couldn't be found.
-
ThrottlingException–An error that occurred because too many requests were sent during a certain amount of time.
-
ValidationException–A validation exception for a field.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_pinpoint_sms_voice_v2/_services/pinpoint_sms_voice_v2.py
7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 | |