update_rcs_agent
async
¶
update_rcs_agent(
rcs_agent_id: RcsAgentIdOrArn,
*,
config_overrides: Optional[AsyncPinpointSMSVoiceV2ClientConfig] = 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/async_pinpoint_sms_voice_v2.py
7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 7508 7509 7510 7511 7512 7513 7514 7515 | |