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 Builder 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
impl Client
Sourcepub fn create_app(&self) -> CreateAppFluentBuilder
pub fn create_app(&self) -> CreateAppFluentBuilder
Constructs a fluent builder for the CreateApp operation.
- The fluent builder is configurable:
create_application_request(CreateApplicationRequest)/set_create_application_request(Option<CreateApplicationRequest>):
required: trueSpecifies the display name of an application and the tags to associate with the application.
- On success, responds with
CreateAppOutputwith field(s):application_response(Option<ApplicationResponse>):Provides information about an application.
- On failure, responds with
SdkError<CreateAppError>
Source§impl Client
impl Client
Sourcepub fn create_campaign(&self) -> CreateCampaignFluentBuilder
pub fn create_campaign(&self) -> CreateCampaignFluentBuilder
Constructs a fluent builder for the CreateCampaign operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
write_campaign_request(WriteCampaignRequest)/set_write_campaign_request(Option<WriteCampaignRequest>):
required: trueSpecifies the configuration and other settings for a campaign.
- On success, responds with
CreateCampaignOutputwith field(s):campaign_response(Option<CampaignResponse>):Provides information about the status, configuration, and other settings for a campaign.
- On failure, responds with
SdkError<CreateCampaignError>
Source§impl Client
impl Client
Sourcepub fn create_email_template(&self) -> CreateEmailTemplateFluentBuilder
pub fn create_email_template(&self) -> CreateEmailTemplateFluentBuilder
Constructs a fluent builder for the CreateEmailTemplate operation.
- The fluent builder is configurable:
email_template_request(EmailTemplateRequest)/set_email_template_request(Option<EmailTemplateRequest>):
required: trueSpecifies 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: trueThe 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.
- On success, responds with
CreateEmailTemplateOutputwith field(s):create_template_message_body(Option<CreateTemplateMessageBody>):Provides information about a request to create a message template.
- On failure, responds with
SdkError<CreateEmailTemplateError>
Source§impl Client
impl Client
Sourcepub fn create_export_job(&self) -> CreateExportJobFluentBuilder
pub fn create_export_job(&self) -> CreateExportJobFluentBuilder
Constructs a fluent builder for the CreateExportJob operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
export_job_request(ExportJobRequest)/set_export_job_request(Option<ExportJobRequest>):
required: trueSpecifies the settings for a job that exports endpoint definitions to an Amazon Simple Storage Service (Amazon S3) bucket.
- On success, responds with
CreateExportJobOutputwith field(s):export_job_response(Option<ExportJobResponse>):Provides information about the status and settings of a job that exports endpoint definitions to a file. The file can be added directly to an Amazon Simple Storage Service (Amazon S3) bucket by using the Amazon Pinpoint API or downloaded directly to a computer by using the Amazon Pinpoint console.
- On failure, responds with
SdkError<CreateExportJobError>
Source§impl Client
impl Client
Sourcepub fn create_import_job(&self) -> CreateImportJobFluentBuilder
pub fn create_import_job(&self) -> CreateImportJobFluentBuilder
Constructs a fluent builder for the CreateImportJob operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
import_job_request(ImportJobRequest)/set_import_job_request(Option<ImportJobRequest>):
required: trueSpecifies the settings for a job that imports endpoint definitions from an Amazon Simple Storage Service (Amazon S3) bucket.
- On success, responds with
CreateImportJobOutputwith field(s):import_job_response(Option<ImportJobResponse>):Provides information about the status and settings of a job that imports endpoint definitions from one or more files. The files can be stored in an Amazon Simple Storage Service (Amazon S3) bucket or uploaded directly from a computer by using the Amazon Pinpoint console.
- On failure, responds with
SdkError<CreateImportJobError>
Source§impl Client
impl Client
Sourcepub fn create_in_app_template(&self) -> CreateInAppTemplateFluentBuilder
pub fn create_in_app_template(&self) -> CreateInAppTemplateFluentBuilder
Constructs a fluent builder for the CreateInAppTemplate operation.
- The fluent builder is configurable:
in_app_template_request(InAppTemplateRequest)/set_in_app_template_request(Option<InAppTemplateRequest>):
required: trueInApp Template Request.
template_name(impl Into<String>)/set_template_name(Option<String>):
required: trueThe 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.
- On success, responds with
CreateInAppTemplateOutputwith field(s):template_create_message_body(Option<TemplateCreateMessageBody>):Provides information about a request to create a message template.
- On failure, responds with
SdkError<CreateInAppTemplateError>
Source§impl Client
impl Client
Sourcepub fn create_journey(&self) -> CreateJourneyFluentBuilder
pub fn create_journey(&self) -> CreateJourneyFluentBuilder
Constructs a fluent builder for the CreateJourney operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
write_journey_request(WriteJourneyRequest)/set_write_journey_request(Option<WriteJourneyRequest>):
required: trueSpecifies the configuration and other settings for a journey.
- On success, responds with
CreateJourneyOutputwith field(s):journey_response(Option<JourneyResponse>):Provides information about the status, configuration, and other settings for a journey.
- On failure, responds with
SdkError<CreateJourneyError>
Source§impl Client
impl Client
Sourcepub fn create_push_template(&self) -> CreatePushTemplateFluentBuilder
pub fn create_push_template(&self) -> CreatePushTemplateFluentBuilder
Constructs a fluent builder for the CreatePushTemplate operation.
- The fluent builder is configurable:
push_notification_template_request(PushNotificationTemplateRequest)/set_push_notification_template_request(Option<PushNotificationTemplateRequest>):
required: trueSpecifies 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: trueThe 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.
- On success, responds with
CreatePushTemplateOutputwith field(s):create_template_message_body(Option<CreateTemplateMessageBody>):Provides information about a request to create a message template.
- On failure, responds with
SdkError<CreatePushTemplateError>
Source§impl Client
impl Client
Sourcepub fn create_recommender_configuration(
&self,
) -> CreateRecommenderConfigurationFluentBuilder
pub fn create_recommender_configuration( &self, ) -> CreateRecommenderConfigurationFluentBuilder
Constructs a fluent builder for the CreateRecommenderConfiguration operation.
- The fluent builder is configurable:
create_recommender_configuration(CreateRecommenderConfigurationShape)/set_create_recommender_configuration(Option<CreateRecommenderConfigurationShape>):
required: trueSpecifies Amazon Pinpoint configuration settings for retrieving and processing recommendation data from a recommender model.
- On success, responds with
CreateRecommenderConfigurationOutputwith field(s):recommender_configuration_response(Option<RecommenderConfigurationResponse>):Provides information about Amazon Pinpoint configuration settings for retrieving and processing data from a recommender model.
- On failure, responds with
SdkError<CreateRecommenderConfigurationError>
Source§impl Client
impl Client
Sourcepub fn create_segment(&self) -> CreateSegmentFluentBuilder
pub fn create_segment(&self) -> CreateSegmentFluentBuilder
Constructs a fluent builder for the CreateSegment operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
write_segment_request(WriteSegmentRequest)/set_write_segment_request(Option<WriteSegmentRequest>):
required: trueSpecifies the configuration, dimension, and other settings for a segment. A WriteSegmentRequest object can include a Dimensions object or a SegmentGroups object, but not both.
- On success, responds with
CreateSegmentOutputwith field(s):segment_response(Option<SegmentResponse>):Provides information about the configuration, dimension, and other settings for a segment.
- On failure, responds with
SdkError<CreateSegmentError>
Source§impl Client
impl Client
Sourcepub fn create_sms_template(&self) -> CreateSmsTemplateFluentBuilder
pub fn create_sms_template(&self) -> CreateSmsTemplateFluentBuilder
Constructs a fluent builder for the CreateSmsTemplate operation.
- The fluent builder is configurable:
sms_template_request(SmsTemplateRequest)/set_sms_template_request(Option<SmsTemplateRequest>):
required: trueSpecifies 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: trueThe 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.
- On success, responds with
CreateSmsTemplateOutputwith field(s):create_template_message_body(Option<CreateTemplateMessageBody>):Provides information about a request to create a message template.
- On failure, responds with
SdkError<CreateSmsTemplateError>
Source§impl Client
impl Client
Sourcepub fn create_voice_template(&self) -> CreateVoiceTemplateFluentBuilder
pub fn create_voice_template(&self) -> CreateVoiceTemplateFluentBuilder
Constructs a fluent builder for the CreateVoiceTemplate operation.
- The fluent builder is configurable:
template_name(impl Into<String>)/set_template_name(Option<String>):
required: trueThe 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.
voice_template_request(VoiceTemplateRequest)/set_voice_template_request(Option<VoiceTemplateRequest>):
required: trueSpecifies 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
CreateVoiceTemplateOutputwith field(s):create_template_message_body(Option<CreateTemplateMessageBody>):Provides information about a request to create a message template.
- On failure, responds with
SdkError<CreateVoiceTemplateError>
Source§impl Client
impl Client
Sourcepub fn delete_adm_channel(&self) -> DeleteAdmChannelFluentBuilder
pub fn delete_adm_channel(&self) -> DeleteAdmChannelFluentBuilder
Constructs a fluent builder for the DeleteAdmChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
DeleteAdmChannelOutputwith field(s):adm_channel_response(Option<AdmChannelResponse>):Provides information about the status and settings of the ADM (Amazon Device Messaging) channel for an application.
- On failure, responds with
SdkError<DeleteAdmChannelError>
Source§impl Client
impl Client
Sourcepub fn delete_apns_channel(&self) -> DeleteApnsChannelFluentBuilder
pub fn delete_apns_channel(&self) -> DeleteApnsChannelFluentBuilder
Constructs a fluent builder for the DeleteApnsChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
DeleteApnsChannelOutputwith field(s):apns_channel_response(Option<ApnsChannelResponse>):Provides information about the status and settings of the APNs (Apple Push Notification service) channel for an application.
- On failure, responds with
SdkError<DeleteApnsChannelError>
Source§impl Client
impl Client
Sourcepub fn delete_apns_sandbox_channel(
&self,
) -> DeleteApnsSandboxChannelFluentBuilder
pub fn delete_apns_sandbox_channel( &self, ) -> DeleteApnsSandboxChannelFluentBuilder
Constructs a fluent builder for the DeleteApnsSandboxChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
DeleteApnsSandboxChannelOutputwith field(s):apns_sandbox_channel_response(Option<ApnsSandboxChannelResponse>):Provides information about the status and settings of the APNs (Apple Push Notification service) sandbox channel for an application.
- On failure, responds with
SdkError<DeleteApnsSandboxChannelError>
Source§impl Client
impl Client
Sourcepub fn delete_apns_voip_channel(&self) -> DeleteApnsVoipChannelFluentBuilder
pub fn delete_apns_voip_channel(&self) -> DeleteApnsVoipChannelFluentBuilder
Constructs a fluent builder for the DeleteApnsVoipChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
DeleteApnsVoipChannelOutputwith field(s):apns_voip_channel_response(Option<ApnsVoipChannelResponse>):Provides information about the status and settings of the APNs (Apple Push Notification service) VoIP channel for an application.
- On failure, responds with
SdkError<DeleteApnsVoipChannelError>
Source§impl Client
impl Client
Sourcepub fn delete_apns_voip_sandbox_channel(
&self,
) -> DeleteApnsVoipSandboxChannelFluentBuilder
pub fn delete_apns_voip_sandbox_channel( &self, ) -> DeleteApnsVoipSandboxChannelFluentBuilder
Constructs a fluent builder for the DeleteApnsVoipSandboxChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
DeleteApnsVoipSandboxChannelOutputwith field(s):apns_voip_sandbox_channel_response(Option<ApnsVoipSandboxChannelResponse>):Provides information about the status and settings of the APNs (Apple Push Notification service) VoIP sandbox channel for an application.
- On failure, responds with
SdkError<DeleteApnsVoipSandboxChannelError>
Source§impl Client
impl Client
Sourcepub fn delete_app(&self) -> DeleteAppFluentBuilder
pub fn delete_app(&self) -> DeleteAppFluentBuilder
Constructs a fluent builder for the DeleteApp operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
DeleteAppOutputwith field(s):application_response(Option<ApplicationResponse>):Provides information about an application.
- On failure, responds with
SdkError<DeleteAppError>
Source§impl Client
impl Client
Sourcepub fn delete_baidu_channel(&self) -> DeleteBaiduChannelFluentBuilder
pub fn delete_baidu_channel(&self) -> DeleteBaiduChannelFluentBuilder
Constructs a fluent builder for the DeleteBaiduChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
DeleteBaiduChannelOutputwith field(s):baidu_channel_response(Option<BaiduChannelResponse>):Provides information about the status and settings of the Baidu (Baidu Cloud Push) channel for an application.
- On failure, responds with
SdkError<DeleteBaiduChannelError>
Source§impl Client
impl Client
Sourcepub fn delete_campaign(&self) -> DeleteCampaignFluentBuilder
pub fn delete_campaign(&self) -> DeleteCampaignFluentBuilder
Constructs a fluent builder for the DeleteCampaign operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
campaign_id(impl Into<String>)/set_campaign_id(Option<String>):
required: trueThe unique identifier for the campaign.
- On success, responds with
DeleteCampaignOutputwith field(s):campaign_response(Option<CampaignResponse>):Provides information about the status, configuration, and other settings for a campaign.
- On failure, responds with
SdkError<DeleteCampaignError>
Source§impl Client
impl Client
Sourcepub fn delete_email_channel(&self) -> DeleteEmailChannelFluentBuilder
pub fn delete_email_channel(&self) -> DeleteEmailChannelFluentBuilder
Constructs a fluent builder for the DeleteEmailChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
DeleteEmailChannelOutputwith field(s):email_channel_response(Option<EmailChannelResponse>):Provides information about the status and settings of the email channel for an application.
- On failure, responds with
SdkError<DeleteEmailChannelError>
Source§impl Client
impl Client
Sourcepub fn delete_email_template(&self) -> DeleteEmailTemplateFluentBuilder
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: trueThe 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: falseThe 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
DeleteEmailTemplateOutputwith field(s):message_body(Option<MessageBody>):Provides information about an API request or response.
- On failure, responds with
SdkError<DeleteEmailTemplateError>
Source§impl Client
impl Client
Sourcepub fn delete_endpoint(&self) -> DeleteEndpointFluentBuilder
pub fn delete_endpoint(&self) -> DeleteEndpointFluentBuilder
Constructs a fluent builder for the DeleteEndpoint operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
endpoint_id(impl Into<String>)/set_endpoint_id(Option<String>):
required: trueThe case insensitive unique identifier for the endpoint. The identifier can’t contain
$,{or}.
- On success, responds with
DeleteEndpointOutputwith field(s):endpoint_response(Option<EndpointResponse>):Provides information about the channel type and other settings for an endpoint.
- On failure, responds with
SdkError<DeleteEndpointError>
Source§impl Client
impl Client
Sourcepub fn delete_event_stream(&self) -> DeleteEventStreamFluentBuilder
pub fn delete_event_stream(&self) -> DeleteEventStreamFluentBuilder
Constructs a fluent builder for the DeleteEventStream operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
DeleteEventStreamOutputwith field(s):event_stream(Option<EventStream>):Specifies settings for publishing event data to an Amazon Kinesis data stream or an Amazon Kinesis Data Firehose delivery stream.
- On failure, responds with
SdkError<DeleteEventStreamError>
Source§impl Client
impl Client
Sourcepub fn delete_gcm_channel(&self) -> DeleteGcmChannelFluentBuilder
pub fn delete_gcm_channel(&self) -> DeleteGcmChannelFluentBuilder
Constructs a fluent builder for the DeleteGcmChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
DeleteGcmChannelOutputwith field(s):gcm_channel_response(Option<GcmChannelResponse>):Provides information about the status and settings of the GCM channel for an application. The GCM channel enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.
- On failure, responds with
SdkError<DeleteGcmChannelError>
Source§impl Client
impl Client
Sourcepub fn delete_in_app_template(&self) -> DeleteInAppTemplateFluentBuilder
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: trueThe 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: falseThe 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
DeleteInAppTemplateOutputwith field(s):message_body(Option<MessageBody>):Provides information about an API request or response.
- On failure, responds with
SdkError<DeleteInAppTemplateError>
Source§impl Client
impl Client
Sourcepub fn delete_journey(&self) -> DeleteJourneyFluentBuilder
pub fn delete_journey(&self) -> DeleteJourneyFluentBuilder
Constructs a fluent builder for the DeleteJourney operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
journey_id(impl Into<String>)/set_journey_id(Option<String>):
required: trueThe unique identifier for the journey.
- On success, responds with
DeleteJourneyOutputwith field(s):journey_response(Option<JourneyResponse>):Provides information about the status, configuration, and other settings for a journey.
- On failure, responds with
SdkError<DeleteJourneyError>
Source§impl Client
impl Client
Sourcepub fn delete_push_template(&self) -> DeletePushTemplateFluentBuilder
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: trueThe 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: falseThe 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
DeletePushTemplateOutputwith field(s):message_body(Option<MessageBody>):Provides information about an API request or response.
- On failure, responds with
SdkError<DeletePushTemplateError>
Source§impl Client
impl Client
Sourcepub fn delete_recommender_configuration(
&self,
) -> DeleteRecommenderConfigurationFluentBuilder
pub fn delete_recommender_configuration( &self, ) -> DeleteRecommenderConfigurationFluentBuilder
Constructs a fluent builder for the DeleteRecommenderConfiguration operation.
- The fluent builder is configurable:
recommender_id(impl Into<String>)/set_recommender_id(Option<String>):
required: trueThe unique identifier for the recommender model configuration. This identifier is displayed as the Recommender ID on the Amazon Pinpoint console.
- On success, responds with
DeleteRecommenderConfigurationOutputwith field(s):recommender_configuration_response(Option<RecommenderConfigurationResponse>):Provides information about Amazon Pinpoint configuration settings for retrieving and processing data from a recommender model.
- On failure, responds with
SdkError<DeleteRecommenderConfigurationError>
Source§impl Client
impl Client
Sourcepub fn delete_segment(&self) -> DeleteSegmentFluentBuilder
pub fn delete_segment(&self) -> DeleteSegmentFluentBuilder
Constructs a fluent builder for the DeleteSegment operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
segment_id(impl Into<String>)/set_segment_id(Option<String>):
required: trueThe unique identifier for the segment.
- On success, responds with
DeleteSegmentOutputwith field(s):segment_response(Option<SegmentResponse>):Provides information about the configuration, dimension, and other settings for a segment.
- On failure, responds with
SdkError<DeleteSegmentError>
Source§impl Client
impl Client
Sourcepub fn delete_sms_channel(&self) -> DeleteSmsChannelFluentBuilder
pub fn delete_sms_channel(&self) -> DeleteSmsChannelFluentBuilder
Constructs a fluent builder for the DeleteSmsChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
DeleteSmsChannelOutputwith field(s):sms_channel_response(Option<SmsChannelResponse>):Provides information about the status and settings of the SMS channel for an application.
- On failure, responds with
SdkError<DeleteSmsChannelError>
Source§impl Client
impl Client
Sourcepub fn delete_sms_template(&self) -> DeleteSmsTemplateFluentBuilder
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: trueThe 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: falseThe 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
DeleteSmsTemplateOutputwith field(s):message_body(Option<MessageBody>):Provides information about an API request or response.
- On failure, responds with
SdkError<DeleteSmsTemplateError>
Source§impl Client
impl Client
Sourcepub fn delete_user_endpoints(&self) -> DeleteUserEndpointsFluentBuilder
pub fn delete_user_endpoints(&self) -> DeleteUserEndpointsFluentBuilder
Constructs a fluent builder for the DeleteUserEndpoints operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
user_id(impl Into<String>)/set_user_id(Option<String>):
required: trueThe unique identifier for the user.
- On success, responds with
DeleteUserEndpointsOutputwith field(s):endpoints_response(Option<EndpointsResponse>):Provides information about all the endpoints that are associated with a user ID.
- On failure, responds with
SdkError<DeleteUserEndpointsError>
Source§impl Client
impl Client
Sourcepub fn delete_voice_channel(&self) -> DeleteVoiceChannelFluentBuilder
pub fn delete_voice_channel(&self) -> DeleteVoiceChannelFluentBuilder
Constructs a fluent builder for the DeleteVoiceChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
DeleteVoiceChannelOutputwith field(s):voice_channel_response(Option<VoiceChannelResponse>):Provides information about the status and settings of the voice channel for an application.
- On failure, responds with
SdkError<DeleteVoiceChannelError>
Source§impl Client
impl Client
Sourcepub fn delete_voice_template(&self) -> DeleteVoiceTemplateFluentBuilder
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: trueThe 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: falseThe 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
DeleteVoiceTemplateOutputwith field(s):message_body(Option<MessageBody>):Provides information about an API request or response.
- On failure, responds with
SdkError<DeleteVoiceTemplateError>
Source§impl Client
impl Client
Sourcepub fn get_adm_channel(&self) -> GetAdmChannelFluentBuilder
pub fn get_adm_channel(&self) -> GetAdmChannelFluentBuilder
Constructs a fluent builder for the GetAdmChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
GetAdmChannelOutputwith field(s):adm_channel_response(Option<AdmChannelResponse>):Provides information about the status and settings of the ADM (Amazon Device Messaging) channel for an application.
- On failure, responds with
SdkError<GetAdmChannelError>
Source§impl Client
impl Client
Sourcepub fn get_apns_channel(&self) -> GetApnsChannelFluentBuilder
pub fn get_apns_channel(&self) -> GetApnsChannelFluentBuilder
Constructs a fluent builder for the GetApnsChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
GetApnsChannelOutputwith field(s):apns_channel_response(Option<ApnsChannelResponse>):Provides information about the status and settings of the APNs (Apple Push Notification service) channel for an application.
- On failure, responds with
SdkError<GetApnsChannelError>
Source§impl Client
impl Client
Sourcepub fn get_apns_sandbox_channel(&self) -> GetApnsSandboxChannelFluentBuilder
pub fn get_apns_sandbox_channel(&self) -> GetApnsSandboxChannelFluentBuilder
Constructs a fluent builder for the GetApnsSandboxChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
GetApnsSandboxChannelOutputwith field(s):apns_sandbox_channel_response(Option<ApnsSandboxChannelResponse>):Provides information about the status and settings of the APNs (Apple Push Notification service) sandbox channel for an application.
- On failure, responds with
SdkError<GetApnsSandboxChannelError>
Source§impl Client
impl Client
Sourcepub fn get_apns_voip_channel(&self) -> GetApnsVoipChannelFluentBuilder
pub fn get_apns_voip_channel(&self) -> GetApnsVoipChannelFluentBuilder
Constructs a fluent builder for the GetApnsVoipChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
GetApnsVoipChannelOutputwith field(s):apns_voip_channel_response(Option<ApnsVoipChannelResponse>):Provides information about the status and settings of the APNs (Apple Push Notification service) VoIP channel for an application.
- On failure, responds with
SdkError<GetApnsVoipChannelError>
Source§impl Client
impl Client
Sourcepub fn get_apns_voip_sandbox_channel(
&self,
) -> GetApnsVoipSandboxChannelFluentBuilder
pub fn get_apns_voip_sandbox_channel( &self, ) -> GetApnsVoipSandboxChannelFluentBuilder
Constructs a fluent builder for the GetApnsVoipSandboxChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
GetApnsVoipSandboxChannelOutputwith field(s):apns_voip_sandbox_channel_response(Option<ApnsVoipSandboxChannelResponse>):Provides information about the status and settings of the APNs (Apple Push Notification service) VoIP sandbox channel for an application.
- On failure, responds with
SdkError<GetApnsVoipSandboxChannelError>
Source§impl Client
impl Client
Sourcepub fn get_app(&self) -> GetAppFluentBuilder
pub fn get_app(&self) -> GetAppFluentBuilder
Constructs a fluent builder for the GetApp operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
GetAppOutputwith field(s):application_response(Option<ApplicationResponse>):Provides information about an application.
- On failure, responds with
SdkError<GetAppError>
Source§impl Client
impl Client
Sourcepub fn get_application_date_range_kpi(
&self,
) -> GetApplicationDateRangeKpiFluentBuilder
pub fn get_application_date_range_kpi( &self, ) -> GetApplicationDateRangeKpiFluentBuilder
Constructs a fluent builder for the GetApplicationDateRangeKpi operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
end_time(DateTime)/set_end_time(Option<DateTime>):
required: falseThe last date and time to retrieve data for, as part of an inclusive date range that filters the query results. This value should be in extended ISO 8601 format and use Coordinated Universal Time (UTC), for example: 2019-07-26T20:00:00Z for 8:00 PM UTC July 26, 2019.
kpi_name(impl Into<String>)/set_kpi_name(Option<String>):
required: trueThe name of the metric, also referred to as a key performance indicator (KPI), to retrieve data for. This value describes the associated metric and consists of two or more terms, which are comprised of lowercase alphanumeric characters, separated by a hyphen. Examples are email-open-rate and successful-delivery-rate. For a list of valid values, see the Amazon Pinpoint Developer Guide.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe string that specifies which page of results to return in a paginated response. This parameter is not supported for application, campaign, and journey metrics.
page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
start_time(DateTime)/set_start_time(Option<DateTime>):
required: falseThe first date and time to retrieve data for, as part of an inclusive date range that filters the query results. This value should be in extended ISO 8601 format and use Coordinated Universal Time (UTC), for example: 2019-07-19T20:00:00Z for 8:00 PM UTC July 19, 2019. This value should also be fewer than 90 days from the current day.
- On success, responds with
GetApplicationDateRangeKpiOutputwith field(s):application_date_range_kpi_response(Option<ApplicationDateRangeKpiResponse>):Provides the results of a query that retrieved the data for a standard metric that applies to an application, and provides information about that query.
- On failure, responds with
SdkError<GetApplicationDateRangeKpiError>
Source§impl Client
impl Client
Sourcepub fn get_application_settings(&self) -> GetApplicationSettingsFluentBuilder
pub fn get_application_settings(&self) -> GetApplicationSettingsFluentBuilder
Constructs a fluent builder for the GetApplicationSettings operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
GetApplicationSettingsOutputwith field(s):application_settings_resource(Option<ApplicationSettingsResource>):Provides information about an application, including the default settings for an application.
- On failure, responds with
SdkError<GetApplicationSettingsError>
Source§impl Client
impl Client
Sourcepub fn get_apps(&self) -> GetAppsFluentBuilder
pub fn get_apps(&self) -> GetAppsFluentBuilder
Constructs a fluent builder for the GetApps operation.
- The fluent builder is configurable:
page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
token(impl Into<String>)/set_token(Option<String>):
required: falseThe NextToken string that specifies which page of results to return in a paginated response.
- On success, responds with
GetAppsOutputwith field(s):applications_response(Option<ApplicationsResponse>):Provides information about all of your applications.
- On failure, responds with
SdkError<GetAppsError>
Source§impl Client
impl Client
Sourcepub fn get_baidu_channel(&self) -> GetBaiduChannelFluentBuilder
pub fn get_baidu_channel(&self) -> GetBaiduChannelFluentBuilder
Constructs a fluent builder for the GetBaiduChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
GetBaiduChannelOutputwith field(s):baidu_channel_response(Option<BaiduChannelResponse>):Provides information about the status and settings of the Baidu (Baidu Cloud Push) channel for an application.
- On failure, responds with
SdkError<GetBaiduChannelError>
Source§impl Client
impl Client
Sourcepub fn get_campaign(&self) -> GetCampaignFluentBuilder
pub fn get_campaign(&self) -> GetCampaignFluentBuilder
Constructs a fluent builder for the GetCampaign operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
campaign_id(impl Into<String>)/set_campaign_id(Option<String>):
required: trueThe unique identifier for the campaign.
- On success, responds with
GetCampaignOutputwith field(s):campaign_response(Option<CampaignResponse>):Provides information about the status, configuration, and other settings for a campaign.
- On failure, responds with
SdkError<GetCampaignError>
Source§impl Client
impl Client
Sourcepub fn get_campaign_activities(&self) -> GetCampaignActivitiesFluentBuilder
pub fn get_campaign_activities(&self) -> GetCampaignActivitiesFluentBuilder
Constructs a fluent builder for the GetCampaignActivities operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
campaign_id(impl Into<String>)/set_campaign_id(Option<String>):
required: trueThe unique identifier for the campaign.
page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
token(impl Into<String>)/set_token(Option<String>):
required: falseThe NextToken string that specifies which page of results to return in a paginated response.
- On success, responds with
GetCampaignActivitiesOutputwith field(s):activities_response(Option<ActivitiesResponse>):Provides information about the activities that were performed by a campaign.
- On failure, responds with
SdkError<GetCampaignActivitiesError>
Source§impl Client
impl Client
Sourcepub fn get_campaign_date_range_kpi(
&self,
) -> GetCampaignDateRangeKpiFluentBuilder
pub fn get_campaign_date_range_kpi( &self, ) -> GetCampaignDateRangeKpiFluentBuilder
Constructs a fluent builder for the GetCampaignDateRangeKpi operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
campaign_id(impl Into<String>)/set_campaign_id(Option<String>):
required: trueThe unique identifier for the campaign.
end_time(DateTime)/set_end_time(Option<DateTime>):
required: falseThe last date and time to retrieve data for, as part of an inclusive date range that filters the query results. This value should be in extended ISO 8601 format and use Coordinated Universal Time (UTC), for example: 2019-07-26T20:00:00Z for 8:00 PM UTC July 26, 2019.
kpi_name(impl Into<String>)/set_kpi_name(Option<String>):
required: trueThe name of the metric, also referred to as a key performance indicator (KPI), to retrieve data for. This value describes the associated metric and consists of two or more terms, which are comprised of lowercase alphanumeric characters, separated by a hyphen. Examples are email-open-rate and successful-delivery-rate. For a list of valid values, see the Amazon Pinpoint Developer Guide.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe string that specifies which page of results to return in a paginated response. This parameter is not supported for application, campaign, and journey metrics.
page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
start_time(DateTime)/set_start_time(Option<DateTime>):
required: falseThe first date and time to retrieve data for, as part of an inclusive date range that filters the query results. This value should be in extended ISO 8601 format and use Coordinated Universal Time (UTC), for example: 2019-07-19T20:00:00Z for 8:00 PM UTC July 19, 2019. This value should also be fewer than 90 days from the current day.
- On success, responds with
GetCampaignDateRangeKpiOutputwith field(s):campaign_date_range_kpi_response(Option<CampaignDateRangeKpiResponse>):Provides the results of a query that retrieved the data for a standard metric that applies to a campaign, and provides information about that query.
- On failure, responds with
SdkError<GetCampaignDateRangeKpiError>
Source§impl Client
impl Client
Sourcepub fn get_campaign_version(&self) -> GetCampaignVersionFluentBuilder
pub fn get_campaign_version(&self) -> GetCampaignVersionFluentBuilder
Constructs a fluent builder for the GetCampaignVersion operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
campaign_id(impl Into<String>)/set_campaign_id(Option<String>):
required: trueThe unique identifier for the campaign.
version(impl Into<String>)/set_version(Option<String>):
required: trueThe unique version number (Version property) for the campaign version.
- On success, responds with
GetCampaignVersionOutputwith field(s):campaign_response(Option<CampaignResponse>):Provides information about the status, configuration, and other settings for a campaign.
- On failure, responds with
SdkError<GetCampaignVersionError>
Source§impl Client
impl Client
Sourcepub fn get_campaign_versions(&self) -> GetCampaignVersionsFluentBuilder
pub fn get_campaign_versions(&self) -> GetCampaignVersionsFluentBuilder
Constructs a fluent builder for the GetCampaignVersions operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
campaign_id(impl Into<String>)/set_campaign_id(Option<String>):
required: trueThe unique identifier for the campaign.
page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
token(impl Into<String>)/set_token(Option<String>):
required: falseThe NextToken string that specifies which page of results to return in a paginated response.
- On success, responds with
GetCampaignVersionsOutputwith field(s):campaigns_response(Option<CampaignsResponse>):Provides information about the configuration and other settings for all the campaigns that are associated with an application.
- On failure, responds with
SdkError<GetCampaignVersionsError>
Source§impl Client
impl Client
Sourcepub fn get_campaigns(&self) -> GetCampaignsFluentBuilder
pub fn get_campaigns(&self) -> GetCampaignsFluentBuilder
Constructs a fluent builder for the GetCampaigns operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
token(impl Into<String>)/set_token(Option<String>):
required: falseThe NextToken string that specifies which page of results to return in a paginated response.
- On success, responds with
GetCampaignsOutputwith field(s):campaigns_response(Option<CampaignsResponse>):Provides information about the configuration and other settings for all the campaigns that are associated with an application.
- On failure, responds with
SdkError<GetCampaignsError>
Source§impl Client
impl Client
Sourcepub fn get_channels(&self) -> GetChannelsFluentBuilder
pub fn get_channels(&self) -> GetChannelsFluentBuilder
Constructs a fluent builder for the GetChannels operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
GetChannelsOutputwith field(s):channels_response(Option<ChannelsResponse>):Provides information about the general settings and status of all channels for an application, including channels that aren’t enabled for the application.
- On failure, responds with
SdkError<GetChannelsError>
Source§impl Client
impl Client
Sourcepub fn get_email_channel(&self) -> GetEmailChannelFluentBuilder
pub fn get_email_channel(&self) -> GetEmailChannelFluentBuilder
Constructs a fluent builder for the GetEmailChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
GetEmailChannelOutputwith field(s):email_channel_response(Option<EmailChannelResponse>):Provides information about the status and settings of the email channel for an application.
- On failure, responds with
SdkError<GetEmailChannelError>
Source§impl Client
impl Client
Sourcepub fn get_email_template(&self) -> GetEmailTemplateFluentBuilder
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: trueThe 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: falseThe 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
GetEmailTemplateOutputwith field(s):email_template_response(Option<EmailTemplateResponse>):Provides information about the content and settings for a message template that can be used in messages that are sent through the email channel.
- On failure, responds with
SdkError<GetEmailTemplateError>
Source§impl Client
impl Client
Sourcepub fn get_endpoint(&self) -> GetEndpointFluentBuilder
pub fn get_endpoint(&self) -> GetEndpointFluentBuilder
Constructs a fluent builder for the GetEndpoint operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
endpoint_id(impl Into<String>)/set_endpoint_id(Option<String>):
required: trueThe case insensitive unique identifier for the endpoint. The identifier can’t contain
$,{or}.
- On success, responds with
GetEndpointOutputwith field(s):endpoint_response(Option<EndpointResponse>):Provides information about the channel type and other settings for an endpoint.
- On failure, responds with
SdkError<GetEndpointError>
Source§impl Client
impl Client
Sourcepub fn get_event_stream(&self) -> GetEventStreamFluentBuilder
pub fn get_event_stream(&self) -> GetEventStreamFluentBuilder
Constructs a fluent builder for the GetEventStream operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
GetEventStreamOutputwith field(s):event_stream(Option<EventStream>):Specifies settings for publishing event data to an Amazon Kinesis data stream or an Amazon Kinesis Data Firehose delivery stream.
- On failure, responds with
SdkError<GetEventStreamError>
Source§impl Client
impl Client
Sourcepub fn get_export_job(&self) -> GetExportJobFluentBuilder
pub fn get_export_job(&self) -> GetExportJobFluentBuilder
Constructs a fluent builder for the GetExportJob operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
job_id(impl Into<String>)/set_job_id(Option<String>):
required: trueThe unique identifier for the job.
- On success, responds with
GetExportJobOutputwith field(s):export_job_response(Option<ExportJobResponse>):Provides information about the status and settings of a job that exports endpoint definitions to a file. The file can be added directly to an Amazon Simple Storage Service (Amazon S3) bucket by using the Amazon Pinpoint API or downloaded directly to a computer by using the Amazon Pinpoint console.
- On failure, responds with
SdkError<GetExportJobError>
Source§impl Client
impl Client
Sourcepub fn get_export_jobs(&self) -> GetExportJobsFluentBuilder
pub fn get_export_jobs(&self) -> GetExportJobsFluentBuilder
Constructs a fluent builder for the GetExportJobs operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
token(impl Into<String>)/set_token(Option<String>):
required: falseThe NextToken string that specifies which page of results to return in a paginated response.
- On success, responds with
GetExportJobsOutputwith field(s):export_jobs_response(Option<ExportJobsResponse>):Provides information about all the export jobs that are associated with an application or segment. An export job is a job that exports endpoint definitions to a file.
- On failure, responds with
SdkError<GetExportJobsError>
Source§impl Client
impl Client
Sourcepub fn get_gcm_channel(&self) -> GetGcmChannelFluentBuilder
pub fn get_gcm_channel(&self) -> GetGcmChannelFluentBuilder
Constructs a fluent builder for the GetGcmChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
GetGcmChannelOutputwith field(s):gcm_channel_response(Option<GcmChannelResponse>):Provides information about the status and settings of the GCM channel for an application. The GCM channel enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.
- On failure, responds with
SdkError<GetGcmChannelError>
Source§impl Client
impl Client
Sourcepub fn get_import_job(&self) -> GetImportJobFluentBuilder
pub fn get_import_job(&self) -> GetImportJobFluentBuilder
Constructs a fluent builder for the GetImportJob operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
job_id(impl Into<String>)/set_job_id(Option<String>):
required: trueThe unique identifier for the job.
- On success, responds with
GetImportJobOutputwith field(s):import_job_response(Option<ImportJobResponse>):Provides information about the status and settings of a job that imports endpoint definitions from one or more files. The files can be stored in an Amazon Simple Storage Service (Amazon S3) bucket or uploaded directly from a computer by using the Amazon Pinpoint console.
- On failure, responds with
SdkError<GetImportJobError>
Source§impl Client
impl Client
Sourcepub fn get_import_jobs(&self) -> GetImportJobsFluentBuilder
pub fn get_import_jobs(&self) -> GetImportJobsFluentBuilder
Constructs a fluent builder for the GetImportJobs operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
token(impl Into<String>)/set_token(Option<String>):
required: falseThe NextToken string that specifies which page of results to return in a paginated response.
- On success, responds with
GetImportJobsOutputwith field(s):import_jobs_response(Option<ImportJobsResponse>):Provides information about the status and settings of all the import jobs that are associated with an application or segment. An import job is a job that imports endpoint definitions from one or more files.
- On failure, responds with
SdkError<GetImportJobsError>
Source§impl Client
impl Client
Sourcepub fn get_in_app_messages(&self) -> GetInAppMessagesFluentBuilder
pub fn get_in_app_messages(&self) -> GetInAppMessagesFluentBuilder
Constructs a fluent builder for the GetInAppMessages operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
endpoint_id(impl Into<String>)/set_endpoint_id(Option<String>):
required: trueThe unique identifier for the endpoint.
- On success, responds with
GetInAppMessagesOutputwith field(s):in_app_messages_response(Option<InAppMessagesResponse>):Get in-app messages response object.
- On failure, responds with
SdkError<GetInAppMessagesError>
Source§impl Client
impl Client
Sourcepub fn get_in_app_template(&self) -> GetInAppTemplateFluentBuilder
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: trueThe 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: falseThe 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
GetInAppTemplateOutputwith field(s):in_app_template_response(Option<InAppTemplateResponse>):In-App Template Response.
- On failure, responds with
SdkError<GetInAppTemplateError>
Source§impl Client
impl Client
Sourcepub fn get_journey(&self) -> GetJourneyFluentBuilder
pub fn get_journey(&self) -> GetJourneyFluentBuilder
Constructs a fluent builder for the GetJourney operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
journey_id(impl Into<String>)/set_journey_id(Option<String>):
required: trueThe unique identifier for the journey.
- On success, responds with
GetJourneyOutputwith field(s):journey_response(Option<JourneyResponse>):Provides information about the status, configuration, and other settings for a journey.
- On failure, responds with
SdkError<GetJourneyError>
Source§impl Client
impl Client
Sourcepub fn get_journey_date_range_kpi(&self) -> GetJourneyDateRangeKpiFluentBuilder
pub fn get_journey_date_range_kpi(&self) -> GetJourneyDateRangeKpiFluentBuilder
Constructs a fluent builder for the GetJourneyDateRangeKpi operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
end_time(DateTime)/set_end_time(Option<DateTime>):
required: falseThe last date and time to retrieve data for, as part of an inclusive date range that filters the query results. This value should be in extended ISO 8601 format and use Coordinated Universal Time (UTC), for example: 2019-07-26T20:00:00Z for 8:00 PM UTC July 26, 2019.
journey_id(impl Into<String>)/set_journey_id(Option<String>):
required: trueThe unique identifier for the journey.
kpi_name(impl Into<String>)/set_kpi_name(Option<String>):
required: trueThe name of the metric, also referred to as a key performance indicator (KPI), to retrieve data for. This value describes the associated metric and consists of two or more terms, which are comprised of lowercase alphanumeric characters, separated by a hyphen. Examples are email-open-rate and successful-delivery-rate. For a list of valid values, see the Amazon Pinpoint Developer Guide.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe string that specifies which page of results to return in a paginated response. This parameter is not supported for application, campaign, and journey metrics.
page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
start_time(DateTime)/set_start_time(Option<DateTime>):
required: falseThe first date and time to retrieve data for, as part of an inclusive date range that filters the query results. This value should be in extended ISO 8601 format and use Coordinated Universal Time (UTC), for example: 2019-07-19T20:00:00Z for 8:00 PM UTC July 19, 2019. This value should also be fewer than 90 days from the current day.
- On success, responds with
GetJourneyDateRangeKpiOutputwith field(s):journey_date_range_kpi_response(Option<JourneyDateRangeKpiResponse>):Provides the results of a query that retrieved the data for a standard engagement metric that applies to a journey, and provides information about that query.
- On failure, responds with
SdkError<GetJourneyDateRangeKpiError>
Source§impl Client
impl Client
Sourcepub fn get_journey_execution_activity_metrics(
&self,
) -> GetJourneyExecutionActivityMetricsFluentBuilder
pub fn get_journey_execution_activity_metrics( &self, ) -> GetJourneyExecutionActivityMetricsFluentBuilder
Constructs a fluent builder for the GetJourneyExecutionActivityMetrics operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
journey_activity_id(impl Into<String>)/set_journey_activity_id(Option<String>):
required: trueThe unique identifier for the journey activity.
journey_id(impl Into<String>)/set_journey_id(Option<String>):
required: trueThe unique identifier for the journey.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe
string that specifies which page of results to return in a paginated response. This parameter is not supported for application, campaign, and journey metrics.page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
- On success, responds with
GetJourneyExecutionActivityMetricsOutputwith field(s):journey_execution_activity_metrics_response(Option<JourneyExecutionActivityMetricsResponse>):Provides the results of a query that retrieved the data for a standard execution metric that applies to a journey activity, and provides information about that query.
- On failure, responds with
SdkError<GetJourneyExecutionActivityMetricsError>
Source§impl Client
impl Client
Sourcepub fn get_journey_execution_metrics(
&self,
) -> GetJourneyExecutionMetricsFluentBuilder
pub fn get_journey_execution_metrics( &self, ) -> GetJourneyExecutionMetricsFluentBuilder
Constructs a fluent builder for the GetJourneyExecutionMetrics operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
journey_id(impl Into<String>)/set_journey_id(Option<String>):
required: trueThe unique identifier for the journey.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe
string that specifies which page of results to return in a paginated response. This parameter is not supported for application, campaign, and journey metrics.page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
- On success, responds with
GetJourneyExecutionMetricsOutputwith field(s):journey_execution_metrics_response(Option<JourneyExecutionMetricsResponse>):Provides the results of a query that retrieved the data for a standard execution metric that applies to a journey, and provides information about that query.
- On failure, responds with
SdkError<GetJourneyExecutionMetricsError>
Source§impl Client
impl Client
Sourcepub fn get_journey_run_execution_activity_metrics(
&self,
) -> GetJourneyRunExecutionActivityMetricsFluentBuilder
pub fn get_journey_run_execution_activity_metrics( &self, ) -> GetJourneyRunExecutionActivityMetricsFluentBuilder
Constructs a fluent builder for the GetJourneyRunExecutionActivityMetrics operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
journey_activity_id(impl Into<String>)/set_journey_activity_id(Option<String>):
required: trueThe unique identifier for the journey activity.
journey_id(impl Into<String>)/set_journey_id(Option<String>):
required: trueThe unique identifier for the journey.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe
string that specifies which page of results to return in a paginated response. This parameter is not supported for application, campaign, and journey metrics.page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
run_id(impl Into<String>)/set_run_id(Option<String>):
required: trueThe unique identifier for the journey run.
- On success, responds with
GetJourneyRunExecutionActivityMetricsOutputwith field(s):journey_run_execution_activity_metrics_response(Option<JourneyRunExecutionActivityMetricsResponse>):Provides the results of a query that retrieved the data for a standard execution metric that applies to a journey activity for a particular journey run, and provides information about that query.
- On failure, responds with
SdkError<GetJourneyRunExecutionActivityMetricsError>
Source§impl Client
impl Client
Sourcepub fn get_journey_run_execution_metrics(
&self,
) -> GetJourneyRunExecutionMetricsFluentBuilder
pub fn get_journey_run_execution_metrics( &self, ) -> GetJourneyRunExecutionMetricsFluentBuilder
Constructs a fluent builder for the GetJourneyRunExecutionMetrics operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
journey_id(impl Into<String>)/set_journey_id(Option<String>):
required: trueThe unique identifier for the journey.
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe
string that specifies which page of results to return in a paginated response. This parameter is not supported for application, campaign, and journey metrics.page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
run_id(impl Into<String>)/set_run_id(Option<String>):
required: trueThe unique identifier for the journey run.
- On success, responds with
GetJourneyRunExecutionMetricsOutputwith field(s):journey_run_execution_metrics_response(Option<JourneyRunExecutionMetricsResponse>):Provides the results of a query that retrieved the data for a standard execution metric that applies to a journey run, and provides information about that query.
- On failure, responds with
SdkError<GetJourneyRunExecutionMetricsError>
Source§impl Client
impl Client
Sourcepub fn get_journey_runs(&self) -> GetJourneyRunsFluentBuilder
pub fn get_journey_runs(&self) -> GetJourneyRunsFluentBuilder
Constructs a fluent builder for the GetJourneyRuns operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
journey_id(impl Into<String>)/set_journey_id(Option<String>):
required: trueThe unique identifier for the journey.
page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
token(impl Into<String>)/set_token(Option<String>):
required: falseThe NextToken string that specifies which page of results to return in a paginated response.
- On success, responds with
GetJourneyRunsOutputwith field(s):journey_runs_response(Option<JourneyRunsResponse>):Provides information from all runs of a journey.
- On failure, responds with
SdkError<GetJourneyRunsError>
Source§impl Client
impl Client
Sourcepub fn get_push_template(&self) -> GetPushTemplateFluentBuilder
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: trueThe 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: falseThe 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
GetPushTemplateOutputwith field(s):push_notification_template_response(Option<PushNotificationTemplateResponse>):Provides information about the content and settings for a message template that can be used in messages that are sent through a push notification channel.
- On failure, responds with
SdkError<GetPushTemplateError>
Source§impl Client
impl Client
Sourcepub fn get_recommender_configuration(
&self,
) -> GetRecommenderConfigurationFluentBuilder
pub fn get_recommender_configuration( &self, ) -> GetRecommenderConfigurationFluentBuilder
Constructs a fluent builder for the GetRecommenderConfiguration operation.
- The fluent builder is configurable:
recommender_id(impl Into<String>)/set_recommender_id(Option<String>):
required: trueThe unique identifier for the recommender model configuration. This identifier is displayed as the Recommender ID on the Amazon Pinpoint console.
- On success, responds with
GetRecommenderConfigurationOutputwith field(s):recommender_configuration_response(Option<RecommenderConfigurationResponse>):Provides information about Amazon Pinpoint configuration settings for retrieving and processing data from a recommender model.
- On failure, responds with
SdkError<GetRecommenderConfigurationError>
Source§impl Client
impl Client
Sourcepub fn get_recommender_configurations(
&self,
) -> GetRecommenderConfigurationsFluentBuilder
pub fn get_recommender_configurations( &self, ) -> GetRecommenderConfigurationsFluentBuilder
Constructs a fluent builder for the GetRecommenderConfigurations operation.
- The fluent builder is configurable:
page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
token(impl Into<String>)/set_token(Option<String>):
required: falseThe NextToken string that specifies which page of results to return in a paginated response.
- On success, responds with
GetRecommenderConfigurationsOutputwith field(s):list_recommender_configurations_response(Option<ListRecommenderConfigurationsResponse>):Provides information about all the recommender model configurations that are associated with your Amazon Pinpoint account.
- On failure, responds with
SdkError<GetRecommenderConfigurationsError>
Source§impl Client
impl Client
Sourcepub fn get_segment(&self) -> GetSegmentFluentBuilder
pub fn get_segment(&self) -> GetSegmentFluentBuilder
Constructs a fluent builder for the GetSegment operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
segment_id(impl Into<String>)/set_segment_id(Option<String>):
required: trueThe unique identifier for the segment.
- On success, responds with
GetSegmentOutputwith field(s):segment_response(Option<SegmentResponse>):Provides information about the configuration, dimension, and other settings for a segment.
- On failure, responds with
SdkError<GetSegmentError>
Source§impl Client
impl Client
Sourcepub fn get_segment_export_jobs(&self) -> GetSegmentExportJobsFluentBuilder
pub fn get_segment_export_jobs(&self) -> GetSegmentExportJobsFluentBuilder
Constructs a fluent builder for the GetSegmentExportJobs operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
segment_id(impl Into<String>)/set_segment_id(Option<String>):
required: trueThe unique identifier for the segment.
token(impl Into<String>)/set_token(Option<String>):
required: falseThe NextToken string that specifies which page of results to return in a paginated response.
- On success, responds with
GetSegmentExportJobsOutputwith field(s):export_jobs_response(Option<ExportJobsResponse>):Provides information about all the export jobs that are associated with an application or segment. An export job is a job that exports endpoint definitions to a file.
- On failure, responds with
SdkError<GetSegmentExportJobsError>
Source§impl Client
impl Client
Sourcepub fn get_segment_import_jobs(&self) -> GetSegmentImportJobsFluentBuilder
pub fn get_segment_import_jobs(&self) -> GetSegmentImportJobsFluentBuilder
Constructs a fluent builder for the GetSegmentImportJobs operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
segment_id(impl Into<String>)/set_segment_id(Option<String>):
required: trueThe unique identifier for the segment.
token(impl Into<String>)/set_token(Option<String>):
required: falseThe NextToken string that specifies which page of results to return in a paginated response.
- On success, responds with
GetSegmentImportJobsOutputwith field(s):import_jobs_response(Option<ImportJobsResponse>):Provides information about the status and settings of all the import jobs that are associated with an application or segment. An import job is a job that imports endpoint definitions from one or more files.
- On failure, responds with
SdkError<GetSegmentImportJobsError>
Source§impl Client
impl Client
Sourcepub fn get_segment_version(&self) -> GetSegmentVersionFluentBuilder
pub fn get_segment_version(&self) -> GetSegmentVersionFluentBuilder
Constructs a fluent builder for the GetSegmentVersion operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
segment_id(impl Into<String>)/set_segment_id(Option<String>):
required: trueThe unique identifier for the segment.
version(impl Into<String>)/set_version(Option<String>):
required: trueThe unique version number (Version property) for the campaign version.
- On success, responds with
GetSegmentVersionOutputwith field(s):segment_response(Option<SegmentResponse>):Provides information about the configuration, dimension, and other settings for a segment.
- On failure, responds with
SdkError<GetSegmentVersionError>
Source§impl Client
impl Client
Sourcepub fn get_segment_versions(&self) -> GetSegmentVersionsFluentBuilder
pub fn get_segment_versions(&self) -> GetSegmentVersionsFluentBuilder
Constructs a fluent builder for the GetSegmentVersions operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
segment_id(impl Into<String>)/set_segment_id(Option<String>):
required: trueThe unique identifier for the segment.
token(impl Into<String>)/set_token(Option<String>):
required: falseThe NextToken string that specifies which page of results to return in a paginated response.
- On success, responds with
GetSegmentVersionsOutputwith field(s):segments_response(Option<SegmentsResponse>):Provides information about all the segments that are associated with an application.
- On failure, responds with
SdkError<GetSegmentVersionsError>
Source§impl Client
impl Client
Sourcepub fn get_segments(&self) -> GetSegmentsFluentBuilder
pub fn get_segments(&self) -> GetSegmentsFluentBuilder
Constructs a fluent builder for the GetSegments operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
token(impl Into<String>)/set_token(Option<String>):
required: falseThe NextToken string that specifies which page of results to return in a paginated response.
- On success, responds with
GetSegmentsOutputwith field(s):segments_response(Option<SegmentsResponse>):Provides information about all the segments that are associated with an application.
- On failure, responds with
SdkError<GetSegmentsError>
Source§impl Client
impl Client
Sourcepub fn get_sms_channel(&self) -> GetSmsChannelFluentBuilder
pub fn get_sms_channel(&self) -> GetSmsChannelFluentBuilder
Constructs a fluent builder for the GetSmsChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
GetSmsChannelOutputwith field(s):sms_channel_response(Option<SmsChannelResponse>):Provides information about the status and settings of the SMS channel for an application.
- On failure, responds with
SdkError<GetSmsChannelError>
Source§impl Client
impl Client
Sourcepub fn get_sms_template(&self) -> GetSmsTemplateFluentBuilder
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: trueThe 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: falseThe 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
GetSmsTemplateOutputwith field(s):sms_template_response(Option<SmsTemplateResponse>):Provides information about the content and settings for a message template that can be used in text messages that are sent through the SMS channel.
- On failure, responds with
SdkError<GetSmsTemplateError>
Source§impl Client
impl Client
Sourcepub fn get_user_endpoints(&self) -> GetUserEndpointsFluentBuilder
pub fn get_user_endpoints(&self) -> GetUserEndpointsFluentBuilder
Constructs a fluent builder for the GetUserEndpoints operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
user_id(impl Into<String>)/set_user_id(Option<String>):
required: trueThe unique identifier for the user.
- On success, responds with
GetUserEndpointsOutputwith field(s):endpoints_response(Option<EndpointsResponse>):Provides information about all the endpoints that are associated with a user ID.
- On failure, responds with
SdkError<GetUserEndpointsError>
Source§impl Client
impl Client
Sourcepub fn get_voice_channel(&self) -> GetVoiceChannelFluentBuilder
pub fn get_voice_channel(&self) -> GetVoiceChannelFluentBuilder
Constructs a fluent builder for the GetVoiceChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
GetVoiceChannelOutputwith field(s):voice_channel_response(Option<VoiceChannelResponse>):Provides information about the status and settings of the voice channel for an application.
- On failure, responds with
SdkError<GetVoiceChannelError>
Source§impl Client
impl Client
Sourcepub fn get_voice_template(&self) -> GetVoiceTemplateFluentBuilder
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: trueThe 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: falseThe 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
GetVoiceTemplateOutputwith field(s):voice_template_response(Option<VoiceTemplateResponse>):Provides information about the content and settings for a message template that can be used in messages that are sent through the voice channel.
- On failure, responds with
SdkError<GetVoiceTemplateError>
Source§impl Client
impl Client
Sourcepub fn list_journeys(&self) -> ListJourneysFluentBuilder
pub fn list_journeys(&self) -> ListJourneysFluentBuilder
Constructs a fluent builder for the ListJourneys operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
token(impl Into<String>)/set_token(Option<String>):
required: falseThe NextToken string that specifies which page of results to return in a paginated response.
- On success, responds with
ListJourneysOutputwith field(s):journeys_response(Option<JourneysResponse>):Provides information about the status, configuration, and other settings for all the journeys that are associated with an application.
- On failure, responds with
SdkError<ListJourneysError>
Source§impl Client
impl Client
Constructs a fluent builder for the ListTagsForResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the resource.
- On success, responds with
ListTagsForResourceOutputwith field(s):tags_model(Option<TagsModel>):Specifies the tags (keys and values) for an application, campaign, message template, or segment.
- On failure, responds with
SdkError<ListTagsForResourceError>
Source§impl Client
impl Client
Sourcepub fn list_template_versions(&self) -> ListTemplateVersionsFluentBuilder
pub fn list_template_versions(&self) -> ListTemplateVersionsFluentBuilder
Constructs a fluent builder for the ListTemplateVersions operation.
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe string that specifies which page of results to return in a paginated response. This parameter is not supported for application, campaign, and journey metrics.
page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
template_name(impl Into<String>)/set_template_name(Option<String>):
required: trueThe 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.
template_type(impl Into<String>)/set_template_type(Option<String>):
required: trueThe type of channel that the message template is designed for. Valid values are: EMAIL, PUSH, SMS, and VOICE.
- On success, responds with
ListTemplateVersionsOutputwith field(s):template_versions_response(Option<TemplateVersionsResponse>):Provides information about all the versions of a specific message template.
- On failure, responds with
SdkError<ListTemplateVersionsError>
Source§impl Client
impl Client
Sourcepub fn list_templates(&self) -> ListTemplatesFluentBuilder
pub fn list_templates(&self) -> ListTemplatesFluentBuilder
Constructs a fluent builder for the ListTemplates operation.
- The fluent builder is configurable:
next_token(impl Into<String>)/set_next_token(Option<String>):
required: falseThe string that specifies which page of results to return in a paginated response. This parameter is not supported for application, campaign, and journey metrics.
page_size(impl Into<String>)/set_page_size(Option<String>):
required: falseThe maximum number of items to include in each page of a paginated response. This parameter is not supported for application, campaign, and journey metrics.
prefix(impl Into<String>)/set_prefix(Option<String>):
required: falseThe substring to match in the names of the message templates to include in the results. If you specify this value, Amazon Pinpoint returns only those templates whose names begin with the value that you specify.
template_type(impl Into<String>)/set_template_type(Option<String>):
required: falseThe type of message template to include in the results. Valid values are: EMAIL, PUSH, SMS, and VOICE. To include all types of templates in the results, don’t include this parameter in your request.
- On success, responds with
ListTemplatesOutputwith field(s):templates_response(Option<TemplatesResponse>):Provides information about all the message templates that are associated with your Amazon Pinpoint account.
- On failure, responds with
SdkError<ListTemplatesError>
Source§impl Client
impl Client
Sourcepub fn phone_number_validate(&self) -> PhoneNumberValidateFluentBuilder
pub fn phone_number_validate(&self) -> PhoneNumberValidateFluentBuilder
Constructs a fluent builder for the PhoneNumberValidate operation.
- The fluent builder is configurable:
number_validate_request(NumberValidateRequest)/set_number_validate_request(Option<NumberValidateRequest>):
required: trueSpecifies a phone number to validate and retrieve information about.
- On success, responds with
PhoneNumberValidateOutputwith field(s):number_validate_response(Option<NumberValidateResponse>):Provides information about a phone number.
- On failure, responds with
SdkError<PhoneNumberValidateError>
Source§impl Client
impl Client
Sourcepub fn put_event_stream(&self) -> PutEventStreamFluentBuilder
pub fn put_event_stream(&self) -> PutEventStreamFluentBuilder
Constructs a fluent builder for the PutEventStream operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
write_event_stream(WriteEventStream)/set_write_event_stream(Option<WriteEventStream>):
required: trueSpecifies the Amazon Resource Name (ARN) of an event stream to publish events to and the AWS Identity and Access Management (IAM) role to use when publishing those events.
- On success, responds with
PutEventStreamOutputwith field(s):event_stream(Option<EventStream>):Specifies settings for publishing event data to an Amazon Kinesis data stream or an Amazon Kinesis Data Firehose delivery stream.
- On failure, responds with
SdkError<PutEventStreamError>
Source§impl Client
impl Client
Sourcepub fn put_events(&self) -> PutEventsFluentBuilder
pub fn put_events(&self) -> PutEventsFluentBuilder
Constructs a fluent builder for the PutEvents operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
events_request(EventsRequest)/set_events_request(Option<EventsRequest>):
required: trueSpecifies a batch of events to process.
- On success, responds with
PutEventsOutputwith field(s):events_response(Option<EventsResponse>):Provides information about endpoints and the events that they’re associated with.
- On failure, responds with
SdkError<PutEventsError>
Source§impl Client
impl Client
Sourcepub fn remove_attributes(&self) -> RemoveAttributesFluentBuilder
pub fn remove_attributes(&self) -> RemoveAttributesFluentBuilder
Constructs a fluent builder for the RemoveAttributes operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
attribute_type(impl Into<String>)/set_attribute_type(Option<String>):
required: trueThe type of attribute or attributes to remove. Valid values are:
-
endpoint-custom-attributes - Custom attributes that describe endpoints, such as the date when an associated user opted in or out of receiving communications from you through a specific type of channel.
-
endpoint-metric-attributes - Custom metrics that your app reports to Amazon Pinpoint for endpoints, such as the number of app sessions or the number of items left in a cart.
-
endpoint-user-attributes - Custom attributes that describe users, such as first name, last name, and age.
-
update_attributes_request(UpdateAttributesRequest)/set_update_attributes_request(Option<UpdateAttributesRequest>):
required: trueSpecifies one or more attributes to remove from all the endpoints that are associated with an application.
- On success, responds with
RemoveAttributesOutputwith field(s):attributes_resource(Option<AttributesResource>):Provides information about the type and the names of attributes that were removed from all the endpoints that are associated with an application.
- On failure, responds with
SdkError<RemoveAttributesError>
Source§impl Client
impl Client
Sourcepub fn send_messages(&self) -> SendMessagesFluentBuilder
pub fn send_messages(&self) -> SendMessagesFluentBuilder
Constructs a fluent builder for the SendMessages operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
message_request(MessageRequest)/set_message_request(Option<MessageRequest>):
required: trueSpecifies the configuration and other settings for a message.
- On success, responds with
SendMessagesOutputwith field(s):message_response(Option<MessageResponse>):Provides information about the results of a request to send a message to an endpoint address.
- On failure, responds with
SdkError<SendMessagesError>
Source§impl Client
impl Client
Sourcepub fn send_otp_message(&self) -> SendOTPMessageFluentBuilder
pub fn send_otp_message(&self) -> SendOTPMessageFluentBuilder
Constructs a fluent builder for the SendOTPMessage operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique ID of your Amazon Pinpoint application.
send_otp_message_request_parameters(SendOtpMessageRequestParameters)/set_send_otp_message_request_parameters(Option<SendOtpMessageRequestParameters>):
required: trueSend OTP message request parameters.
- On success, responds with
SendOtpMessageOutputwith field(s):message_response(Option<MessageResponse>):Provides information about the results of a request to send a message to an endpoint address.
- On failure, responds with
SdkError<SendOTPMessageError>
Source§impl Client
impl Client
Sourcepub fn send_users_messages(&self) -> SendUsersMessagesFluentBuilder
pub fn send_users_messages(&self) -> SendUsersMessagesFluentBuilder
Constructs a fluent builder for the SendUsersMessages operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
send_users_message_request(SendUsersMessageRequest)/set_send_users_message_request(Option<SendUsersMessageRequest>):
required: trueSpecifies the configuration and other settings for a message to send to all the endpoints that are associated with a list of users.
- On success, responds with
SendUsersMessagesOutputwith field(s):send_users_message_response(Option<SendUsersMessageResponse>):Provides information about which users and endpoints a message was sent to.
- On failure, responds with
SdkError<SendUsersMessagesError>
Source§impl Client
impl Client
Sourcepub fn tag_resource(&self) -> TagResourceFluentBuilder
pub fn tag_resource(&self) -> TagResourceFluentBuilder
Constructs a fluent builder for the TagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the resource.
tags_model(TagsModel)/set_tags_model(Option<TagsModel>):
required: trueSpecifies the tags (keys and values) for an application, campaign, message template, or segment.
- On success, responds with
TagResourceOutput - On failure, responds with
SdkError<TagResourceError>
Source§impl Client
impl Client
Sourcepub fn untag_resource(&self) -> UntagResourceFluentBuilder
pub fn untag_resource(&self) -> UntagResourceFluentBuilder
Constructs a fluent builder for the UntagResource operation.
- The fluent builder is configurable:
resource_arn(impl Into<String>)/set_resource_arn(Option<String>):
required: trueThe Amazon Resource Name (ARN) of the resource.
tag_keys(impl Into<String>)/set_tag_keys(Option<Vec::<String>>):
required: trueThe key of the tag to remove from the resource. To remove multiple tags, append the tagKeys parameter and argument for each additional tag to remove, separated by an ampersand (&).
- On success, responds with
UntagResourceOutput - On failure, responds with
SdkError<UntagResourceError>
Source§impl Client
impl Client
Sourcepub fn update_adm_channel(&self) -> UpdateAdmChannelFluentBuilder
pub fn update_adm_channel(&self) -> UpdateAdmChannelFluentBuilder
Constructs a fluent builder for the UpdateAdmChannel operation.
- The fluent builder is configurable:
adm_channel_request(AdmChannelRequest)/set_adm_channel_request(Option<AdmChannelRequest>):
required: trueSpecifies the status and settings of the ADM (Amazon Device Messaging) channel for an application.
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
UpdateAdmChannelOutputwith field(s):adm_channel_response(Option<AdmChannelResponse>):Provides information about the status and settings of the ADM (Amazon Device Messaging) channel for an application.
- On failure, responds with
SdkError<UpdateAdmChannelError>
Source§impl Client
impl Client
Sourcepub fn update_apns_channel(&self) -> UpdateApnsChannelFluentBuilder
pub fn update_apns_channel(&self) -> UpdateApnsChannelFluentBuilder
Constructs a fluent builder for the UpdateApnsChannel operation.
- The fluent builder is configurable:
apns_channel_request(ApnsChannelRequest)/set_apns_channel_request(Option<ApnsChannelRequest>):
required: trueSpecifies the status and settings of the APNs (Apple Push Notification service) channel for an application.
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
UpdateApnsChannelOutputwith field(s):apns_channel_response(Option<ApnsChannelResponse>):Provides information about the status and settings of the APNs (Apple Push Notification service) channel for an application.
- On failure, responds with
SdkError<UpdateApnsChannelError>
Source§impl Client
impl Client
Sourcepub fn update_apns_sandbox_channel(
&self,
) -> UpdateApnsSandboxChannelFluentBuilder
pub fn update_apns_sandbox_channel( &self, ) -> UpdateApnsSandboxChannelFluentBuilder
Constructs a fluent builder for the UpdateApnsSandboxChannel operation.
- The fluent builder is configurable:
apns_sandbox_channel_request(ApnsSandboxChannelRequest)/set_apns_sandbox_channel_request(Option<ApnsSandboxChannelRequest>):
required: trueSpecifies the status and settings of the APNs (Apple Push Notification service) sandbox channel for an application.
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
UpdateApnsSandboxChannelOutputwith field(s):apns_sandbox_channel_response(Option<ApnsSandboxChannelResponse>):Provides information about the status and settings of the APNs (Apple Push Notification service) sandbox channel for an application.
- On failure, responds with
SdkError<UpdateApnsSandboxChannelError>
Source§impl Client
impl Client
Sourcepub fn update_apns_voip_channel(&self) -> UpdateApnsVoipChannelFluentBuilder
pub fn update_apns_voip_channel(&self) -> UpdateApnsVoipChannelFluentBuilder
Constructs a fluent builder for the UpdateApnsVoipChannel operation.
- The fluent builder is configurable:
apns_voip_channel_request(ApnsVoipChannelRequest)/set_apns_voip_channel_request(Option<ApnsVoipChannelRequest>):
required: trueSpecifies the status and settings of the APNs (Apple Push Notification service) VoIP channel for an application.
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
UpdateApnsVoipChannelOutputwith field(s):apns_voip_channel_response(Option<ApnsVoipChannelResponse>):Provides information about the status and settings of the APNs (Apple Push Notification service) VoIP channel for an application.
- On failure, responds with
SdkError<UpdateApnsVoipChannelError>
Source§impl Client
impl Client
Sourcepub fn update_apns_voip_sandbox_channel(
&self,
) -> UpdateApnsVoipSandboxChannelFluentBuilder
pub fn update_apns_voip_sandbox_channel( &self, ) -> UpdateApnsVoipSandboxChannelFluentBuilder
Constructs a fluent builder for the UpdateApnsVoipSandboxChannel operation.
- The fluent builder is configurable:
apns_voip_sandbox_channel_request(ApnsVoipSandboxChannelRequest)/set_apns_voip_sandbox_channel_request(Option<ApnsVoipSandboxChannelRequest>):
required: trueSpecifies the status and settings of the APNs (Apple Push Notification service) VoIP sandbox channel for an application.
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
- On success, responds with
UpdateApnsVoipSandboxChannelOutputwith field(s):apns_voip_sandbox_channel_response(Option<ApnsVoipSandboxChannelResponse>):Provides information about the status and settings of the APNs (Apple Push Notification service) VoIP sandbox channel for an application.
- On failure, responds with
SdkError<UpdateApnsVoipSandboxChannelError>
Source§impl Client
impl Client
Sourcepub fn update_application_settings(
&self,
) -> UpdateApplicationSettingsFluentBuilder
pub fn update_application_settings( &self, ) -> UpdateApplicationSettingsFluentBuilder
Constructs a fluent builder for the UpdateApplicationSettings operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
write_application_settings_request(WriteApplicationSettingsRequest)/set_write_application_settings_request(Option<WriteApplicationSettingsRequest>):
required: trueSpecifies the default settings for an application.
- On success, responds with
UpdateApplicationSettingsOutputwith field(s):application_settings_resource(Option<ApplicationSettingsResource>):Provides information about an application, including the default settings for an application.
- On failure, responds with
SdkError<UpdateApplicationSettingsError>
Source§impl Client
impl Client
Sourcepub fn update_baidu_channel(&self) -> UpdateBaiduChannelFluentBuilder
pub fn update_baidu_channel(&self) -> UpdateBaiduChannelFluentBuilder
Constructs a fluent builder for the UpdateBaiduChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
baidu_channel_request(BaiduChannelRequest)/set_baidu_channel_request(Option<BaiduChannelRequest>):
required: trueSpecifies the status and settings of the Baidu (Baidu Cloud Push) channel for an application.
- On success, responds with
UpdateBaiduChannelOutputwith field(s):baidu_channel_response(Option<BaiduChannelResponse>):Provides information about the status and settings of the Baidu (Baidu Cloud Push) channel for an application.
- On failure, responds with
SdkError<UpdateBaiduChannelError>
Source§impl Client
impl Client
Sourcepub fn update_campaign(&self) -> UpdateCampaignFluentBuilder
pub fn update_campaign(&self) -> UpdateCampaignFluentBuilder
Constructs a fluent builder for the UpdateCampaign operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
campaign_id(impl Into<String>)/set_campaign_id(Option<String>):
required: trueThe unique identifier for the campaign.
write_campaign_request(WriteCampaignRequest)/set_write_campaign_request(Option<WriteCampaignRequest>):
required: trueSpecifies the configuration and other settings for a campaign.
- On success, responds with
UpdateCampaignOutputwith field(s):campaign_response(Option<CampaignResponse>):Provides information about the status, configuration, and other settings for a campaign.
- On failure, responds with
SdkError<UpdateCampaignError>
Source§impl Client
impl Client
Sourcepub fn update_email_channel(&self) -> UpdateEmailChannelFluentBuilder
pub fn update_email_channel(&self) -> UpdateEmailChannelFluentBuilder
Constructs a fluent builder for the UpdateEmailChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
email_channel_request(EmailChannelRequest)/set_email_channel_request(Option<EmailChannelRequest>):
required: trueSpecifies the status and settings of the email channel for an application.
- On success, responds with
UpdateEmailChannelOutputwith field(s):email_channel_response(Option<EmailChannelResponse>):Provides information about the status and settings of the email channel for an application.
- On failure, responds with
SdkError<UpdateEmailChannelError>
Source§impl Client
impl Client
Sourcepub fn update_email_template(&self) -> UpdateEmailTemplateFluentBuilder
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: falseSpecifies 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: trueSpecifies 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: trueThe 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: falseThe 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
UpdateEmailTemplateOutputwith field(s):message_body(Option<MessageBody>):Provides information about an API request or response.
- On failure, responds with
SdkError<UpdateEmailTemplateError>
Source§impl Client
impl Client
Sourcepub fn update_endpoint(&self) -> UpdateEndpointFluentBuilder
pub fn update_endpoint(&self) -> UpdateEndpointFluentBuilder
Constructs a fluent builder for the UpdateEndpoint operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
endpoint_id(impl Into<String>)/set_endpoint_id(Option<String>):
required: trueThe case insensitive unique identifier for the endpoint. The identifier can’t contain
$,{or}.endpoint_request(EndpointRequest)/set_endpoint_request(Option<EndpointRequest>):
required: trueSpecifies the channel type and other settings for an endpoint.
- On success, responds with
UpdateEndpointOutputwith field(s):message_body(Option<MessageBody>):Provides information about an API request or response.
- On failure, responds with
SdkError<UpdateEndpointError>
Source§impl Client
impl Client
Sourcepub fn update_endpoints_batch(&self) -> UpdateEndpointsBatchFluentBuilder
pub fn update_endpoints_batch(&self) -> UpdateEndpointsBatchFluentBuilder
Constructs a fluent builder for the UpdateEndpointsBatch operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
endpoint_batch_request(EndpointBatchRequest)/set_endpoint_batch_request(Option<EndpointBatchRequest>):
required: trueSpecifies a batch of endpoints to create or update and the settings and attributes to set or change for each endpoint.
- On success, responds with
UpdateEndpointsBatchOutputwith field(s):message_body(Option<MessageBody>):Provides information about an API request or response.
- On failure, responds with
SdkError<UpdateEndpointsBatchError>
Source§impl Client
impl Client
Sourcepub fn update_gcm_channel(&self) -> UpdateGcmChannelFluentBuilder
pub fn update_gcm_channel(&self) -> UpdateGcmChannelFluentBuilder
Constructs a fluent builder for the UpdateGcmChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
gcm_channel_request(GcmChannelRequest)/set_gcm_channel_request(Option<GcmChannelRequest>):
required: trueSpecifies the status and settings of the GCM channel for an application. This channel enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.
- On success, responds with
UpdateGcmChannelOutputwith field(s):gcm_channel_response(Option<GcmChannelResponse>):Provides information about the status and settings of the GCM channel for an application. The GCM channel enables Amazon Pinpoint to send push notifications through the Firebase Cloud Messaging (FCM), formerly Google Cloud Messaging (GCM), service.
- On failure, responds with
SdkError<UpdateGcmChannelError>
Source§impl Client
impl Client
Sourcepub fn update_in_app_template(&self) -> UpdateInAppTemplateFluentBuilder
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: falseSpecifies 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: trueInApp Template Request.
template_name(impl Into<String>)/set_template_name(Option<String>):
required: trueThe 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: falseThe 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
UpdateInAppTemplateOutputwith field(s):message_body(Option<MessageBody>):Provides information about an API request or response.
- On failure, responds with
SdkError<UpdateInAppTemplateError>
Source§impl Client
impl Client
Sourcepub fn update_journey(&self) -> UpdateJourneyFluentBuilder
pub fn update_journey(&self) -> UpdateJourneyFluentBuilder
Constructs a fluent builder for the UpdateJourney operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
journey_id(impl Into<String>)/set_journey_id(Option<String>):
required: trueThe unique identifier for the journey.
write_journey_request(WriteJourneyRequest)/set_write_journey_request(Option<WriteJourneyRequest>):
required: trueSpecifies the configuration and other settings for a journey.
- On success, responds with
UpdateJourneyOutputwith field(s):journey_response(Option<JourneyResponse>):Provides information about the status, configuration, and other settings for a journey.
- On failure, responds with
SdkError<UpdateJourneyError>
Source§impl Client
impl Client
Sourcepub fn update_journey_state(&self) -> UpdateJourneyStateFluentBuilder
pub fn update_journey_state(&self) -> UpdateJourneyStateFluentBuilder
Constructs a fluent builder for the UpdateJourneyState operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
journey_id(impl Into<String>)/set_journey_id(Option<String>):
required: trueThe unique identifier for the journey.
journey_state_request(JourneyStateRequest)/set_journey_state_request(Option<JourneyStateRequest>):
required: trueChanges the status of a journey.
- On success, responds with
UpdateJourneyStateOutputwith field(s):journey_response(Option<JourneyResponse>):Provides information about the status, configuration, and other settings for a journey.
- On failure, responds with
SdkError<UpdateJourneyStateError>
Source§impl Client
impl Client
Sourcepub fn update_push_template(&self) -> UpdatePushTemplateFluentBuilder
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: falseSpecifies 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: trueSpecifies 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: trueThe 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: falseThe 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
UpdatePushTemplateOutputwith field(s):message_body(Option<MessageBody>):Provides information about an API request or response.
- On failure, responds with
SdkError<UpdatePushTemplateError>
Source§impl Client
impl Client
Sourcepub fn update_recommender_configuration(
&self,
) -> UpdateRecommenderConfigurationFluentBuilder
pub fn update_recommender_configuration( &self, ) -> UpdateRecommenderConfigurationFluentBuilder
Constructs a fluent builder for the UpdateRecommenderConfiguration operation.
- The fluent builder is configurable:
recommender_id(impl Into<String>)/set_recommender_id(Option<String>):
required: trueThe unique identifier for the recommender model configuration. This identifier is displayed as the Recommender ID on the Amazon Pinpoint console.
update_recommender_configuration(UpdateRecommenderConfigurationShape)/set_update_recommender_configuration(Option<UpdateRecommenderConfigurationShape>):
required: trueSpecifies Amazon Pinpoint configuration settings for retrieving and processing recommendation data from a recommender model.
- On success, responds with
UpdateRecommenderConfigurationOutputwith field(s):recommender_configuration_response(Option<RecommenderConfigurationResponse>):Provides information about Amazon Pinpoint configuration settings for retrieving and processing data from a recommender model.
- On failure, responds with
SdkError<UpdateRecommenderConfigurationError>
Source§impl Client
impl Client
Sourcepub fn update_segment(&self) -> UpdateSegmentFluentBuilder
pub fn update_segment(&self) -> UpdateSegmentFluentBuilder
Constructs a fluent builder for the UpdateSegment operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
segment_id(impl Into<String>)/set_segment_id(Option<String>):
required: trueThe unique identifier for the segment.
write_segment_request(WriteSegmentRequest)/set_write_segment_request(Option<WriteSegmentRequest>):
required: trueSpecifies the configuration, dimension, and other settings for a segment. A WriteSegmentRequest object can include a Dimensions object or a SegmentGroups object, but not both.
- On success, responds with
UpdateSegmentOutputwith field(s):segment_response(Option<SegmentResponse>):Provides information about the configuration, dimension, and other settings for a segment.
- On failure, responds with
SdkError<UpdateSegmentError>
Source§impl Client
impl Client
Sourcepub fn update_sms_channel(&self) -> UpdateSmsChannelFluentBuilder
pub fn update_sms_channel(&self) -> UpdateSmsChannelFluentBuilder
Constructs a fluent builder for the UpdateSmsChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
sms_channel_request(SmsChannelRequest)/set_sms_channel_request(Option<SmsChannelRequest>):
required: trueSpecifies the status and settings of the SMS channel for an application.
- On success, responds with
UpdateSmsChannelOutputwith field(s):sms_channel_response(Option<SmsChannelResponse>):Provides information about the status and settings of the SMS channel for an application.
- On failure, responds with
SdkError<UpdateSmsChannelError>
Source§impl Client
impl Client
Sourcepub fn update_sms_template(&self) -> UpdateSmsTemplateFluentBuilder
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: falseSpecifies 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: trueSpecifies 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: trueThe 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: falseThe 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
UpdateSmsTemplateOutputwith field(s):message_body(Option<MessageBody>):Provides information about an API request or response.
- On failure, responds with
SdkError<UpdateSmsTemplateError>
Source§impl Client
impl Client
Sourcepub fn update_template_active_version(
&self,
) -> UpdateTemplateActiveVersionFluentBuilder
pub fn update_template_active_version( &self, ) -> UpdateTemplateActiveVersionFluentBuilder
Constructs a fluent builder for the UpdateTemplateActiveVersion operation.
- The fluent builder is configurable:
template_active_version_request(TemplateActiveVersionRequest)/set_template_active_version_request(Option<TemplateActiveVersionRequest>):
required: trueSpecifies which version of a message template to use as the active version of the template.
template_name(impl Into<String>)/set_template_name(Option<String>):
required: trueThe 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.
template_type(impl Into<String>)/set_template_type(Option<String>):
required: trueThe type of channel that the message template is designed for. Valid values are: EMAIL, PUSH, SMS, and VOICE.
- On success, responds with
UpdateTemplateActiveVersionOutputwith field(s):message_body(Option<MessageBody>):Provides information about an API request or response.
- On failure, responds with
SdkError<UpdateTemplateActiveVersionError>
Source§impl Client
impl Client
Sourcepub fn update_voice_channel(&self) -> UpdateVoiceChannelFluentBuilder
pub fn update_voice_channel(&self) -> UpdateVoiceChannelFluentBuilder
Constructs a fluent builder for the UpdateVoiceChannel operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
voice_channel_request(VoiceChannelRequest)/set_voice_channel_request(Option<VoiceChannelRequest>):
required: trueSpecifies the status and settings of the voice channel for an application.
- On success, responds with
UpdateVoiceChannelOutputwith field(s):voice_channel_response(Option<VoiceChannelResponse>):Provides information about the status and settings of the voice channel for an application.
- On failure, responds with
SdkError<UpdateVoiceChannelError>
Source§impl Client
impl Client
Sourcepub fn update_voice_template(&self) -> UpdateVoiceTemplateFluentBuilder
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: falseSpecifies 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: trueThe 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: falseThe 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: trueSpecifies 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
UpdateVoiceTemplateOutputwith field(s):message_body(Option<MessageBody>):Provides information about an API request or response.
- On failure, responds with
SdkError<UpdateVoiceTemplateError>
Source§impl Client
impl Client
Sourcepub fn verify_otp_message(&self) -> VerifyOTPMessageFluentBuilder
pub fn verify_otp_message(&self) -> VerifyOTPMessageFluentBuilder
Constructs a fluent builder for the VerifyOTPMessage operation.
- The fluent builder is configurable:
application_id(impl Into<String>)/set_application_id(Option<String>):
required: trueThe unique ID of your Amazon Pinpoint application.
verify_otp_message_request_parameters(VerifyOtpMessageRequestParameters)/set_verify_otp_message_request_parameters(Option<VerifyOtpMessageRequestParameters>):
required: trueVerify OTP message request.
- On success, responds with
VerifyOtpMessageOutputwith field(s):verification_response(Option<VerificationResponse>):Verify OTP Message Response.
- On failure, responds with
SdkError<VerifyOTPMessageError>
Source§impl Client
impl Client
Sourcepub fn from_conf(conf: Config) -> Self
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_implconfigured. - Identity caching is enabled without a
sleep_implandtime_sourceconfigured. - No
behavior_versionis provided.
The panic message for each of these will have instructions on how to resolve them.
Source§impl Client
impl Client
Sourcepub fn new(sdk_config: &SdkConfig) -> Self
pub fn new(sdk_config: &SdkConfig) -> Self
Creates a new client from an SDK Config.
§Panics
- This method will panic if the
sdk_configis missing an async sleep implementation. If you experience this panic, set thesleep_implon the Config passed into this function to fix it. - This method will panic if the
sdk_configis missing an HTTP connector. If you experience this panic, set thehttp_connectoron the Config passed into this function to fix it. - This method will panic if no
BehaviorVersionis provided. If you experience this panic, setbehavior_versionon the Config or enable thebehavior-version-latestCargo feature.
Trait Implementations§
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi Quirk value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);