pub struct Client<C = DynConnector, M = DefaultMiddleware, R = Standard> { /* private fields */ }
Expand description

Client for Amazon Pinpoint

Client for invoking operations on Amazon Pinpoint. Each operation on Amazon Pinpoint is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

Examples

Constructing a client and invoking an operation

    // create a shared configuration. This can be used & shared between multiple service clients.
    let shared_config = aws_config::load_from_env().await;
    let client = aws_sdk_pinpoint::Client::new(&shared_config);
    // invoke an operation
    /* let rsp = client
        .<operation_name>().
        .<param>("some value")
        .send().await; */

Constructing a client with custom configuration

use aws_config::RetryConfig;
    let shared_config = aws_config::load_from_env().await;
    let config = aws_sdk_pinpoint::config::Builder::from(&shared_config)
        .retry_config(RetryConfig::disabled())
        .build();
    let client = aws_sdk_pinpoint::Client::from_conf(config);

Implementations

Creates a client with the given service configuration.

Returns the client’s configuration.

Constructs a fluent builder for the CreateApp operation.

Constructs a fluent builder for the CreateCampaign operation.

Constructs a fluent builder for the CreateEmailTemplate operation.

Constructs a fluent builder for the CreateExportJob operation.

Constructs a fluent builder for the CreateImportJob operation.

Constructs a fluent builder for the CreateInAppTemplate operation.

Constructs a fluent builder for the CreateJourney operation.

Constructs a fluent builder for the CreatePushTemplate operation.

Constructs a fluent builder for the CreateRecommenderConfiguration operation.

Constructs a fluent builder for the CreateSegment operation.

Constructs a fluent builder for the CreateSmsTemplate operation.

Constructs a fluent builder for the CreateVoiceTemplate operation.

Constructs a fluent builder for the DeleteAdmChannel operation.

Constructs a fluent builder for the DeleteApnsChannel operation.

Constructs a fluent builder for the DeleteApnsSandboxChannel operation.

Constructs a fluent builder for the DeleteApnsVoipChannel operation.

Constructs a fluent builder for the DeleteApnsVoipSandboxChannel operation.

Constructs a fluent builder for the DeleteApp operation.

Constructs a fluent builder for the DeleteBaiduChannel operation.

Constructs a fluent builder for the DeleteCampaign operation.

Constructs a fluent builder for the DeleteEmailChannel operation.

Constructs a fluent builder for the DeleteEmailTemplate operation.

  • The fluent builder is configurable:
    • template_name(impl Into<String>) / set_template_name(Option<String>):

      The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.

    • version(impl Into<String>) / set_version(Option<String>):

      The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.

      If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don’t occur.

      If you don’t specify a value for this parameter, Amazon Pinpoint does the following:

      • For a get operation, retrieves information about the active version of the template.

      • For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn’t used or is set to false.

      • For a delete operation, deletes the template, including all versions of the template.

  • On success, responds with DeleteEmailTemplateOutput with field(s):
  • On failure, responds with SdkError<DeleteEmailTemplateError>

Constructs a fluent builder for the DeleteEndpoint operation.

Constructs a fluent builder for the DeleteEventStream operation.

Constructs a fluent builder for the DeleteGcmChannel operation.

Constructs a fluent builder for the DeleteInAppTemplate operation.

  • The fluent builder is configurable:
    • template_name(impl Into<String>) / set_template_name(Option<String>):

      The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.

    • version(impl Into<String>) / set_version(Option<String>):

      The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.

      If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don’t occur.

      If you don’t specify a value for this parameter, Amazon Pinpoint does the following:

      • For a get operation, retrieves information about the active version of the template.

      • For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn’t used or is set to false.

      • For a delete operation, deletes the template, including all versions of the template.

  • On success, responds with DeleteInAppTemplateOutput with field(s):
  • On failure, responds with SdkError<DeleteInAppTemplateError>

Constructs a fluent builder for the DeleteJourney operation.

Constructs a fluent builder for the DeletePushTemplate operation.

  • The fluent builder is configurable:
    • template_name(impl Into<String>) / set_template_name(Option<String>):

      The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.

    • version(impl Into<String>) / set_version(Option<String>):

      The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.

      If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don’t occur.

      If you don’t specify a value for this parameter, Amazon Pinpoint does the following:

      • For a get operation, retrieves information about the active version of the template.

      • For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn’t used or is set to false.

      • For a delete operation, deletes the template, including all versions of the template.

  • On success, responds with DeletePushTemplateOutput with field(s):
  • On failure, responds with SdkError<DeletePushTemplateError>

