Struct aws_sdk_pinpoint::Client

source ·
pub struct Client { /* 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.

§Constructing a Client

A Config is required to construct a client. For most use cases, the aws-config crate should be used to automatically resolve this config using aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared across multiple different AWS SDK clients. This config resolution process can be customized by calling aws_config::from_env() instead, which returns a ConfigLoader that uses the builder pattern to customize the default config.

In the simplest case, creating a client looks as follows:

let config = aws_config::load_from_env().await;
let client = aws_sdk_pinpoint::Client::new(&config);

Occasionally, SDKs may have additional service-specific values that can be set on the Config that is absent from SdkConfig, or slightly different settings for a specific client may be desired. The Config struct implements From<&SdkConfig>, so setting these specific settings can be done as follows:

let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_pinpoint::config::Builder::from(&sdk_config)
    .some_service_specific_setting("value")
    .build();

See the aws-config docs and Config for more information on customizing configuration.

Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.

§Using the Client

A client has a function for every operation that can be performed by the service. For example, the CreateCampaign operation has a Client::create_campaign, function which returns a builder for that operation. The fluent builder ultimately has a send() function that returns an async future that returns a result, as illustrated below:

let result = client.create_campaign()
    .application_id("example")
    .send()
    .await;

The underlying HTTP requests that get made by this can be modified with the customize_operation function on the fluent builder. See the customize module for more information.

Implementations§

source§

impl Client

source

pub fn create_app(&self) -> CreateAppFluentBuilder

Constructs a fluent builder for the CreateApp operation.

source§

impl Client

source

pub fn create_campaign(&self) -> CreateCampaignFluentBuilder

Constructs a fluent builder for the CreateCampaign operation.

source§

impl Client

source

pub fn create_email_template(&self) -> CreateEmailTemplateFluentBuilder

Constructs a fluent builder for the CreateEmailTemplate operation.

source§

impl Client

source

pub fn create_export_job(&self) -> CreateExportJobFluentBuilder

Constructs a fluent builder for the CreateExportJob operation.

source§

impl Client

source

pub fn create_import_job(&self) -> CreateImportJobFluentBuilder

Constructs a fluent builder for the CreateImportJob operation.

source§

impl Client

source

pub fn create_in_app_template(&self) -> CreateInAppTemplateFluentBuilder

Constructs a fluent builder for the CreateInAppTemplate operation.

source§

impl Client

source

pub fn create_journey(&self) -> CreateJourneyFluentBuilder

Constructs a fluent builder for the CreateJourney operation.

source§

impl Client

source

pub fn create_push_template(&self) -> CreatePushTemplateFluentBuilder

Constructs a fluent builder for the CreatePushTemplate operation.

source§

impl Client

source

pub fn create_recommender_configuration( &self ) -> CreateRecommenderConfigurationFluentBuilder

Constructs a fluent builder for the CreateRecommenderConfiguration operation.

source§

impl Client

source

pub fn create_segment(&self) -> CreateSegmentFluentBuilder

Constructs a fluent builder for the CreateSegment operation.

source§

impl Client

source

pub fn create_sms_template(&self) -> CreateSmsTemplateFluentBuilder

Constructs a fluent builder for the CreateSmsTemplate operation.

source§

impl Client

source

pub fn create_voice_template(&self) -> CreateVoiceTemplateFluentBuilder

Constructs a fluent builder for the CreateVoiceTemplate operation.

source§

impl Client

source

pub fn delete_adm_channel(&self) -> DeleteAdmChannelFluentBuilder

Constructs a fluent builder for the DeleteAdmChannel operation.

source§

impl Client

source

pub fn delete_apns_channel(&self) -> DeleteApnsChannelFluentBuilder

Constructs a fluent builder for the DeleteApnsChannel operation.

source§

impl Client

source

pub fn delete_apns_sandbox_channel( &self ) -> DeleteApnsSandboxChannelFluentBuilder

Constructs a fluent builder for the DeleteApnsSandboxChannel operation.

source§

impl Client

source

pub fn delete_apns_voip_channel(&self) -> DeleteApnsVoipChannelFluentBuilder

Constructs a fluent builder for the DeleteApnsVoipChannel operation.

source§

impl Client

source

pub fn delete_apns_voip_sandbox_channel( &self ) -> DeleteApnsVoipSandboxChannelFluentBuilder

Constructs a fluent builder for the DeleteApnsVoipSandboxChannel operation.

source§

impl Client

source

pub fn delete_app(&self) -> DeleteAppFluentBuilder

Constructs a fluent builder for the DeleteApp operation.

source§

impl Client

source

pub fn delete_baidu_channel(&self) -> DeleteBaiduChannelFluentBuilder

Constructs a fluent builder for the DeleteBaiduChannel operation.

source§

impl Client

source

pub fn delete_campaign(&self) -> DeleteCampaignFluentBuilder

Constructs a fluent builder for the DeleteCampaign operation.

source§

impl Client

source

pub fn delete_email_channel(&self) -> DeleteEmailChannelFluentBuilder

Constructs a fluent builder for the DeleteEmailChannel operation.

source§

impl Client

source

pub fn delete_email_template(&self) -> DeleteEmailTemplateFluentBuilder

Constructs a fluent builder for the DeleteEmailTemplate operation.

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

      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>):
      required: false

      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>
source§

impl Client

source

pub fn delete_endpoint(&self) -> DeleteEndpointFluentBuilder

Constructs a fluent builder for the DeleteEndpoint operation.

source§

impl Client

source

pub fn delete_event_stream(&self) -> DeleteEventStreamFluentBuilder

Constructs a fluent builder for the DeleteEventStream operation.

source§

impl Client

source

pub fn delete_gcm_channel(&self) -> DeleteGcmChannelFluentBuilder

Constructs a fluent builder for the DeleteGcmChannel operation.

source§

impl Client

source

pub fn delete_in_app_template(&self) -> DeleteInAppTemplateFluentBuilder

Constructs a fluent builder for the DeleteInAppTemplate operation.

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

      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>):
      required: false

      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>
source§

impl Client

source

pub fn delete_journey(&self) -> DeleteJourneyFluentBuilder

Constructs a fluent builder for the DeleteJourney operation.

source§

impl Client

source

pub fn delete_push_template(&self) -> DeletePushTemplateFluentBuilder

Constructs a fluent builder for the DeletePushTemplate operation.

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

      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>):
      required: false

      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>
source§

impl Client

source

pub fn delete_recommender_configuration( &self ) -> DeleteRecommenderConfigurationFluentBuilder

Constructs a fluent builder for the DeleteRecommenderConfiguration operation.

source§

impl Client

source

pub fn delete_segment(&self) -> DeleteSegmentFluentBuilder

Constructs a fluent builder for the DeleteSegment operation.

source§

impl Client

source

pub fn delete_sms_channel(&self) -> DeleteSmsChannelFluentBuilder

Constructs a fluent builder for the DeleteSmsChannel operation.

source§

impl Client

source

pub fn delete_sms_template(&self) -> DeleteSmsTemplateFluentBuilder

Constructs a fluent builder for the DeleteSmsTemplate operation.

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

      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>):
      required: false

      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>
source§

impl Client

source

pub fn delete_user_endpoints(&self) -> DeleteUserEndpointsFluentBuilder

Constructs a fluent builder for the DeleteUserEndpoints operation.

source§

impl Client

source

pub fn delete_voice_channel(&self) -> DeleteVoiceChannelFluentBuilder

Constructs a fluent builder for the DeleteVoiceChannel operation.

source§

impl Client

source

pub fn delete_voice_template(&self) -> DeleteVoiceTemplateFluentBuilder

Constructs a fluent builder for the DeleteVoiceTemplate operation.

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

      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>):
      required: false

      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>
source§

impl Client

source

pub fn get_adm_channel(&self) -> GetAdmChannelFluentBuilder

Constructs a fluent builder for the GetAdmChannel operation.

source§

impl Client

source

pub fn get_apns_channel(&self) -> GetApnsChannelFluentBuilder

Constructs a fluent builder for the GetApnsChannel operation.

source§

impl Client

source

pub fn get_apns_sandbox_channel(&self) -> GetApnsSandboxChannelFluentBuilder

Constructs a fluent builder for the GetApnsSandboxChannel operation.

source§

impl Client

source

pub fn get_apns_voip_channel(&self) -> GetApnsVoipChannelFluentBuilder

Constructs a fluent builder for the GetApnsVoipChannel operation.

source§

impl Client

source

pub fn get_apns_voip_sandbox_channel( &self ) -> GetApnsVoipSandboxChannelFluentBuilder

Constructs a fluent builder for the GetApnsVoipSandboxChannel operation.

source§

impl Client

source

pub fn get_app(&self) -> GetAppFluentBuilder

Constructs a fluent builder for the GetApp operation.

source§

impl Client

source

pub fn get_application_date_range_kpi( &self ) -> GetApplicationDateRangeKpiFluentBuilder

Constructs a fluent builder for the GetApplicationDateRangeKpi operation.

source§

impl Client

source

pub fn get_application_settings(&self) -> GetApplicationSettingsFluentBuilder

Constructs a fluent builder for the GetApplicationSettings operation.

source§

impl Client

source

pub fn get_apps(&self) -> GetAppsFluentBuilder

Constructs a fluent builder for the GetApps operation.

source§

impl Client

source

pub fn get_baidu_channel(&self) -> GetBaiduChannelFluentBuilder

Constructs a fluent builder for the GetBaiduChannel operation.

source§

impl Client

source

pub fn get_campaign(&self) -> GetCampaignFluentBuilder

Constructs a fluent builder for the GetCampaign operation.

source§

impl Client

source

pub fn get_campaign_activities(&self) -> GetCampaignActivitiesFluentBuilder

Constructs a fluent builder for the GetCampaignActivities operation.

source§

impl Client

source

pub fn get_campaign_date_range_kpi( &self ) -> GetCampaignDateRangeKpiFluentBuilder

Constructs a fluent builder for the GetCampaignDateRangeKpi operation.

source§

impl Client

source

pub fn get_campaign_version(&self) -> GetCampaignVersionFluentBuilder

Constructs a fluent builder for the GetCampaignVersion operation.

source§

impl Client

source

pub fn get_campaign_versions(&self) -> GetCampaignVersionsFluentBuilder

Constructs a fluent builder for the GetCampaignVersions operation.

source§

impl Client

source

pub fn get_campaigns(&self) -> GetCampaignsFluentBuilder

Constructs a fluent builder for the GetCampaigns operation.

source§

impl Client

source

pub fn get_channels(&self) -> GetChannelsFluentBuilder

Constructs a fluent builder for the GetChannels operation.

source§

impl Client

source

pub fn get_email_channel(&self) -> GetEmailChannelFluentBuilder

Constructs a fluent builder for the GetEmailChannel operation.

source§

impl Client

source

pub fn get_email_template(&self) -> GetEmailTemplateFluentBuilder

Constructs a fluent builder for the GetEmailTemplate operation.

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

      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>):
      required: false

      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>
source§

impl Client

source

pub fn get_endpoint(&self) -> GetEndpointFluentBuilder

Constructs a fluent builder for the GetEndpoint operation.

source§

impl Client

source

pub fn get_event_stream(&self) -> GetEventStreamFluentBuilder

Constructs a fluent builder for the GetEventStream operation.

source§

impl Client

source

pub fn get_export_job(&self) -> GetExportJobFluentBuilder

Constructs a fluent builder for the GetExportJob operation.

source§

impl Client

source

pub fn get_export_jobs(&self) -> GetExportJobsFluentBuilder

Constructs a fluent builder for the GetExportJobs operation.

source§

impl Client

source

pub fn get_gcm_channel(&self) -> GetGcmChannelFluentBuilder

Constructs a fluent builder for the GetGcmChannel operation.

source§

impl Client

source

pub fn get_import_job(&self) -> GetImportJobFluentBuilder

Constructs a fluent builder for the GetImportJob operation.

source§

impl Client

source

pub fn get_import_jobs(&self) -> GetImportJobsFluentBuilder

Constructs a fluent builder for the GetImportJobs operation.

source§

impl Client

source

pub fn get_in_app_messages(&self) -> GetInAppMessagesFluentBuilder

Constructs a fluent builder for the GetInAppMessages operation.

source§

impl Client

source

pub fn get_in_app_template(&self) -> GetInAppTemplateFluentBuilder

Constructs a fluent builder for the GetInAppTemplate operation.

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

      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>):
      required: false

      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>
source§

impl Client

source

pub fn get_journey(&self) -> GetJourneyFluentBuilder

Constructs a fluent builder for the GetJourney operation.

source§

impl Client

source

pub fn get_journey_date_range_kpi(&self) -> GetJourneyDateRangeKpiFluentBuilder

Constructs a fluent builder for the GetJourneyDateRangeKpi operation.

source§

impl Client

source

pub fn get_journey_execution_activity_metrics( &self ) -> GetJourneyExecutionActivityMetricsFluentBuilder

Constructs a fluent builder for the GetJourneyExecutionActivityMetrics operation.

source§

impl Client

source

pub fn get_journey_execution_metrics( &self ) -> GetJourneyExecutionMetricsFluentBuilder

Constructs a fluent builder for the GetJourneyExecutionMetrics operation.

source§

impl Client

source

pub fn get_journey_run_execution_activity_metrics( &self ) -> GetJourneyRunExecutionActivityMetricsFluentBuilder

Constructs a fluent builder for the GetJourneyRunExecutionActivityMetrics operation.

source§

impl Client

source

pub fn get_journey_run_execution_metrics( &self ) -> GetJourneyRunExecutionMetricsFluentBuilder

Constructs a fluent builder for the GetJourneyRunExecutionMetrics operation.

source§

impl Client

source

pub fn get_journey_runs(&self) -> GetJourneyRunsFluentBuilder

Constructs a fluent builder for the GetJourneyRuns operation.

source§

impl Client

source

pub fn get_push_template(&self) -> GetPushTemplateFluentBuilder

Constructs a fluent builder for the GetPushTemplate operation.

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

      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>):
      required: false

      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>
source§

impl Client

source

pub fn get_recommender_configuration( &self ) -> GetRecommenderConfigurationFluentBuilder

Constructs a fluent builder for the GetRecommenderConfiguration operation.

source§

impl Client

source

pub fn get_recommender_configurations( &self ) -> GetRecommenderConfigurationsFluentBuilder

Constructs a fluent builder for the GetRecommenderConfigurations operation.

source§

impl Client

source

pub fn get_segment(&self) -> GetSegmentFluentBuilder

Constructs a fluent builder for the GetSegment operation.

source§

impl Client

source

pub fn get_segment_export_jobs(&self) -> GetSegmentExportJobsFluentBuilder

Constructs a fluent builder for the GetSegmentExportJobs operation.

source§

impl Client

source

pub fn get_segment_import_jobs(&self) -> GetSegmentImportJobsFluentBuilder

Constructs a fluent builder for the GetSegmentImportJobs operation.

source§

impl Client

source

pub fn get_segment_version(&self) -> GetSegmentVersionFluentBuilder

Constructs a fluent builder for the GetSegmentVersion operation.

source§

impl Client

source

pub fn get_segment_versions(&self) -> GetSegmentVersionsFluentBuilder

Constructs a fluent builder for the GetSegmentVersions operation.

source§

impl Client

source

pub fn get_segments(&self) -> GetSegmentsFluentBuilder

Constructs a fluent builder for the GetSegments operation.

source§

impl Client

source

pub fn get_sms_channel(&self) -> GetSmsChannelFluentBuilder

Constructs a fluent builder for the GetSmsChannel operation.

source§

impl Client

source

pub fn get_sms_template(&self) -> GetSmsTemplateFluentBuilder

Constructs a fluent builder for the GetSmsTemplate operation.

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

      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>):
      required: false

      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>
source§

impl Client

source

pub fn get_user_endpoints(&self) -> GetUserEndpointsFluentBuilder

Constructs a fluent builder for the GetUserEndpoints operation.

source§

impl Client

source

pub fn get_voice_channel(&self) -> GetVoiceChannelFluentBuilder

Constructs a fluent builder for the GetVoiceChannel operation.

source§

impl Client

source

pub fn get_voice_template(&self) -> GetVoiceTemplateFluentBuilder

Constructs a fluent builder for the GetVoiceTemplate operation.

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

      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>):
      required: false

      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>
source§

impl Client

source

pub fn list_journeys(&self) -> ListJourneysFluentBuilder

Constructs a fluent builder for the ListJourneys operation.

source§

impl Client

source

pub fn list_tags_for_resource(&self) -> ListTagsForResourceFluentBuilder

Constructs a fluent builder for the ListTagsForResource operation.

source§

impl Client

source

pub fn list_template_versions(&self) -> ListTemplateVersionsFluentBuilder

Constructs a fluent builder for the ListTemplateVersions operation.

source§

impl Client

source

pub fn list_templates(&self) -> ListTemplatesFluentBuilder

Constructs a fluent builder for the ListTemplates operation.

source§

impl Client

source

pub fn phone_number_validate(&self) -> PhoneNumberValidateFluentBuilder

Constructs a fluent builder for the PhoneNumberValidate operation.

source§

impl Client

source

pub fn put_event_stream(&self) -> PutEventStreamFluentBuilder

Constructs a fluent builder for the PutEventStream operation.

source§

impl Client

source

pub fn put_events(&self) -> PutEventsFluentBuilder

Constructs a fluent builder for the PutEvents operation.

source§

impl Client

source

pub fn remove_attributes(&self) -> RemoveAttributesFluentBuilder

Constructs a fluent builder for the RemoveAttributes operation.

source§

impl Client

source

pub fn send_messages(&self) -> SendMessagesFluentBuilder

Constructs a fluent builder for the SendMessages operation.

source§

impl Client

source

pub fn send_otp_message(&self) -> SendOTPMessageFluentBuilder

Constructs a fluent builder for the SendOTPMessage operation.

source§

impl Client

source

pub fn send_users_messages(&self) -> SendUsersMessagesFluentBuilder

Constructs a fluent builder for the SendUsersMessages operation.

source§

impl Client

source

pub fn tag_resource(&self) -> TagResourceFluentBuilder

Constructs a fluent builder for the TagResource operation.

source§

impl Client

source

pub fn untag_resource(&self) -> UntagResourceFluentBuilder

Constructs a fluent builder for the UntagResource operation.

source§

impl Client

source

pub fn update_adm_channel(&self) -> UpdateAdmChannelFluentBuilder

Constructs a fluent builder for the UpdateAdmChannel operation.

source§

impl Client

source

pub fn update_apns_channel(&self) -> UpdateApnsChannelFluentBuilder

Constructs a fluent builder for the UpdateApnsChannel operation.

source§

impl Client

source

pub fn update_apns_sandbox_channel( &self ) -> UpdateApnsSandboxChannelFluentBuilder

Constructs a fluent builder for the UpdateApnsSandboxChannel operation.

source§

impl Client

source

pub fn update_apns_voip_channel(&self) -> UpdateApnsVoipChannelFluentBuilder

Constructs a fluent builder for the UpdateApnsVoipChannel operation.

source§

impl Client

source

pub fn update_apns_voip_sandbox_channel( &self ) -> UpdateApnsVoipSandboxChannelFluentBuilder

Constructs a fluent builder for the UpdateApnsVoipSandboxChannel operation.

source§

impl Client

source

pub fn update_application_settings( &self ) -> UpdateApplicationSettingsFluentBuilder

Constructs a fluent builder for the UpdateApplicationSettings operation.

source§

impl Client

source

pub fn update_baidu_channel(&self) -> UpdateBaiduChannelFluentBuilder

Constructs a fluent builder for the UpdateBaiduChannel operation.

source§

impl Client

source

pub fn update_campaign(&self) -> UpdateCampaignFluentBuilder

Constructs a fluent builder for the UpdateCampaign operation.

source§

impl Client

source

pub fn update_email_channel(&self) -> UpdateEmailChannelFluentBuilder

Constructs a fluent builder for the UpdateEmailChannel operation.

source§

impl Client

source

pub fn update_email_template(&self) -> UpdateEmailTemplateFluentBuilder

Constructs a fluent builder for the UpdateEmailTemplate operation.

  • The fluent builder is configurable:
    • create_new_version(bool) / set_create_new_version(Option<bool>):
      required: false

      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>):
      required: true

      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>):
      required: true

      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>):
      required: false

      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>
source§

impl Client

source

pub fn update_endpoint(&self) -> UpdateEndpointFluentBuilder

Constructs a fluent builder for the UpdateEndpoint operation.

source§

impl Client

source

pub fn update_endpoints_batch(&self) -> UpdateEndpointsBatchFluentBuilder

Constructs a fluent builder for the UpdateEndpointsBatch operation.

source§

impl Client

source

pub fn update_gcm_channel(&self) -> UpdateGcmChannelFluentBuilder

Constructs a fluent builder for the UpdateGcmChannel operation.

source§

impl Client

source

pub fn update_in_app_template(&self) -> UpdateInAppTemplateFluentBuilder

Constructs a fluent builder for the UpdateInAppTemplate operation.

  • The fluent builder is configurable:
    • create_new_version(bool) / set_create_new_version(Option<bool>):
      required: false

      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>):
      required: true

      InApp Template Request.


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

      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>):
      required: false

      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>
source§

impl Client

source

pub fn update_journey(&self) -> UpdateJourneyFluentBuilder

Constructs a fluent builder for the UpdateJourney operation.

source§

impl Client

source

pub fn update_journey_state(&self) -> UpdateJourneyStateFluentBuilder

Constructs a fluent builder for the UpdateJourneyState operation.

source§

impl Client

source

pub fn update_push_template(&self) -> UpdatePushTemplateFluentBuilder

Constructs a fluent builder for the UpdatePushTemplate operation.

  • The fluent builder is configurable:
    • create_new_version(bool) / set_create_new_version(Option<bool>):
      required: false

      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>):
      required: true

      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>):
      required: true

      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>):
      required: false

      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>
source§

impl Client

source

pub fn update_recommender_configuration( &self ) -> UpdateRecommenderConfigurationFluentBuilder

Constructs a fluent builder for the UpdateRecommenderConfiguration operation.

source§

impl Client

source

pub fn update_segment(&self) -> UpdateSegmentFluentBuilder

Constructs a fluent builder for the UpdateSegment operation.

source§

impl Client

source

pub fn update_sms_channel(&self) -> UpdateSmsChannelFluentBuilder

Constructs a fluent builder for the UpdateSmsChannel operation.

source§

impl Client

source

pub fn update_sms_template(&self) -> UpdateSmsTemplateFluentBuilder

Constructs a fluent builder for the UpdateSmsTemplate operation.

  • The fluent builder is configurable:
    • create_new_version(bool) / set_create_new_version(Option<bool>):
      required: false

      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>):
      required: true

      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>):
      required: true

      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>):
      required: false

      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>
source§

impl Client

source

pub fn update_template_active_version( &self ) -> UpdateTemplateActiveVersionFluentBuilder

Constructs a fluent builder for the UpdateTemplateActiveVersion operation.

source§

impl Client

source

pub fn update_voice_channel(&self) -> UpdateVoiceChannelFluentBuilder

Constructs a fluent builder for the UpdateVoiceChannel operation.

source§

impl Client

source

pub fn update_voice_template(&self) -> UpdateVoiceTemplateFluentBuilder

Constructs a fluent builder for the UpdateVoiceTemplate operation.

  • The fluent builder is configurable:
    • create_new_version(bool) / set_create_new_version(Option<bool>):
      required: false

      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>):
      required: true

      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>):
      required: false

      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>):
      required: true

      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>
source§

impl Client

source

pub fn verify_otp_message(&self) -> VerifyOTPMessageFluentBuilder

Constructs a fluent builder for the VerifyOTPMessage operation.

source§

impl Client

source

pub fn from_conf(conf: Config) -> Self

Creates a new client from the service Config.

§Panics

This method will panic in the following cases:

  • Retries or timeouts are enabled without a sleep_impl configured.
  • Identity caching is enabled without a sleep_impl and time_source configured.
  • No behavior_version is provided.

The panic message for each of these will have instructions on how to resolve them.

source

pub fn config(&self) -> &Config

Returns the client’s configuration.

source§

impl Client

source

pub fn new(sdk_config: &SdkConfig) -> Self

Creates a new client from an SDK Config.

§Panics
  • This method will panic if the sdk_config is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the sdk_config is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.
  • This method will panic if no BehaviorVersion is provided. If you experience this panic, set behavior_version on the Config or enable the behavior-version-latest Cargo feature.

Trait Implementations§

source§

impl Clone for Client

source§

fn clone(&self) -> Client

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Client

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Client

§

impl !RefUnwindSafe for Client

§

impl Send for Client

§

impl Sync for Client

§

impl Unpin for Client

§

impl !UnwindSafe for Client

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> IntoEither for T

source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

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

fn with_current_subscriber(self) -> WithDispatch<Self>

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