You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::Pinpoint::Client
- Inherits:
-
Seahorse::Client::Base
- Object
- Seahorse::Client::Base
- Aws::Pinpoint::Client
- Defined in:
- (unknown)
Overview
An API client for Amazon Pinpoint. To construct a client, you need to configure a :region
and :credentials
.
pinpoint = Aws::Pinpoint::Client.new(
region: region_name,
credentials: credentials,
# ...
)
See #initialize for a full list of supported configuration options.
Region
You can configure a default region in the following locations:
ENV['AWS_REGION']
Aws.config[:region]
Go here for a list of supported regions.
Credentials
Default credentials are loaded automatically from the following locations:
ENV['AWS_ACCESS_KEY_ID']
andENV['AWS_SECRET_ACCESS_KEY']
Aws.config[:credentials]
- The shared credentials ini file at
~/.aws/credentials
(more information) - From an instance profile when running on EC2
You can also construct a credentials object from one of the following classes:
Alternatively, you configure credentials with :access_key_id
and
:secret_access_key
:
# load credentials from disk
creds = YAML.load(File.read('/path/to/secrets'))
Aws::Pinpoint::Client.new(
access_key_id: creds['access_key_id'],
secret_access_key: creds['secret_access_key']
)
Always load your credentials from outside your application. Avoid configuring credentials statically and never commit them to source control.
Instance Attribute Summary
Attributes inherited from Seahorse::Client::Base
Constructor collapse
-
#initialize(options = {}) ⇒ Aws::Pinpoint::Client
constructor
Constructs an API client.
API Operations collapse
-
#create_app(options = {}) ⇒ Types::CreateAppResponse
Creates an application.
.
-
#create_campaign(options = {}) ⇒ Types::CreateCampaignResponse
Creates a new campaign for an application or updates the settings of an existing campaign for an application.
.
-
#create_email_template(options = {}) ⇒ Types::CreateEmailTemplateResponse
Creates a message template for messages that are sent through the email channel.
.
-
#create_export_job(options = {}) ⇒ Types::CreateExportJobResponse
Creates an export job for an application.
.
-
#create_import_job(options = {}) ⇒ Types::CreateImportJobResponse
Creates an import job for an application.
.
-
#create_journey(options = {}) ⇒ Types::CreateJourneyResponse
Creates a journey for an application.
.
-
#create_push_template(options = {}) ⇒ Types::CreatePushTemplateResponse
Creates a message template for messages that are sent through a push notification channel.
.
-
#create_recommender_configuration(options = {}) ⇒ Types::CreateRecommenderConfigurationResponse
Creates an Amazon Pinpoint configuration for a recommender model.
.
-
#create_segment(options = {}) ⇒ Types::CreateSegmentResponse
Creates a new segment for an application or updates the configuration, dimension, and other settings for an existing segment that's associated with an application.
.
-
#create_sms_template(options = {}) ⇒ Types::CreateSmsTemplateResponse
Creates a message template for messages that are sent through the SMS channel.
.
-
#create_voice_template(options = {}) ⇒ Types::CreateVoiceTemplateResponse
Creates a message template for messages that are sent through the voice channel.
.
-
#delete_adm_channel(options = {}) ⇒ Types::DeleteAdmChannelResponse
Disables the ADM channel for an application and deletes any existing settings for the channel.
.
-
#delete_apns_channel(options = {}) ⇒ Types::DeleteApnsChannelResponse
Disables the APNs channel for an application and deletes any existing settings for the channel.
.
-
#delete_apns_sandbox_channel(options = {}) ⇒ Types::DeleteApnsSandboxChannelResponse
Disables the APNs sandbox channel for an application and deletes any existing settings for the channel.
.
-
#delete_apns_voip_channel(options = {}) ⇒ Types::DeleteApnsVoipChannelResponse
Disables the APNs VoIP channel for an application and deletes any existing settings for the channel.
.
-
#delete_apns_voip_sandbox_channel(options = {}) ⇒ Types::DeleteApnsVoipSandboxChannelResponse
Disables the APNs VoIP sandbox channel for an application and deletes any existing settings for the channel.
.
-
#delete_app(options = {}) ⇒ Types::DeleteAppResponse
Deletes an application.
.
-
#delete_baidu_channel(options = {}) ⇒ Types::DeleteBaiduChannelResponse
Disables the Baidu channel for an application and deletes any existing settings for the channel.
.
-
#delete_campaign(options = {}) ⇒ Types::DeleteCampaignResponse
Deletes a campaign from an application.
.
-
#delete_email_channel(options = {}) ⇒ Types::DeleteEmailChannelResponse
Disables the email channel for an application and deletes any existing settings for the channel.
.
-
#delete_email_template(options = {}) ⇒ Types::DeleteEmailTemplateResponse
Deletes a message template for messages that were sent through the email channel.
.
-
#delete_endpoint(options = {}) ⇒ Types::DeleteEndpointResponse
Deletes an endpoint from an application.
.
-
#delete_event_stream(options = {}) ⇒ Types::DeleteEventStreamResponse
Deletes the event stream for an application.
.
-
#delete_gcm_channel(options = {}) ⇒ Types::DeleteGcmChannelResponse
Disables the GCM channel for an application and deletes any existing settings for the channel.
.
-
#delete_journey(options = {}) ⇒ Types::DeleteJourneyResponse
Deletes a journey from an application.
.
-
#delete_push_template(options = {}) ⇒ Types::DeletePushTemplateResponse
Deletes a message template for messages that were sent through a push notification channel.
.
-
#delete_recommender_configuration(options = {}) ⇒ Types::DeleteRecommenderConfigurationResponse
Deletes an Amazon Pinpoint configuration for a recommender model.
.
-
#delete_segment(options = {}) ⇒ Types::DeleteSegmentResponse
Deletes a segment from an application.
.
-
#delete_sms_channel(options = {}) ⇒ Types::DeleteSmsChannelResponse
Disables the SMS channel for an application and deletes any existing settings for the channel.
.
-
#delete_sms_template(options = {}) ⇒ Types::DeleteSmsTemplateResponse
Deletes a message template for messages that were sent through the SMS channel.
.
-
#delete_user_endpoints(options = {}) ⇒ Types::DeleteUserEndpointsResponse
Deletes all the endpoints that are associated with a specific user ID.
.
-
#delete_voice_channel(options = {}) ⇒ Types::DeleteVoiceChannelResponse
Disables the voice channel for an application and deletes any existing settings for the channel.
.
-
#delete_voice_template(options = {}) ⇒ Types::DeleteVoiceTemplateResponse
Deletes a message template for messages that were sent through the voice channel.
.
-
#get_adm_channel(options = {}) ⇒ Types::GetAdmChannelResponse
Retrieves information about the status and settings of the ADM channel for an application.
.
-
#get_apns_channel(options = {}) ⇒ Types::GetApnsChannelResponse
Retrieves information about the status and settings of the APNs channel for an application.
.
-
#get_apns_sandbox_channel(options = {}) ⇒ Types::GetApnsSandboxChannelResponse
Retrieves information about the status and settings of the APNs sandbox channel for an application.
.
-
#get_apns_voip_channel(options = {}) ⇒ Types::GetApnsVoipChannelResponse
Retrieves information about the status and settings of the APNs VoIP channel for an application.
.
-
#get_apns_voip_sandbox_channel(options = {}) ⇒ Types::GetApnsVoipSandboxChannelResponse
Retrieves information about the status and settings of the APNs VoIP sandbox channel for an application.
.
-
#get_app(options = {}) ⇒ Types::GetAppResponse
Retrieves information about an application.
.
-
#get_application_date_range_kpi(options = {}) ⇒ Types::GetApplicationDateRangeKpiResponse
Retrieves (queries) pre-aggregated data for a standard metric that applies to an application.
.
-
#get_application_settings(options = {}) ⇒ Types::GetApplicationSettingsResponse
Retrieves information about the settings for an application.
.
-
#get_apps(options = {}) ⇒ Types::GetAppsResponse
Retrieves information about all the applications that are associated with your Amazon Pinpoint account.
.
-
#get_baidu_channel(options = {}) ⇒ Types::GetBaiduChannelResponse
Retrieves information about the status and settings of the Baidu channel for an application.
.
-
#get_campaign(options = {}) ⇒ Types::GetCampaignResponse
Retrieves information about the status, configuration, and other settings for a campaign.
.
-
#get_campaign_activities(options = {}) ⇒ Types::GetCampaignActivitiesResponse
Retrieves information about all the activities for a campaign.
.
-
#get_campaign_date_range_kpi(options = {}) ⇒ Types::GetCampaignDateRangeKpiResponse
Retrieves (queries) pre-aggregated data for a standard metric that applies to a campaign.
.
-
#get_campaign_version(options = {}) ⇒ Types::GetCampaignVersionResponse
Retrieves information about the status, configuration, and other settings for a specific version of a campaign.
.
-
#get_campaign_versions(options = {}) ⇒ Types::GetCampaignVersionsResponse
Retrieves information about the status, configuration, and other settings for all versions of a campaign.
.
-
#get_campaigns(options = {}) ⇒ Types::GetCampaignsResponse
Retrieves information about the status, configuration, and other settings for all the campaigns that are associated with an application.
.
-
#get_channels(options = {}) ⇒ Types::GetChannelsResponse
Retrieves information about the history and status of each channel for an application.
.
-
#get_email_channel(options = {}) ⇒ Types::GetEmailChannelResponse
Retrieves information about the status and settings of the email channel for an application.
.
-
#get_email_template(options = {}) ⇒ Types::GetEmailTemplateResponse
Retrieves the content and settings of a message template for messages that are sent through the email channel.
.
-
#get_endpoint(options = {}) ⇒ Types::GetEndpointResponse
Retrieves information about the settings and attributes of a specific endpoint for an application.
.
-
#get_event_stream(options = {}) ⇒ Types::GetEventStreamResponse
Retrieves information about the event stream settings for an application.
.
-
#get_export_job(options = {}) ⇒ Types::GetExportJobResponse
Retrieves information about the status and settings of a specific export job for an application.
.
-
#get_export_jobs(options = {}) ⇒ Types::GetExportJobsResponse
Retrieves information about the status and settings of all the export jobs for an application.
.
-
#get_gcm_channel(options = {}) ⇒ Types::GetGcmChannelResponse
Retrieves information about the status and settings of the GCM channel for an application.
.
-
#get_import_job(options = {}) ⇒ Types::GetImportJobResponse
Retrieves information about the status and settings of a specific import job for an application.
.
-
#get_import_jobs(options = {}) ⇒ Types::GetImportJobsResponse
Retrieves information about the status and settings of all the import jobs for an application.
.
-
#get_journey(options = {}) ⇒ Types::GetJourneyResponse
Retrieves information about the status, configuration, and other settings for a journey.
.
-
#get_journey_date_range_kpi(options = {}) ⇒ Types::GetJourneyDateRangeKpiResponse
Retrieves (queries) pre-aggregated data for a standard engagement metric that applies to a journey.
.
-
#get_journey_execution_activity_metrics(options = {}) ⇒ Types::GetJourneyExecutionActivityMetricsResponse
Retrieves (queries) pre-aggregated data for a standard execution metric that applies to a journey activity.
.
-
#get_journey_execution_metrics(options = {}) ⇒ Types::GetJourneyExecutionMetricsResponse
Retrieves (queries) pre-aggregated data for a standard execution metric that applies to a journey.
.
-
#get_push_template(options = {}) ⇒ Types::GetPushTemplateResponse
Retrieves the content and settings of a message template for messages that are sent through a push notification channel.
.
-
#get_recommender_configuration(options = {}) ⇒ Types::GetRecommenderConfigurationResponse
Retrieves information about an Amazon Pinpoint configuration for a recommender model.
.
-
#get_recommender_configurations(options = {}) ⇒ Types::GetRecommenderConfigurationsResponse
Retrieves information about all the recommender model configurations that are associated with your Amazon Pinpoint account.
.
-
#get_segment(options = {}) ⇒ Types::GetSegmentResponse
Retrieves information about the configuration, dimension, and other settings for a specific segment that's associated with an application.
.
-
#get_segment_export_jobs(options = {}) ⇒ Types::GetSegmentExportJobsResponse
Retrieves information about the status and settings of the export jobs for a segment.
.
-
#get_segment_import_jobs(options = {}) ⇒ Types::GetSegmentImportJobsResponse
Retrieves information about the status and settings of the import jobs for a segment.
.
-
#get_segment_version(options = {}) ⇒ Types::GetSegmentVersionResponse
Retrieves information about the configuration, dimension, and other settings for a specific version of a segment that's associated with an application.
.
-
#get_segment_versions(options = {}) ⇒ Types::GetSegmentVersionsResponse
Retrieves information about the configuration, dimension, and other settings for all the versions of a specific segment that's associated with an application.
.
-
#get_segments(options = {}) ⇒ Types::GetSegmentsResponse
Retrieves information about the configuration, dimension, and other settings for all the segments that are associated with an application.
.
-
#get_sms_channel(options = {}) ⇒ Types::GetSmsChannelResponse
Retrieves information about the status and settings of the SMS channel for an application.
.
-
#get_sms_template(options = {}) ⇒ Types::GetSmsTemplateResponse
Retrieves the content and settings of a message template for messages that are sent through the SMS channel.
.
-
#get_user_endpoints(options = {}) ⇒ Types::GetUserEndpointsResponse
Retrieves information about all the endpoints that are associated with a specific user ID.
.
-
#get_voice_channel(options = {}) ⇒ Types::GetVoiceChannelResponse
Retrieves information about the status and settings of the voice channel for an application.
.
-
#get_voice_template(options = {}) ⇒ Types::GetVoiceTemplateResponse
Retrieves the content and settings of a message template for messages that are sent through the voice channel.
.
-
#list_journeys(options = {}) ⇒ Types::ListJourneysResponse
Retrieves information about the status, configuration, and other settings for all the journeys that are associated with an application.
.
-
#list_tags_for_resource(options = {}) ⇒ Types::ListTagsForResourceResponse
Retrieves all the tags (keys and values) that are associated with an application, campaign, message template, or segment.
.
-
#list_template_versions(options = {}) ⇒ Types::ListTemplateVersionsResponse
Retrieves information about all the versions of a specific message template.
.
-
#list_templates(options = {}) ⇒ Types::ListTemplatesResponse
Retrieves information about all the message templates that are associated with your Amazon Pinpoint account.
.
-
#phone_number_validate(options = {}) ⇒ Types::PhoneNumberValidateResponse
Retrieves information about a phone number.
.
-
#put_event_stream(options = {}) ⇒ Types::PutEventStreamResponse
Creates a new event stream for an application or updates the settings of an existing event stream for an application.
.
-
#put_events(options = {}) ⇒ Types::PutEventsResponse
Creates a new event to record for endpoints, or creates or updates endpoint data that existing events are associated with.
.
-
#remove_attributes(options = {}) ⇒ Types::RemoveAttributesResponse
Removes one or more attributes, of the same attribute type, from all the endpoints that are associated with an application.
.
-
#send_messages(options = {}) ⇒ Types::SendMessagesResponse
Creates and sends a direct message.
.
-
#send_users_messages(options = {}) ⇒ Types::SendUsersMessagesResponse
Creates and sends a message to a list of users.
.
-
#tag_resource(options = {}) ⇒ Struct
Adds one or more tags (keys and values) to an application, campaign, message template, or segment.
.
-
#untag_resource(options = {}) ⇒ Struct
Removes one or more tags (keys and values) from an application, campaign, message template, or segment.
.
-
#update_adm_channel(options = {}) ⇒ Types::UpdateAdmChannelResponse
Enables the ADM channel for an application or updates the status and settings of the ADM channel for an application.
.
-
#update_apns_channel(options = {}) ⇒ Types::UpdateApnsChannelResponse
Enables the APNs channel for an application or updates the status and settings of the APNs channel for an application.
.
-
#update_apns_sandbox_channel(options = {}) ⇒ Types::UpdateApnsSandboxChannelResponse
Enables the APNs sandbox channel for an application or updates the status and settings of the APNs sandbox channel for an application.
.
-
#update_apns_voip_channel(options = {}) ⇒ Types::UpdateApnsVoipChannelResponse
Enables the APNs VoIP channel for an application or updates the status and settings of the APNs VoIP channel for an application.
.
-
#update_apns_voip_sandbox_channel(options = {}) ⇒ Types::UpdateApnsVoipSandboxChannelResponse
Enables the APNs VoIP sandbox channel for an application or updates the status and settings of the APNs VoIP sandbox channel for an application.
.
-
#update_application_settings(options = {}) ⇒ Types::UpdateApplicationSettingsResponse
Updates the settings for an application.
.
-
#update_baidu_channel(options = {}) ⇒ Types::UpdateBaiduChannelResponse
Enables the Baidu channel for an application or updates the status and settings of the Baidu channel for an application.
.
-
#update_campaign(options = {}) ⇒ Types::UpdateCampaignResponse
Updates the configuration and other settings for a campaign.
.
-
#update_email_channel(options = {}) ⇒ Types::UpdateEmailChannelResponse
Enables the email channel for an application or updates the status and settings of the email channel for an application.
.
-
#update_email_template(options = {}) ⇒ Types::UpdateEmailTemplateResponse
Updates an existing message template for messages that are sent through the email channel.
.
-
#update_endpoint(options = {}) ⇒ Types::UpdateEndpointResponse
Creates a new endpoint for an application or updates the settings and attributes of an existing endpoint for an application.
-
#update_endpoints_batch(options = {}) ⇒ Types::UpdateEndpointsBatchResponse
Creates a new batch of endpoints for an application or updates the settings and attributes of a batch of existing endpoints for an application.
-
#update_gcm_channel(options = {}) ⇒ Types::UpdateGcmChannelResponse
Enables the GCM channel for an application or updates the status and settings of the GCM channel for an application.
.
-
#update_journey(options = {}) ⇒ Types::UpdateJourneyResponse
Updates the configuration and other settings for a journey.
.
-
#update_journey_state(options = {}) ⇒ Types::UpdateJourneyStateResponse
Cancels (stops) an active journey.
.
-
#update_push_template(options = {}) ⇒ Types::UpdatePushTemplateResponse
Updates an existing message template for messages that are sent through a push notification channel.
.
-
#update_recommender_configuration(options = {}) ⇒ Types::UpdateRecommenderConfigurationResponse
Updates an Amazon Pinpoint configuration for a recommender model.
.
-
#update_segment(options = {}) ⇒ Types::UpdateSegmentResponse
Creates a new segment for an application or updates the configuration, dimension, and other settings for an existing segment that's associated with an application.
.
-
#update_sms_channel(options = {}) ⇒ Types::UpdateSmsChannelResponse
Enables the SMS channel for an application or updates the status and settings of the SMS channel for an application.
.
-
#update_sms_template(options = {}) ⇒ Types::UpdateSmsTemplateResponse
Updates an existing message template for messages that are sent through the SMS channel.
.
-
#update_template_active_version(options = {}) ⇒ Types::UpdateTemplateActiveVersionResponse
Changes the status of a specific version of a message template to active.
.
-
#update_voice_channel(options = {}) ⇒ Types::UpdateVoiceChannelResponse
Enables the voice channel for an application or updates the status and settings of the voice channel for an application.
.
-
#update_voice_template(options = {}) ⇒ Types::UpdateVoiceTemplateResponse
Updates an existing message template for messages that are sent through the voice channel.
.
Instance Method Summary collapse
-
#wait_until(waiter_name, params = {}) {|waiter| ... } ⇒ Boolean
Waiters polls an API operation until a resource enters a desired state.
-
#waiter_names ⇒ Array<Symbol>
Returns the list of supported waiters.
Methods inherited from Seahorse::Client::Base
add_plugin, api, #build_request, clear_plugins, define, new, #operation, #operation_names, plugins, remove_plugin, set_api, set_plugins
Methods included from Seahorse::Client::HandlerBuilder
#handle, #handle_request, #handle_response
Constructor Details
#initialize(options = {}) ⇒ Aws::Pinpoint::Client
Constructs an API client.
Instance Method Details
#create_app(options = {}) ⇒ Types::CreateAppResponse
Creates an application.
#create_campaign(options = {}) ⇒ Types::CreateCampaignResponse
Creates a new campaign for an application or updates the settings of an existing campaign for an application.
#create_email_template(options = {}) ⇒ Types::CreateEmailTemplateResponse
Creates a message template for messages that are sent through the email channel.
#create_export_job(options = {}) ⇒ Types::CreateExportJobResponse
Creates an export job for an application.
#create_import_job(options = {}) ⇒ Types::CreateImportJobResponse
Creates an import job for an application.
#create_journey(options = {}) ⇒ Types::CreateJourneyResponse
Creates a journey for an application.
#create_push_template(options = {}) ⇒ Types::CreatePushTemplateResponse
Creates a message template for messages that are sent through a push notification channel.
#create_recommender_configuration(options = {}) ⇒ Types::CreateRecommenderConfigurationResponse
Creates an Amazon Pinpoint configuration for a recommender model.
#create_segment(options = {}) ⇒ Types::CreateSegmentResponse
Creates a new segment for an application or updates the configuration, dimension, and other settings for an existing segment that's associated with an application.
#create_sms_template(options = {}) ⇒ Types::CreateSmsTemplateResponse
Creates a message template for messages that are sent through the SMS channel.
#create_voice_template(options = {}) ⇒ Types::CreateVoiceTemplateResponse
Creates a message template for messages that are sent through the voice channel.
#delete_adm_channel(options = {}) ⇒ Types::DeleteAdmChannelResponse
Disables the ADM channel for an application and deletes any existing settings for the channel.
#delete_apns_channel(options = {}) ⇒ Types::DeleteApnsChannelResponse
Disables the APNs channel for an application and deletes any existing settings for the channel.
#delete_apns_sandbox_channel(options = {}) ⇒ Types::DeleteApnsSandboxChannelResponse
Disables the APNs sandbox channel for an application and deletes any existing settings for the channel.
#delete_apns_voip_channel(options = {}) ⇒ Types::DeleteApnsVoipChannelResponse
Disables the APNs VoIP channel for an application and deletes any existing settings for the channel.
#delete_apns_voip_sandbox_channel(options = {}) ⇒ Types::DeleteApnsVoipSandboxChannelResponse
Disables the APNs VoIP sandbox channel for an application and deletes any existing settings for the channel.
#delete_app(options = {}) ⇒ Types::DeleteAppResponse
Deletes an application.
#delete_baidu_channel(options = {}) ⇒ Types::DeleteBaiduChannelResponse
Disables the Baidu channel for an application and deletes any existing settings for the channel.
#delete_campaign(options = {}) ⇒ Types::DeleteCampaignResponse
Deletes a campaign from an application.
#delete_email_channel(options = {}) ⇒ Types::DeleteEmailChannelResponse
Disables the email channel for an application and deletes any existing settings for the channel.
#delete_email_template(options = {}) ⇒ Types::DeleteEmailTemplateResponse
Deletes a message template for messages that were sent through the email channel.
#delete_endpoint(options = {}) ⇒ Types::DeleteEndpointResponse
Deletes an endpoint from an application.
#delete_event_stream(options = {}) ⇒ Types::DeleteEventStreamResponse
Deletes the event stream for an application.
#delete_gcm_channel(options = {}) ⇒ Types::DeleteGcmChannelResponse
Disables the GCM channel for an application and deletes any existing settings for the channel.
#delete_journey(options = {}) ⇒ Types::DeleteJourneyResponse
Deletes a journey from an application.