Constructs a fluent builder for the DeleteRecommenderConfiguration operation.

Constructs a fluent builder for the DeleteSegment operation.

Constructs a fluent builder for the DeleteSmsChannel operation.

Constructs a fluent builder for the DeleteSmsTemplate operation.

  • The fluent builder is configurable:
    • template_name(impl Into<String>) / set_template_name(Option<String>):

      The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.

    • version(impl Into<String>) / set_version(Option<String>):

      The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.

      If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don’t occur.

      If you don’t specify a value for this parameter, Amazon Pinpoint does the following:

      • For a get operation, retrieves information about the active version of the template.

      • For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn’t used or is set to false.

      • For a delete operation, deletes the template, including all versions of the template.

  • On success, responds with DeleteSmsTemplateOutput with field(s):
  • On failure, responds with SdkError<DeleteSmsTemplateError>

Constructs a fluent builder for the DeleteUserEndpoints operation.

Constructs a fluent builder for the DeleteVoiceChannel operation.

Constructs a fluent builder for the DeleteVoiceTemplate operation.

  • The fluent builder is configurable:
    • template_name(impl Into<String>) / set_template_name(Option<String>):

      The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.

    • version(impl Into<String>) / set_version(Option<String>):

      The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.

      If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don’t occur.

      If you don’t specify a value for this parameter, Amazon Pinpoint does the following:

      • For a get operation, retrieves information about the active version of the template.

      • For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn’t used or is set to false.

      • For a delete operation, deletes the template, including all versions of the template.

  • On success, responds with DeleteVoiceTemplateOutput with field(s):
  • On failure, responds with SdkError<DeleteVoiceTemplateError>

Constructs a fluent builder for the GetAdmChannel operation.

Constructs a fluent builder for the GetApnsChannel operation.

Constructs a fluent builder for the GetApnsSandboxChannel operation.

Constructs a fluent builder for the GetApnsVoipChannel operation.

Constructs a fluent builder for the GetApnsVoipSandboxChannel operation.

Constructs a fluent builder for the GetApp operation.

Constructs a fluent builder for the GetApplicationDateRangeKpi operation.

Constructs a fluent builder for the GetApplicationSettings operation.

Constructs a fluent builder for the GetApps operation.

Constructs a fluent builder for the GetBaiduChannel operation.

Constructs a fluent builder for the GetCampaign operation.

Constructs a fluent builder for the GetCampaignActivities operation.

Constructs a fluent builder for the GetCampaignDateRangeKpi operation.

Constructs a fluent builder for the GetCampaigns operation.

Constructs a fluent builder for the GetCampaignVersion operation.

Constructs a fluent builder for the GetCampaignVersions operation.

Constructs a fluent builder for the GetChannels operation.

Constructs a fluent builder for the GetEmailChannel operation.

Constructs a fluent builder for the GetEmailTemplate operation.

  • The fluent builder is configurable:
    • template_name(impl Into<String>) / set_template_name(Option<String>):

      The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.

    • version(impl Into<String>) / set_version(Option<String>):

      The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.

      If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don’t occur.

      If you don’t specify a value for this parameter, Amazon Pinpoint does the following:

      • For a get operation, retrieves information about the active version of the template.

      • For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn’t used or is set to false.

      • For a delete operation, deletes the template, including all versions of the template.

  • On success, responds with GetEmailTemplateOutput with field(s):
  • On failure, responds with SdkError<GetEmailTemplateError>

Constructs a fluent builder for the GetEndpoint operation.

Constructs a fluent builder for the GetEventStream operation.

Constructs a fluent builder for the GetExportJob operation.

Constructs a fluent builder for the GetExportJobs operation.

Constructs a fluent builder for the GetGcmChannel operation.

Constructs a fluent builder for the GetImportJob operation.

Constructs a fluent builder for the GetImportJobs operation.

Constructs a fluent builder for the GetInAppMessages operation.

Constructs a fluent builder for the GetInAppTemplate operation.

  • The fluent builder is configurable:
    • template_name(impl Into<String>) / set_template_name(Option<String>):

      The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.

    • version(impl Into<String>) / set_version(Option<String>):

      The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.

      If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don’t occur.

      If you don’t specify a value for this parameter, Amazon Pinpoint does the following:

      • For a get operation, retrieves information about the active version of the template.

      • For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn’t used or is set to false.

      • For a delete operation, deletes the template, including all versions of the template.

  • On success, responds with GetInAppTemplateOutput with field(s):
  • On failure, responds with SdkError<GetInAppTemplateError>

Constructs a fluent builder for the GetJourney operation.

Constructs a fluent builder for the GetJourneyDateRangeKpi operation.

Constructs a fluent builder for the GetJourneyExecutionActivityMetrics operation.

Constructs a fluent builder for the GetJourneyExecutionMetrics operation.

Constructs a fluent builder for the GetPushTemplate operation.

  • The fluent builder is configurable:
    • template_name(impl Into<String>) / set_template_name(Option<String>):

      The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.

    • version(impl Into<String>) / set_version(Option<String>):

      The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.

      If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don’t occur.

      If you don’t specify a value for this parameter, Amazon Pinpoint does the following:

      • For a get operation, retrieves information about the active version of the template.

      • For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn’t used or is set to false.

      • For a delete operation, deletes the template, including all versions of the template.

  • On success, responds with GetPushTemplateOutput with field(s):
  • On failure, responds with SdkError<GetPushTemplateError>

Constructs a fluent builder for the GetRecommenderConfiguration operation.

Constructs a fluent builder for the GetRecommenderConfigurations operation.

Constructs a fluent builder for the GetSegment operation.

Constructs a fluent builder for the GetSegmentExportJobs operation.

Constructs a fluent builder for the GetSegmentImportJobs operation.

Constructs a fluent builder for the GetSegments operation.

Constructs a fluent builder for the GetSegmentVersion operation.

Constructs a fluent builder for the GetSegmentVersions operation.

Constructs a fluent builder for the GetSmsChannel operation.

Constructs a fluent builder for the GetSmsTemplate operation.

  • The fluent builder is configurable:
    • template_name(impl Into<String>) / set_template_name(Option<String>):

      The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.

    • version(impl Into<String>) / set_version(Option<String>):

      The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.

      If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don’t occur.

      If you don’t specify a value for this parameter, Amazon Pinpoint does the following:

      • For a get operation, retrieves information about the active version of the template.

      • For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn’t used or is set to false.

      • For a delete operation, deletes the template, including all versions of the template.

  • On success, responds with GetSmsTemplateOutput with field(s):
  • On failure, responds with SdkError<GetSmsTemplateError>

Constructs a fluent builder for the GetUserEndpoints operation.

Constructs a fluent builder for the GetVoiceChannel operation.

Constructs a fluent builder for the GetVoiceTemplate operation.

  • The fluent builder is configurable:
    • template_name(impl Into<String>) / set_template_name(Option<String>):

      The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.

    • version(impl Into<String>) / set_version(Option<String>):

      The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.

      If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don’t occur.

      If you don’t specify a value for this parameter, Amazon Pinpoint does the following:

      • For a get operation, retrieves information about the active version of the template.

      • For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn’t used or is set to false.

      • For a delete operation, deletes the template, including all versions of the template.

  • On success, responds with GetVoiceTemplateOutput with field(s):
  • On failure, responds with SdkError<GetVoiceTemplateError>

Constructs a fluent builder for the ListJourneys operation.

Constructs a fluent builder for the ListTagsForResource operation.

Constructs a fluent builder for the ListTemplates operation.

Constructs a fluent builder for the ListTemplateVersions operation.

Constructs a fluent builder for the PhoneNumberValidate operation.

Constructs a fluent builder for the PutEvents operation.

Constructs a fluent builder for the PutEventStream operation.

Constructs a fluent builder for the RemoveAttributes operation.

Constructs a fluent builder for the SendMessages operation.

Constructs a fluent builder for the SendOTPMessage operation.

Constructs a fluent builder for the SendUsersMessages operation.

Constructs a fluent builder for the TagResource operation.

Constructs a fluent builder for the UntagResource operation.

Constructs a fluent builder for the UpdateAdmChannel operation.

Constructs a fluent builder for the UpdateApnsChannel operation.

Constructs a fluent builder for the UpdateApnsSandboxChannel operation.

Constructs a fluent builder for the UpdateApnsVoipChannel operation.

Constructs a fluent builder for the UpdateApnsVoipSandboxChannel operation.

Constructs a fluent builder for the UpdateApplicationSettings operation.

Constructs a fluent builder for the UpdateBaiduChannel operation.

Constructs a fluent builder for the UpdateCampaign operation.

Constructs a fluent builder for the UpdateEmailChannel operation.

Constructs a fluent builder for the UpdateEmailTemplate operation.

  • The fluent builder is configurable:
    • create_new_version(bool) / set_create_new_version(bool):

      Specifies whether to save the updates as a new version of the message template. Valid values are: true, save the updates as a new version; and, false, save the updates to (overwrite) the latest existing version of the template.

      If you don’t specify a value for this parameter, Amazon Pinpoint saves the updates to (overwrites) the latest existing version of the template. If you specify a value of true for this parameter, don’t specify a value for the version parameter. Otherwise, an error will occur.

    • email_template_request(EmailTemplateRequest) / set_email_template_request(Option<EmailTemplateRequest>):

      Specifies the content and settings for a message template that can be used in messages that are sent through the email channel.

    • template_name(impl Into<String>) / set_template_name(Option<String>):

      The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.

    • version(impl Into<String>) / set_version(Option<String>):

      The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.

      If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don’t occur.

      If you don’t specify a value for this parameter, Amazon Pinpoint does the following:

      • For a get operation, retrieves information about the active version of the template.

      • For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn’t used or is set to false.

      • For a delete operation, deletes the template, including all versions of the template.

  • On success, responds with UpdateEmailTemplateOutput with field(s):
  • On failure, responds with SdkError<UpdateEmailTemplateError>

Constructs a fluent builder for the UpdateEndpoint operation.

Constructs a fluent builder for the UpdateEndpointsBatch operation.

Constructs a fluent builder for the UpdateGcmChannel operation.

Constructs a fluent builder for the UpdateInAppTemplate operation.

  • The fluent builder is configurable:
    • create_new_version(bool) / set_create_new_version(bool):

      Specifies whether to save the updates as a new version of the message template. Valid values are: true, save the updates as a new version; and, false, save the updates to (overwrite) the latest existing version of the template.

      If you don’t specify a value for this parameter, Amazon Pinpoint saves the updates to (overwrites) the latest existing version of the template. If you specify a value of true for this parameter, don’t specify a value for the version parameter. Otherwise, an error will occur.

    • in_app_template_request(InAppTemplateRequest) / set_in_app_template_request(Option<InAppTemplateRequest>):

      InApp Template Request.

    • template_name(impl Into<String>) / set_template_name(Option<String>):

      The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.

    • version(impl Into<String>) / set_version(Option<String>):

      The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.

      If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don’t occur.

      If you don’t specify a value for this parameter, Amazon Pinpoint does the following:

      • For a get operation, retrieves information about the active version of the template.

      • For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn’t used or is set to false.

      • For a delete operation, deletes the template, including all versions of the template.

  • On success, responds with UpdateInAppTemplateOutput with field(s):
  • On failure, responds with SdkError<UpdateInAppTemplateError>

Constructs a fluent builder for the UpdateJourney operation.

Constructs a fluent builder for the UpdateJourneyState operation.

Constructs a fluent builder for the UpdatePushTemplate operation.

  • The fluent builder is configurable:
    • create_new_version(bool) / set_create_new_version(bool):

      Specifies whether to save the updates as a new version of the message template. Valid values are: true, save the updates as a new version; and, false, save the updates to (overwrite) the latest existing version of the template.

      If you don’t specify a value for this parameter, Amazon Pinpoint saves the updates to (overwrites) the latest existing version of the template. If you specify a value of true for this parameter, don’t specify a value for the version parameter. Otherwise, an error will occur.

    • push_notification_template_request(PushNotificationTemplateRequest) / set_push_notification_template_request(Option<PushNotificationTemplateRequest>):

      Specifies the content and settings for a message template that can be used in messages that are sent through a push notification channel.

    • template_name(impl Into<String>) / set_template_name(Option<String>):

      The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.

    • version(impl Into<String>) / set_version(Option<String>):

      The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.

      If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don’t occur.

      If you don’t specify a value for this parameter, Amazon Pinpoint does the following:

      • For a get operation, retrieves information about the active version of the template.

      • For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn’t used or is set to false.

      • For a delete operation, deletes the template, including all versions of the template.

  • On success, responds with UpdatePushTemplateOutput with field(s):
  • On failure, responds with SdkError<UpdatePushTemplateError>

Constructs a fluent builder for the UpdateRecommenderConfiguration operation.

Constructs a fluent builder for the UpdateSegment operation.

Constructs a fluent builder for the UpdateSmsChannel operation.

Constructs a fluent builder for the UpdateSmsTemplate operation.

  • The fluent builder is configurable:
    • create_new_version(bool) / set_create_new_version(bool):

      Specifies whether to save the updates as a new version of the message template. Valid values are: true, save the updates as a new version; and, false, save the updates to (overwrite) the latest existing version of the template.

      If you don’t specify a value for this parameter, Amazon Pinpoint saves the updates to (overwrites) the latest existing version of the template. If you specify a value of true for this parameter, don’t specify a value for the version parameter. Otherwise, an error will occur.

    • sms_template_request(SmsTemplateRequest) / set_sms_template_request(Option<SmsTemplateRequest>):

      Specifies the content and settings for a message template that can be used in text messages that are sent through the SMS channel.

    • template_name(impl Into<String>) / set_template_name(Option<String>):

      The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.

    • version(impl Into<String>) / set_version(Option<String>):

      The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.

      If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don’t occur.

      If you don’t specify a value for this parameter, Amazon Pinpoint does the following:

      • For a get operation, retrieves information about the active version of the template.

      • For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn’t used or is set to false.

      • For a delete operation, deletes the template, including all versions of the template.

  • On success, responds with UpdateSmsTemplateOutput with field(s):
  • On failure, responds with SdkError<UpdateSmsTemplateError>

Constructs a fluent builder for the UpdateTemplateActiveVersion operation.

Constructs a fluent builder for the UpdateVoiceChannel operation.

Constructs a fluent builder for the UpdateVoiceTemplate operation.

  • The fluent builder is configurable:
    • create_new_version(bool) / set_create_new_version(bool):

      Specifies whether to save the updates as a new version of the message template. Valid values are: true, save the updates as a new version; and, false, save the updates to (overwrite) the latest existing version of the template.

      If you don’t specify a value for this parameter, Amazon Pinpoint saves the updates to (overwrites) the latest existing version of the template. If you specify a value of true for this parameter, don’t specify a value for the version parameter. Otherwise, an error will occur.

    • template_name(impl Into<String>) / set_template_name(Option<String>):

      The name of the message template. A template name must start with an alphanumeric character and can contain a maximum of 128 characters. The characters can be alphanumeric characters, underscores (_), or hyphens (-). Template names are case sensitive.

    • version(impl Into<String>) / set_version(Option<String>):

      The unique identifier for the version of the message template to update, retrieve information about, or delete. To retrieve identifiers and other information for all the versions of a template, use the Template Versions resource.

      If specified, this value must match the identifier for an existing template version. If specified for an update operation, this value must match the identifier for the latest existing version of the template. This restriction helps ensure that race conditions don’t occur.

      If you don’t specify a value for this parameter, Amazon Pinpoint does the following:

      • For a get operation, retrieves information about the active version of the template.

      • For an update operation, saves the updates to (overwrites) the latest existing version of the template, if the create-new-version parameter isn’t used or is set to false.

      • For a delete operation, deletes the template, including all versions of the template.

    • voice_template_request(VoiceTemplateRequest) / set_voice_template_request(Option<VoiceTemplateRequest>):

      Specifies the content and settings for a message template that can be used in messages that are sent through the voice channel.

  • On success, responds with UpdateVoiceTemplateOutput with field(s):
  • On failure, responds with SdkError<UpdateVoiceTemplateError>

Constructs a fluent builder for the VerifyOTPMessage operation.

Creates a client with the given service config and connector override.

Creates a new client from a shared config.

Creates a new client from the service Config.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more