pinpoint

package
v0.3.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2021 License: MIT Imports: 6 Imported by: 0

README

aws-sdk-go-v2-wrapper | Pinpoint

Quick Usage

import (
	"context"

	"github.com/evalphobia/aws-sdk-go-v2-wrapper/config"
	"github.com/evalphobia/aws-sdk-go-v2-wrapper/pinpoint"
)

func main() {
	svc, err := pinpoint.New(config.Config{
		AccessKey: "<...>",
		SecretKey: "<...>",
	})
	if err != nil {
		panic(err)
	}
	ctx := context.Background()


	appID := "abcd-efgh-0213-ijkl"
	// check the app exists or not
	ok, err := svc.XExistsApp(ctx, appID)
	if err != nil {
		panic(err)
	}

	if !ok {
		// gets app id from name
		appID, err = svc.XExistsApp(ctx, "my-cool-project")
		if err != nil {
			panic(err)
		}

		ok, err = svc.XExistsApp(ctx, appID)
		if err != nil {
			panic(err)
		}
		if !ok {
			panic("cannot find the app")
		}
	}

	attrs := map[string]string{
		"OS": "iOS",
	}
	userAttrs := map[string]string{
		"Country": "Canada",
	}
	// update the endpoint
	err = svc.XUpdateEndpointEmail(ctx, appID, "endpoint-id", "user-id", "example@example.com", attrs, userAttrs)
	if err != nil {
		panic(err)
	}
	// ...
}

X API

Name Description
XExistsApp checks if the app (project) exists or not.
XGetAppIDByName gets application id by name.
XUpdateEndpointEmail creates or updates email of the endpoint.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APNsPushNotificationTemplate

type APNsPushNotificationTemplate struct {
	Action     Action
	Body       string
	MediaURL   string
	RawContent string
	Sound      string
	Title      string
	URL        string
}

func (APNsPushNotificationTemplate) ToSDK

type Action

type Action string
const (
	ActionOpenApp  Action = Action(SDK.ActionOpenApp)
	ActionDeepLink Action = Action(SDK.ActionDeepLink)
	ActionURL      Action = Action(SDK.ActionUrl)
)

type AndroidPushNotificationTemplate

type AndroidPushNotificationTemplate struct {
	Action            Action
	Body              string
	ImageIconURL      string
	ImageURL          string
	RawContent        string
	SmallImageIconURL string
	Sound             string
	Title             string
	URL               string
}

func (AndroidPushNotificationTemplate) ToSDK

type ApplicationResponse

type ApplicationResponse struct {
	ARN  string
	ID   string
	Name string
	Tags map[string]string
}

type ApplicationsResponse

type ApplicationsResponse struct {
	Item      []ApplicationResponse
	NextToken string
}

type AttributeDimension

type AttributeDimension struct {
	Values []string

	// optional
	AttributeType AttributeType
}

func (AttributeDimension) ToSDK

type AttributeType

type AttributeType string
const (
	AttributeTypeInclusive AttributeType = AttributeType(SDK.AttributeTypeInclusive)
	AttributeTypeExclusive AttributeType = AttributeType(SDK.AttributeTypeExclusive)
)

type CampaignCustomMessage

type CampaignCustomMessage struct {
	Data string
}

func (CampaignCustomMessage) ToSDK

type CampaignEmailMessage

type CampaignEmailMessage struct {
	Body        string
	FromAddress string
	HTMLBody    string
	Title       string
}

func (CampaignEmailMessage) ToSDK

type CampaignEventFilter

type CampaignEventFilter struct {
	Dimensions EventDimensions
	FilterType FilterType
}

func (CampaignEventFilter) ToSDK

type CampaignHook

type CampaignHook struct {
	LambdaFunctionName string
	Mode               Mode
	WebURL             string
}

func (CampaignHook) ToSDK

func (r CampaignHook) ToSDK() *SDK.CampaignHook

type CampaignLimits

type CampaignLimits struct {
	Daily             int64
	MaximumDuration   int64
	MessagesPerSecond int64
	Total             int64
}

func (CampaignLimits) ToSDK

func (r CampaignLimits) ToSDK() *SDK.CampaignLimits

type CampaignResponse

type CampaignResponse struct {
	ApplicationID    string
	ARN              string
	CreationDate     string
	ID               string
	LastModifiedDate string
	SegmentID        string
	SegmentVersion   int64

	AdditionalTreatments        []TreatmentResource
	CustomDeliveryConfiguration CustomDeliveryConfiguration
	DefaultState                CampaignStatus
	Description                 string
	HoldoutPercent              int64
	Hook                        CampaignHook
	IsPaused                    bool
	Limits                      CampaignLimits
	MessageConfiguration        MessageConfiguration
	Name                        string
	Schedule                    Schedule
	State                       CampaignStatus
	Tags                        map[string]string
	TemplateConfiguration       TemplateConfiguration
	TreatmentDescription        string
	TreatmentName               string
	Version                     int64
}

type CampaignSMSMessage

type CampaignSMSMessage struct {
	Body        string
	MessageType MessageType
	SenderID    string
}

func (CampaignSMSMessage) ToSDK

type ChannelType

type ChannelType string
const (
	EndpointTypesElementPush            ChannelType = ChannelType(SDK.EndpointTypesElementPush)
	EndpointTypesElementGCM             ChannelType = ChannelType(SDK.EndpointTypesElementGcm)
	EndpointTypesElementAPNs            ChannelType = ChannelType(SDK.EndpointTypesElementApns)
	EndpointTypesElementAPNsSandbox     ChannelType = ChannelType(SDK.EndpointTypesElementApnsSandbox)
	EndpointTypesElementAPNsVoIP        ChannelType = ChannelType(SDK.EndpointTypesElementApnsVoip)
	EndpointTypesElementAPNsVoIPSandbox ChannelType = ChannelType(SDK.EndpointTypesElementApnsVoipSandbox)
	EndpointTypesElementADM             ChannelType = ChannelType(SDK.EndpointTypesElementAdm)
	EndpointTypesElementSMS             ChannelType = ChannelType(SDK.EndpointTypesElementSms)
	EndpointTypesElementVoice           ChannelType = ChannelType(SDK.EndpointTypesElementVoice)
	EndpointTypesElementEmail           ChannelType = ChannelType(SDK.EndpointTypesElementEmail)
	EndpointTypesElementBaidu           ChannelType = ChannelType(SDK.EndpointTypesElementBaidu)
	EndpointTypesElementCustom          ChannelType = ChannelType(SDK.EndpointTypesElementCustom)
)

type CreateAppRequest

type CreateAppRequest struct {
	Name string

	// optional
	Tags map[string]string
}

CreateAppRequest has parameters for `CreateApp` operation.

func (CreateAppRequest) ToInput

func (r CreateAppRequest) ToInput() *SDK.CreateAppInput

type CreateAppResult

type CreateAppResult struct {
	ApplicationResponse
}

func NewCreateAppResult

func NewCreateAppResult(o *SDK.CreateAppResponse) *CreateAppResult

type CreateCampaignRequest

type CreateCampaignRequest struct {
	ApplicationID        string
	WriteCampaignRequest WriteCampaignRequest
}

CreateCampaignRequest has parameters for `CreateCampaign` operation.

func (CreateCampaignRequest) ToInput

type CreateCampaignResult

type CreateCampaignResult struct {
	CampaignResponse
}

type CreateEmailTemplateRequest

type CreateEmailTemplateRequest struct {
	EmailTemplateRequest EmailTemplateRequest
	TemplateName         string
}

CreateEmailTemplateRequest has parameters for `CreateEmailTemplate` operation.

func (CreateEmailTemplateRequest) ToInput

type CreateEmailTemplateResult

type CreateEmailTemplateResult struct {
	CreateTemplateMessageBody
}

type CreateImportJobRequest

type CreateImportJobRequest struct {
	ApplicationID    string
	ImportJobRequest ImportJobRequest
}

CreateImportJobRequest has parameters for `CreateImportJob` operation.

func (CreateImportJobRequest) ToInput

type CreateImportJobResult

type CreateImportJobResult struct {
	ImportJobResponse
}

type CreatePushTemplateRequest

type CreatePushTemplateRequest struct {
	PushNotificationTemplateRequest PushNotificationTemplateRequest
	TemplateName                    string
}

CreatePushTemplateRequest has parameters for `CreatePushTemplate` operation.

func (CreatePushTemplateRequest) ToInput

type CreatePushTemplateResult

type CreatePushTemplateResult struct {
	CreateTemplateMessageBody
}

type CreateSegmentRequest

type CreateSegmentRequest struct {
	ApplicationID       string
	WriteSegmentRequest WriteSegmentRequest
}

CreateSegmentRequest has parameters for `CreateSegment` operation.

func (CreateSegmentRequest) ToInput

type CreateSegmentResult

type CreateSegmentResult struct {
	SegmentResponse
}

type CreateTemplateMessageBody

type CreateTemplateMessageBody struct {
	ARN       string
	Message   string
	RequestID string
}

type CustomDeliveryConfiguration

type CustomDeliveryConfiguration struct {
	DeliveryURI string

	// optional
	EndpointTypes []EndpointTypesElement
}

func (CustomDeliveryConfiguration) ToSDK

type DefaultPushNotificationTemplate

type DefaultPushNotificationTemplate struct {
	Action Action
	Body   string
	Sound  string
	Title  string
	URL    string
}

func (DefaultPushNotificationTemplate) ToSDK

type DeleteEmailTemplateRequest

type DeleteEmailTemplateRequest struct {
	TemplateName string

	// optional
	Version string
}

DeleteEmailTemplateRequest has parameters for `DeleteEmailTemplate` operation.

func (DeleteEmailTemplateRequest) ToInput

type DeleteEmailTemplateResult

type DeleteEmailTemplateResult struct {
	MessageBody
}

type DeleteEndpointRequest

type DeleteEndpointRequest struct {
	ApplicationID string
	EndpointID    string
}

DeleteEndpointRequest has parameters for `DeleteEndpoint` operation.

func (DeleteEndpointRequest) ToInput

type DeleteEndpointResult

type DeleteEndpointResult struct {
	EndpointResponse
}

type DeletePushTemplateRequest

type DeletePushTemplateRequest struct {
	TemplateName string

	// optional
	Version string
}

DeletePushTemplateRequest has parameters for `DeletePushTemplate` operation.

func (DeletePushTemplateRequest) ToInput

type DeletePushTemplateResult

type DeletePushTemplateResult struct {
	MessageBody
}

type DeleteSegmentRequest

type DeleteSegmentRequest struct {
	ApplicationID string
	SegmentID     string
}

DeleteSegmentRequest has parameters for `DeleteSegment` operation.

func (DeleteSegmentRequest) ToInput

type DeleteSegmentResult

type DeleteSegmentResult struct {
	SegmentResponse
}

type DeleteUserEndpointsRequest

type DeleteUserEndpointsRequest struct {
	ApplicationID string
	UserID        string
}

DeleteUserEndpointsRequest has parameters for `DeleteUserEndpoints` operation.

func (DeleteUserEndpointsRequest) ToInput

type DeleteUserEndpointsResult

type DeleteUserEndpointsResult struct {
	EndpointsResponse
}

type DimensionType

type DimensionType string
const (
	DimensionTypeInclusive DimensionType = DimensionType(SDK.DimensionTypeInclusive)
	DimensionTypeExclusive DimensionType = DimensionType(SDK.DimensionTypeExclusive)
)

type Duration

type Duration string
const (
	DurationHr24  Duration = Duration(SDK.DurationHr24)
	DurationDay7  Duration = Duration(SDK.DurationDay7)
	DurationDay14 Duration = Duration(SDK.DurationDay14)
	DurationDay30 Duration = Duration(SDK.DurationDay30)
)

type EmailTemplateRequest

type EmailTemplateRequest struct {
	DefaultSubstitutions string
	HTMLPart             string
	RecommenderID        string
	Subject              string
	Tags                 map[string]string
	TemplateDescription  string
	TextPart             string
}

func (EmailTemplateRequest) ToSDK

type EndpointBatchItem

type EndpointBatchItem struct {
	Address        string // Email | Push Token | Tel No.
	Attributes     map[string][]string
	ChannelType    ChannelType
	Demographic    EndpointDemographic
	EffectiveDate  string
	EndpointStatus string
	ID             string
	Location       EndpointLocation
	Metrics        map[string]float64
	OptOut         string
	RequestID      string
	User           EndpointUser
}

func (EndpointBatchItem) ToSDK

type EndpointBatchRequest

type EndpointBatchRequest struct {
	Item []EndpointBatchItem // max: 100
}

func (EndpointBatchRequest) ToSDK

type EndpointDemographic

type EndpointDemographic struct {
	AppVersion      string
	Locale          string
	Make            string
	Model           string
	ModelVersion    string
	Platform        string
	PlatformVersion string
	Timezone        string
}

func (EndpointDemographic) ToSDK

type EndpointLocation

type EndpointLocation struct {
	City       string
	Country    string
	Latitude   float64
	Longitude  float64
	PostalCode string
	Region     string

	HasLatitude  bool
	HasLongitude bool
}

func (EndpointLocation) ToSDK

type EndpointRequest

type EndpointRequest struct {
	Address        string // Email | Push Token | Tel No.
	Attributes     map[string][]string
	ChannelType    ChannelType
	Demographic    EndpointDemographic
	EffectiveDate  string
	EndpointStatus string
	Location       EndpointLocation
	Metrics        map[string]float64
	OptOut         string
	RequestID      string
	User           EndpointUser
}

func (EndpointRequest) ToSDK

func (r EndpointRequest) ToSDK() *SDK.EndpointRequest

type EndpointResponse

type EndpointResponse struct {
	Address        string // Email | Push Token | Tel No.
	ApplicationID  string
	Attributes     map[string][]string
	ChannelType    ChannelType
	CohortID       string
	CreationDate   string
	Demographic    EndpointDemographic
	EffectiveDate  string
	EndpointStatus string
	ID             string
	Location       EndpointLocation
	Metrics        map[string]float64
	OptOut         string
	RequestID      string
	User           EndpointUser
}

type EndpointTypesElement

type EndpointTypesElement string

type EndpointUser

type EndpointUser struct {
	UserAttributes map[string][]string
	UserID         string
}

func (EndpointUser) ToSDK

func (r EndpointUser) ToSDK() *SDK.EndpointUser

type EndpointsResponse

type EndpointsResponse struct {
	Item []EndpointResponse
}

type EventDimensions

type EventDimensions struct {
	Attributes map[string]AttributeDimension
	EventType  SetDimension
	Metrics    map[string]MetricDimension
}

func (EventDimensions) ToSDK

func (r EventDimensions) ToSDK() *SDK.EventDimensions

type FilterType

type FilterType string
const (
	FilterTypeSystem   FilterType = FilterType(SDK.FilterTypeSystem)
	FilterTypeEndpoint FilterType = FilterType(SDK.FilterTypeEndpoint)
)

type Format

type Format string
const (
	FormatCSV  Format = Format(SDK.FormatCsv)
	FormatJSON Format = Format(SDK.FormatJson)
)

type Frequency

type Frequency string
const (
	FrequencyOnce    Frequency = Frequency(SDK.FrequencyOnce)
	FrequencyHourly  Frequency = Frequency(SDK.FrequencyHourly)
	FrequencyDaily   Frequency = Frequency(SDK.FrequencyDaily)
	FrequencyWeekly  Frequency = Frequency(SDK.FrequencyWeekly)
	FrequencyMonthly Frequency = Frequency(SDK.FrequencyMonthly)
	FrequencyEvent   Frequency = Frequency(SDK.FrequencyEvent)
)

type GPSPointDimension

type GPSPointDimension struct {
	CoordinatesLatitude  float64
	CoordinatesLongitude float64

	// optional
	RangeInKilometers float64
}

func (GPSPointDimension) ToSDK

type GetAppRequest

type GetAppRequest struct {
	ApplicationID string
}

GetAppRequest has parameters for `GetApp` operation.

func (GetAppRequest) ToInput

func (r GetAppRequest) ToInput() *SDK.GetAppInput

type GetAppResult

type GetAppResult struct {
	ApplicationResponse
}

func NewGetAppResult

func NewGetAppResult(o *SDK.GetAppResponse) *GetAppResult

type GetAppsRequest

type GetAppsRequest struct {
	PageSize string
	Token    string
}

GetAppsRequest has parameters for `GetApps` operation.

func (GetAppsRequest) ToInput

func (r GetAppsRequest) ToInput() *SDK.GetAppsInput

type GetAppsResult

type GetAppsResult struct {
	ApplicationsResponse
}

func NewGetAppsResult

func NewGetAppsResult(o *SDK.GetAppsResponse) *GetAppsResult

type GetEndpointRequest

type GetEndpointRequest struct {
	ApplicationID string
	EndpointID    string
}

GetEndpointRequest has parameters for `GetEndpoint` operation.

func (GetEndpointRequest) ToInput

type GetEndpointResult

type GetEndpointResult struct {
	EndpointResponse
}

func NewGetEndpointResult

func NewGetEndpointResult(o *SDK.GetEndpointResponse) *GetEndpointResult

type GetImportJobRequest

type GetImportJobRequest struct {
	ApplicationID string
	JobID         string
}

GetImportJobRequest has parameters for `GetImportJob` operation.

func (GetImportJobRequest) ToInput

type GetImportJobResult

type GetImportJobResult struct {
	ImportJobResponse
}

func NewGetImportJobResult

func NewGetImportJobResult(o *SDK.GetImportJobResponse) *GetImportJobResult

type GetImportJobsRequest

type GetImportJobsRequest struct {
	ApplicationID string
	PageSize      string
	Token         string
}

GetImportJobsRequest has parameters for `GetImportJobs` operation.

func (GetImportJobsRequest) ToInput

type GetImportJobsResult

type GetImportJobsResult struct {
	ImportJobsResponse
}

type GetSegmentRequest

type GetSegmentRequest struct {
	ApplicationID string
	SegmentID     string
}

GetSegmentRequest has parameters for `GetSegment` operation.

func (GetSegmentRequest) ToInput

func (r GetSegmentRequest) ToInput() *SDK.GetSegmentInput

type GetSegmentResult

type GetSegmentResult struct {
	SegmentResponse
}

func NewGetSegmentResult

func NewGetSegmentResult(o *SDK.GetSegmentResponse) *GetSegmentResult

type GetSegmentsRequest

type GetSegmentsRequest struct {
	ApplicationID string
	PageSize      string
	Token         string
}

GetSegmentsRequest has parameters for `GetSegments` operation.

func (GetSegmentsRequest) ToInput

type GetSegmentsResult

type GetSegmentsResult struct {
	SegmentsResponse
}

func NewGetSegmentsResult

func NewGetSegmentsResult(o *SDK.GetSegmentsResponse) *GetSegmentsResult

type GetUserEndpointsRequest

type GetUserEndpointsRequest struct {
	ApplicationID string
	UserID        string
}

GetUserEndpointsRequest has parameters for `GetUserEndpoints` operation.

func (GetUserEndpointsRequest) ToInput

type GetUserEndpointsResult

type GetUserEndpointsResult struct {
	EndpointsResponse
}

type ImportJobRequest

type ImportJobRequest struct {
	Format  Format
	RoleARN string
	S3URL   string

	// optional
	DefineSegment     bool
	RegisterEndpoints bool
	SegmentID         string
	SegmentName       string
}

func (ImportJobRequest) ToSDK

type ImportJobResource

type ImportJobResource struct {
	Format  Format
	RoleARN string
	S3URL   string

	// optional
	DefineSegment     bool
	ExternalID        string
	RegisterEndpoints bool
	SegmentID         string
	SegmentName       string
}

type ImportJobResponse

type ImportJobResponse struct {
	ApplicationID string
	CreationDate  string
	Definition    ImportJobResource
	ID            string
	JobStatus     JobStatus
	Type          string

	// optional
	CompletedPieces int64
	CompletionDate  string
	FailedPieces    int64
	Failures        []string
	TotalFailures   int64
	TotalPieces     int64
	TotalProcessed  int64
}

type ImportJobsResponse

type ImportJobsResponse struct {
	Item      []ImportJobResponse
	NextToken string
}

type Include

type Include string
const (
	IncludeAll  Include = Include(SDK.IncludeAll)
	IncludeAny  Include = Include(SDK.IncludeAny)
	IncludeNone Include = Include(SDK.IncludeNone)
)

type JobStatus

type JobStatus string
const (
	JobStatusCreated                    JobStatus = JobStatus(SDK.JobStatusCreated)
	JobStatusPreparingForInitialization JobStatus = JobStatus(SDK.JobStatusPreparingForInitialization)
	JobStatusInitializing               JobStatus = JobStatus(SDK.JobStatusInitializing)
	JobStatusProcessing                 JobStatus = JobStatus(SDK.JobStatusProcessing)
	JobStatusPendingJob                 JobStatus = JobStatus(SDK.JobStatusPendingJob)
	JobStatusCompleting                 JobStatus = JobStatus(SDK.JobStatusCompleting)
	JobStatusCompleted                  JobStatus = JobStatus(SDK.JobStatusCompleted)
	JobStatusFailing                    JobStatus = JobStatus(SDK.JobStatusFailing)
	JobStatusFailed                     JobStatus = JobStatus(SDK.JobStatusFailed)
)

type ListTemplatesRequest

type ListTemplatesRequest struct {
	NextToken    string
	PageSize     string
	Prefix       string
	TemplateType string
}

ListTemplatesRequest has parameters for `ListTemplates` operation.

func (ListTemplatesRequest) ToInput

type ListTemplatesResult

type ListTemplatesResult struct {
	TemplatesResponse
}

type Message

type Message struct {
	Action            Action
	Body              string
	ImageIconURL      string
	ImageSmallIconURL string
	ImageURL          string
	JSONBody          string
	MediaURL          string
	RawContent        string
	SilentPush        bool
	TimeToLive        int64
	Title             string
	URL               string
}

func (Message) ToSDK

func (r Message) ToSDK() *SDK.Message

type MessageBody

type MessageBody struct {
	Message   string
	RequestID string
}

type MessageConfiguration

type MessageConfiguration struct {
	ADMMessage     Message
	APNsMessage    Message
	BaiduMessage   Message
	CustomMessage  CampaignCustomMessage
	DefaultMessage Message
	EmailMessage   CampaignEmailMessage
	GCMMessage     Message
	SMSMessage     CampaignSMSMessage
}

func (MessageConfiguration) ToSDK

type MessageType

type MessageType string
const (
	MessageTypeTransactional MessageType = MessageType(SDK.MessageTypeTransactional)
	MessageTypePromotional   MessageType = MessageType(SDK.MessageTypePromotional)
)

type MetricDimension

type MetricDimension struct {
	ComparisonOperator string
	Value              float64
}

func (MetricDimension) ToSDK

type Mode

type Mode string
const (
	ModeDelivery Mode = Mode(SDK.ModeDelivery)
	ModeFilter   Mode = Mode(SDK.ModeFilter)
)

type Pinpoint

type Pinpoint struct {
	// contains filtered or unexported fields
}

Pinpoint has Pinpoint client.

func New

func New(conf config.Config) (*Pinpoint, error)

New returns initialized *Pinpoint.

func (*Pinpoint) CreateApp

func (svc *Pinpoint) CreateApp(ctx context.Context, r CreateAppRequest) (*CreateAppResult, error)

CreateApp executes `CreateApp` operation.

func (*Pinpoint) CreateCampaign

func (svc *Pinpoint) CreateCampaign(ctx context.Context, r CreateCampaignRequest) (*CreateCampaignResult, error)

CreateCampaign executes `CreateCampaign` operation.

func (*Pinpoint) CreateEmailTemplate

CreateEmailTemplate executes `CreateEmailTemplate` operation.

func (*Pinpoint) CreateImportJob

func (svc *Pinpoint) CreateImportJob(ctx context.Context, r CreateImportJobRequest) (*CreateImportJobResult, error)

CreateImportJob executes `CreateImportJob` operation.

func (*Pinpoint) CreatePushTemplate

CreatePushTemplate executes `CreatePushTemplate` operation.

func (*Pinpoint) CreateSegment

func (svc *Pinpoint) CreateSegment(ctx context.Context, r CreateSegmentRequest) (*CreateSegmentResult, error)

CreateSegment executes `CreateSegment` operation.

func (*Pinpoint) DeleteEmailTemplate

DeleteEmailTemplate executes `DeleteEmailTemplate` operation.

func (*Pinpoint) DeleteEndpoint

func (svc *Pinpoint) DeleteEndpoint(ctx context.Context, r DeleteEndpointRequest) (*DeleteEndpointResult, error)

DeleteEndpoint executes `DeleteEndpoint` operation.

func (*Pinpoint) DeletePushTemplate

DeletePushTemplate executes `DeletePushTemplate` operation.

func (*Pinpoint) DeleteSegment

func (svc *Pinpoint) DeleteSegment(ctx context.Context, r DeleteSegmentRequest) (*DeleteSegmentResult, error)

DeleteSegment executes `DeleteSegment` operation.

func (*Pinpoint) DeleteUserEndpoints

DeleteUserEndpoints executes `DeleteUserEndpoints` operation.

func (*Pinpoint) Errorf

func (svc *Pinpoint) Errorf(format string, v ...interface{})

Errorf logging error information.

func (*Pinpoint) GetApp

func (svc *Pinpoint) GetApp(ctx context.Context, r GetAppRequest) (*GetAppResult, error)

GetApp executes `GetApp` operation.

func (*Pinpoint) GetApps

func (svc *Pinpoint) GetApps(ctx context.Context, r GetAppsRequest) (*GetAppsResult, error)

GetApps executes `GetApps` operation.

func (*Pinpoint) GetClient

func (svc *Pinpoint) GetClient() *SDK.Client

GetClient gets original SDK client.

func (*Pinpoint) GetEndpoint

func (svc *Pinpoint) GetEndpoint(ctx context.Context, r GetEndpointRequest) (*GetEndpointResult, error)

GetEndpoint executes `GetEndpoint` operation.

func (*Pinpoint) GetImportJob

func (svc *Pinpoint) GetImportJob(ctx context.Context, r GetImportJobRequest) (*GetImportJobResult, error)

GetImportJob executes `GetImportJob` operation.

func (*Pinpoint) GetImportJobs

func (svc *Pinpoint) GetImportJobs(ctx context.Context, r GetImportJobsRequest) (*GetImportJobsResult, error)

GetImportJobs executes `GetImportJobs` operation.

func (*Pinpoint) GetSegment

func (svc *Pinpoint) GetSegment(ctx context.Context, r GetSegmentRequest) (*GetSegmentResult, error)

GetSegment executes `GetSegment` operation.

func (*Pinpoint) GetSegments

func (svc *Pinpoint) GetSegments(ctx context.Context, r GetSegmentsRequest) (*GetSegmentsResult, error)

GetSegments executes `GetSegments` operation.

func (*Pinpoint) GetUserEndpoints

func (svc *Pinpoint) GetUserEndpoints(ctx context.Context, r GetUserEndpointsRequest) (*GetUserEndpointsResult, error)

GetUserEndpoints executes `GetUserEndpoints` operation.

func (*Pinpoint) Infof

func (svc *Pinpoint) Infof(format string, v ...interface{})

Infof logging information.

func (*Pinpoint) ListTemplates

func (svc *Pinpoint) ListTemplates(ctx context.Context, r ListTemplatesRequest) (*ListTemplatesResult, error)

ListTemplates executes `ListTemplates` operation.

func (*Pinpoint) RawCreateApp

func (svc *Pinpoint) RawCreateApp(ctx context.Context, in *SDK.CreateAppInput) (*SDK.CreateAppResponse, error)

RawCreateApp executes `CreateApp` raw operation.

func (*Pinpoint) RawCreateCampaign

func (svc *Pinpoint) RawCreateCampaign(ctx context.Context, in *SDK.CreateCampaignInput) (*SDK.CreateCampaignResponse, error)

RawCreateCampaign executes `CreateCampaign` raw operation.

func (*Pinpoint) RawCreateEmailTemplate

func (svc *Pinpoint) RawCreateEmailTemplate(ctx context.Context, in *SDK.CreateEmailTemplateInput) (*SDK.CreateEmailTemplateResponse, error)

RawCreateEmailTemplate executes `CreateEmailTemplate` raw operation.

func (*Pinpoint) RawCreateExportJob

func (svc *Pinpoint) RawCreateExportJob(ctx context.Context, in *SDK.CreateExportJobInput) (*SDK.CreateExportJobResponse, error)

RawCreateExportJob executes `CreateExportJob` raw operation.

func (*Pinpoint) RawCreateImportJob

func (svc *Pinpoint) RawCreateImportJob(ctx context.Context, in *SDK.CreateImportJobInput) (*SDK.CreateImportJobResponse, error)

RawCreateImportJob executes `CreateImportJob` raw operation.

func (*Pinpoint) RawCreateJourney

func (svc *Pinpoint) RawCreateJourney(ctx context.Context, in *SDK.CreateJourneyInput) (*SDK.CreateJourneyResponse, error)

RawCreateJourney executes `CreateJourney` raw operation.

func (*Pinpoint) RawCreatePushTemplate

func (svc *Pinpoint) RawCreatePushTemplate(ctx context.Context, in *SDK.CreatePushTemplateInput) (*SDK.CreatePushTemplateResponse, error)

RawCreatePushTemplate executes `CreatePushTemplate` raw operation.

func (*Pinpoint) RawCreateRecommenderConfiguration

RawCreateRecommenderConfiguration executes `CreateRecommenderConfiguration` raw operation.

func (*Pinpoint) RawCreateSegment

func (svc *Pinpoint) RawCreateSegment(ctx context.Context, in *SDK.CreateSegmentInput) (*SDK.CreateSegmentResponse, error)

RawCreateSegment executes `CreateSegment` raw operation.

func (*Pinpoint) RawCreateSmsTemplate

func (svc *Pinpoint) RawCreateSmsTemplate(ctx context.Context, in *SDK.CreateSmsTemplateInput) (*SDK.CreateSmsTemplateResponse, error)

RawCreateSmsTemplate executes `CreateSmsTemplate` raw operation.

func (*Pinpoint) RawCreateVoiceTemplate

func (svc *Pinpoint) RawCreateVoiceTemplate(ctx context.Context, in *SDK.CreateVoiceTemplateInput) (*SDK.CreateVoiceTemplateResponse, error)

RawCreateVoiceTemplate executes `CreateVoiceTemplate` raw operation.

func (*Pinpoint) RawDeleteAdmChannel

func (svc *Pinpoint) RawDeleteAdmChannel(ctx context.Context, in *SDK.DeleteAdmChannelInput) (*SDK.DeleteAdmChannelResponse, error)

RawDeleteAdmChannel executes `DeleteAdmChannel` raw operation.

func (*Pinpoint) RawDeleteApnsChannel

func (svc *Pinpoint) RawDeleteApnsChannel(ctx context.Context, in *SDK.DeleteApnsChannelInput) (*SDK.DeleteApnsChannelResponse, error)

RawDeleteApnsChannel executes `DeleteApnsChannel` raw operation.

func (*Pinpoint) RawDeleteApnsSandboxChannel

func (svc *Pinpoint) RawDeleteApnsSandboxChannel(ctx context.Context, in *SDK.DeleteApnsSandboxChannelInput) (*SDK.DeleteApnsSandboxChannelResponse, error)

RawDeleteApnsSandboxChannel executes `DeleteApnsSandboxChannel` raw operation.

func (*Pinpoint) RawDeleteApnsVoipChannel

func (svc *Pinpoint) RawDeleteApnsVoipChannel(ctx context.Context, in *SDK.DeleteApnsVoipChannelInput) (*SDK.DeleteApnsVoipChannelResponse, error)

RawDeleteApnsVoipChannel executes `DeleteApnsVoipChannel` raw operation.

func (*Pinpoint) RawDeleteApnsVoipSandboxChannel

RawDeleteApnsVoipSandboxChannel executes `DeleteApnsVoipSandboxChannel` raw operation.

func (*Pinpoint) RawDeleteApp

func (svc *Pinpoint) RawDeleteApp(ctx context.Context, in *SDK.DeleteAppInput) (*SDK.DeleteAppResponse, error)

RawDeleteApp executes `DeleteApp` raw operation.

func (*Pinpoint) RawDeleteBaiduChannel

func (svc *Pinpoint) RawDeleteBaiduChannel(ctx context.Context, in *SDK.DeleteBaiduChannelInput) (*SDK.DeleteBaiduChannelResponse, error)

RawDeleteBaiduChannel executes `DeleteBaiduChannel` raw operation.

func (*Pinpoint) RawDeleteCampaign

func (svc *Pinpoint) RawDeleteCampaign(ctx context.Context, in *SDK.DeleteCampaignInput) (*SDK.DeleteCampaignResponse, error)

RawDeleteCampaign executes `DeleteCampaign` raw operation.

func (*Pinpoint) RawDeleteEmailChannel

func (svc *Pinpoint) RawDeleteEmailChannel(ctx context.Context, in *SDK.DeleteEmailChannelInput) (*SDK.DeleteEmailChannelResponse, error)

RawDeleteEmailChannel executes `DeleteEmailChannel` raw operation.

func (*Pinpoint) RawDeleteEmailTemplate

func (svc *Pinpoint) RawDeleteEmailTemplate(ctx context.Context, in *SDK.DeleteEmailTemplateInput) (*SDK.DeleteEmailTemplateResponse, error)

RawDeleteEmailTemplate executes `DeleteEmailTemplate` raw operation.

func (*Pinpoint) RawDeleteEndpoint

func (svc *Pinpoint) RawDeleteEndpoint(ctx context.Context, in *SDK.DeleteEndpointInput) (*SDK.DeleteEndpointResponse, error)

RawDeleteEndpoint executes `DeleteEndpoint` raw operation.

func (*Pinpoint) RawDeleteEventStream

func (svc *Pinpoint) RawDeleteEventStream(ctx context.Context, in *SDK.DeleteEventStreamInput) (*SDK.DeleteEventStreamResponse, error)

RawDeleteEventStream executes `DeleteEventStream` raw operation.

func (*Pinpoint) RawDeleteGcmChannel

func (svc *Pinpoint) RawDeleteGcmChannel(ctx context.Context, in *SDK.DeleteGcmChannelInput) (*SDK.DeleteGcmChannelResponse, error)

RawDeleteGcmChannel executes `DeleteGcmChannel` raw operation.

func (*Pinpoint) RawDeleteJourney

func (svc *Pinpoint) RawDeleteJourney(ctx context.Context, in *SDK.DeleteJourneyInput) (*SDK.DeleteJourneyResponse, error)

RawDeleteJourney executes `DeleteJourney` raw operation.

func (*Pinpoint) RawDeletePushTemplate

func (svc *Pinpoint) RawDeletePushTemplate(ctx context.Context, in *SDK.DeletePushTemplateInput) (*SDK.DeletePushTemplateResponse, error)

RawDeletePushTemplate executes `DeletePushTemplate` raw operation.

func (*Pinpoint) RawDeleteRecommenderConfiguration

RawDeleteRecommenderConfiguration executes `DeleteRecommenderConfiguration` raw operation.

func (*Pinpoint) RawDeleteSegment

func (svc *Pinpoint) RawDeleteSegment(ctx context.Context, in *SDK.DeleteSegmentInput) (*SDK.DeleteSegmentResponse, error)

RawDeleteSegment executes `DeleteSegment` raw operation.

func (*Pinpoint) RawDeleteSmsChannel

func (svc *Pinpoint) RawDeleteSmsChannel(ctx context.Context, in *SDK.DeleteSmsChannelInput) (*SDK.DeleteSmsChannelResponse, error)

RawDeleteSmsChannel executes `DeleteSmsChannel` raw operation.

func (*Pinpoint) RawDeleteSmsTemplate

func (svc *Pinpoint) RawDeleteSmsTemplate(ctx context.Context, in *SDK.DeleteSmsTemplateInput) (*SDK.DeleteSmsTemplateResponse, error)

RawDeleteSmsTemplate executes `DeleteSmsTemplate` raw operation.

func (*Pinpoint) RawDeleteUserEndpoints

func (svc *Pinpoint) RawDeleteUserEndpoints(ctx context.Context, in *SDK.DeleteUserEndpointsInput) (*SDK.DeleteUserEndpointsResponse, error)

RawDeleteUserEndpoints executes `DeleteUserEndpoints` raw operation.

func (*Pinpoint) RawDeleteVoiceChannel

func (svc *Pinpoint) RawDeleteVoiceChannel(ctx context.Context, in *SDK.DeleteVoiceChannelInput) (*SDK.DeleteVoiceChannelResponse, error)

RawDeleteVoiceChannel executes `DeleteVoiceChannel` raw operation.

func (*Pinpoint) RawDeleteVoiceTemplate

func (svc *Pinpoint) RawDeleteVoiceTemplate(ctx context.Context, in *SDK.DeleteVoiceTemplateInput) (*SDK.DeleteVoiceTemplateResponse, error)

RawDeleteVoiceTemplate executes `DeleteVoiceTemplate` raw operation.

func (*Pinpoint) RawGetAdmChannel

func (svc *Pinpoint) RawGetAdmChannel(ctx context.Context, in *SDK.GetAdmChannelInput) (*SDK.GetAdmChannelResponse, error)

RawGetAdmChannel executes `GetAdmChannel` raw operation.

func (*Pinpoint) RawGetApnsChannel

func (svc *Pinpoint) RawGetApnsChannel(ctx context.Context, in *SDK.GetApnsChannelInput) (*SDK.GetApnsChannelResponse, error)

RawGetApnsChannel executes `GetApnsChannel` raw operation.

func (*Pinpoint) RawGetApnsSandboxChannel

func (svc *Pinpoint) RawGetApnsSandboxChannel(ctx context.Context, in *SDK.GetApnsSandboxChannelInput) (*SDK.GetApnsSandboxChannelResponse, error)

RawGetApnsSandboxChannel executes `GetApnsSandboxChannel` raw operation.

func (*Pinpoint) RawGetApnsVoipChannel

func (svc *Pinpoint) RawGetApnsVoipChannel(ctx context.Context, in *SDK.GetApnsVoipChannelInput) (*SDK.GetApnsVoipChannelResponse, error)

RawGetApnsVoipChannel executes `GetApnsVoipChannel` raw operation.

func (*Pinpoint) RawGetApnsVoipSandboxChannel

func (svc *Pinpoint) RawGetApnsVoipSandboxChannel(ctx context.Context, in *SDK.GetApnsVoipSandboxChannelInput) (*SDK.GetApnsVoipSandboxChannelResponse, error)

RawGetApnsVoipSandboxChannel executes `GetApnsVoipSandboxChannel` raw operation.

func (*Pinpoint) RawGetApp

func (svc *Pinpoint) RawGetApp(ctx context.Context, in *SDK.GetAppInput) (*SDK.GetAppResponse, error)

RawGetApp executes `GetApp` raw operation.

func (*Pinpoint) RawGetApplicationDateRangeKpi

RawGetApplicationDateRangeKpi executes `GetApplicationDateRangeKpi` raw operation.

func (*Pinpoint) RawGetApplicationSettings

func (svc *Pinpoint) RawGetApplicationSettings(ctx context.Context, in *SDK.GetApplicationSettingsInput) (*SDK.GetApplicationSettingsResponse, error)

RawGetApplicationSettings executes `GetApplicationSettings` raw operation.

func (*Pinpoint) RawGetApps

func (svc *Pinpoint) RawGetApps(ctx context.Context, in *SDK.GetAppsInput) (*SDK.GetAppsResponse, error)

RawGetApps executes `GetApps` raw operation.

func (*Pinpoint) RawGetBaiduChannel

func (svc *Pinpoint) RawGetBaiduChannel(ctx context.Context, in *SDK.GetBaiduChannelInput) (*SDK.GetBaiduChannelResponse, error)

RawGetBaiduChannel executes `GetBaiduChannel` raw operation.

func (*Pinpoint) RawGetCampaign

func (svc *Pinpoint) RawGetCampaign(ctx context.Context, in *SDK.GetCampaignInput) (*SDK.GetCampaignResponse, error)

RawGetCampaign executes `GetCampaign` raw operation.

func (*Pinpoint) RawGetCampaignActivities

func (svc *Pinpoint) RawGetCampaignActivities(ctx context.Context, in *SDK.GetCampaignActivitiesInput) (*SDK.GetCampaignActivitiesResponse, error)

RawGetCampaignActivities executes `GetCampaignActivities` raw operation.

func (*Pinpoint) RawGetCampaignDateRangeKpi

func (svc *Pinpoint) RawGetCampaignDateRangeKpi(ctx context.Context, in *SDK.GetCampaignDateRangeKpiInput) (*SDK.GetCampaignDateRangeKpiResponse, error)

RawGetCampaignDateRangeKpi executes `GetCampaignDateRangeKpi` raw operation.

func (*Pinpoint) RawGetCampaignVersion

func (svc *Pinpoint) RawGetCampaignVersion(ctx context.Context, in *SDK.GetCampaignVersionInput) (*SDK.GetCampaignVersionResponse, error)

RawGetCampaignVersion executes `GetCampaignVersion` raw operation.

func (*Pinpoint) RawGetCampaignVersions

func (svc *Pinpoint) RawGetCampaignVersions(ctx context.Context, in *SDK.GetCampaignVersionsInput) (*SDK.GetCampaignVersionsResponse, error)

RawGetCampaignVersions executes `GetCampaignVersions` raw operation.

func (*Pinpoint) RawGetCampaigns

func (svc *Pinpoint) RawGetCampaigns(ctx context.Context, in *SDK.GetCampaignsInput) (*SDK.GetCampaignsResponse, error)

RawGetCampaigns executes `GetCampaigns` raw operation.

func (*Pinpoint) RawGetChannels

func (svc *Pinpoint) RawGetChannels(ctx context.Context, in *SDK.GetChannelsInput) (*SDK.GetChannelsResponse, error)

RawGetChannels executes `GetChannels` raw operation.

func (*Pinpoint) RawGetEmailChannel

func (svc *Pinpoint) RawGetEmailChannel(ctx context.Context, in *SDK.GetEmailChannelInput) (*SDK.GetEmailChannelResponse, error)

RawGetEmailChannel executes `GetEmailChannel` raw operation.

func (*Pinpoint) RawGetEmailTemplate

func (svc *Pinpoint) RawGetEmailTemplate(ctx context.Context, in *SDK.GetEmailTemplateInput) (*SDK.GetEmailTemplateResponse, error)

RawGetEmailTemplate executes `GetEmailTemplate` raw operation.

func (*Pinpoint) RawGetEndpoint

func (svc *Pinpoint) RawGetEndpoint(ctx context.Context, in *SDK.GetEndpointInput) (*SDK.GetEndpointResponse, error)

RawGetEndpoint executes `GetEndpoint` raw operation.

func (*Pinpoint) RawGetEventStream

func (svc *Pinpoint) RawGetEventStream(ctx context.Context, in *SDK.GetEventStreamInput) (*SDK.GetEventStreamResponse, error)

RawGetEventStream executes `GetEventStream` raw operation.

func (*Pinpoint) RawGetExportJob

func (svc *Pinpoint) RawGetExportJob(ctx context.Context, in *SDK.GetExportJobInput) (*SDK.GetExportJobResponse, error)

RawGetExportJob executes `GetExportJob` raw operation.

func (*Pinpoint) RawGetExportJobs

func (svc *Pinpoint) RawGetExportJobs(ctx context.Context, in *SDK.GetExportJobsInput) (*SDK.GetExportJobsResponse, error)

RawGetExportJobs executes `GetExportJobs` raw operation.

func (*Pinpoint) RawGetGcmChannel

func (svc *Pinpoint) RawGetGcmChannel(ctx context.Context, in *SDK.GetGcmChannelInput) (*SDK.GetGcmChannelResponse, error)

RawGetGcmChannel executes `GetGcmChannel` raw operation.

func (*Pinpoint) RawGetImportJob

func (svc *Pinpoint) RawGetImportJob(ctx context.Context, in *SDK.GetImportJobInput) (*SDK.GetImportJobResponse, error)

RawGetImportJob executes `GetImportJob` raw operation.

func (*Pinpoint) RawGetImportJobs

func (svc *Pinpoint) RawGetImportJobs(ctx context.Context, in *SDK.GetImportJobsInput) (*SDK.GetImportJobsResponse, error)

RawGetImportJobs executes `GetImportJobs` raw operation.

func (*Pinpoint) RawGetJourney

func (svc *Pinpoint) RawGetJourney(ctx context.Context, in *SDK.GetJourneyInput) (*SDK.GetJourneyResponse, error)

RawGetJourney executes `GetJourney` raw operation.

func (*Pinpoint) RawGetJourneyDateRangeKpi

func (svc *Pinpoint) RawGetJourneyDateRangeKpi(ctx context.Context, in *SDK.GetJourneyDateRangeKpiInput) (*SDK.GetJourneyDateRangeKpiResponse, error)

RawGetJourneyDateRangeKpi executes `GetJourneyDateRangeKpi` raw operation.

func (*Pinpoint) RawGetJourneyExecutionActivityMetrics

RawGetJourneyExecutionActivityMetrics executes `GetJourneyExecutionActivityMetrics` raw operation.

func (*Pinpoint) RawGetJourneyExecutionMetrics

RawGetJourneyExecutionMetrics executes `GetJourneyExecutionMetrics` raw operation.

func (*Pinpoint) RawGetPushTemplate

func (svc *Pinpoint) RawGetPushTemplate(ctx context.Context, in *SDK.GetPushTemplateInput) (*SDK.GetPushTemplateResponse, error)

RawGetPushTemplate executes `GetPushTemplate` raw operation.

func (*Pinpoint) RawGetRecommenderConfiguration

RawGetRecommenderConfiguration executes `GetRecommenderConfiguration` raw operation.

func (*Pinpoint) RawGetRecommenderConfigurations

RawGetRecommenderConfigurations executes `GetRecommenderConfigurations` raw operation.

func (*Pinpoint) RawGetSegment

func (svc *Pinpoint) RawGetSegment(ctx context.Context, in *SDK.GetSegmentInput) (*SDK.GetSegmentResponse, error)

RawGetSegment executes `GetSegment` raw operation.

func (*Pinpoint) RawGetSegmentExportJobs

func (svc *Pinpoint) RawGetSegmentExportJobs(ctx context.Context, in *SDK.GetSegmentExportJobsInput) (*SDK.GetSegmentExportJobsResponse, error)

RawGetSegmentExportJobs executes `GetSegmentExportJobs` raw operation.

func (*Pinpoint) RawGetSegmentImportJobs

func (svc *Pinpoint) RawGetSegmentImportJobs(ctx context.Context, in *SDK.GetSegmentImportJobsInput) (*SDK.GetSegmentImportJobsResponse, error)

RawGetSegmentImportJobs executes `GetSegmentImportJobs` raw operation.

func (*Pinpoint) RawGetSegmentVersion

func (svc *Pinpoint) RawGetSegmentVersion(ctx context.Context, in *SDK.GetSegmentVersionInput) (*SDK.GetSegmentVersionResponse, error)

RawGetSegmentVersion executes `GetSegmentVersion` raw operation.

func (*Pinpoint) RawGetSegmentVersions

func (svc *Pinpoint) RawGetSegmentVersions(ctx context.Context, in *SDK.GetSegmentVersionsInput) (*SDK.GetSegmentVersionsResponse, error)

RawGetSegmentVersions executes `GetSegmentVersions` raw operation.

func (*Pinpoint) RawGetSegments

func (svc *Pinpoint) RawGetSegments(ctx context.Context, in *SDK.GetSegmentsInput) (*SDK.GetSegmentsResponse, error)

RawGetSegments executes `GetSegments` raw operation.

func (*Pinpoint) RawGetSmsChannel

func (svc *Pinpoint) RawGetSmsChannel(ctx context.Context, in *SDK.GetSmsChannelInput) (*SDK.GetSmsChannelResponse, error)

RawGetSmsChannel executes `GetSmsChannel` raw operation.

func (*Pinpoint) RawGetSmsTemplate

func (svc *Pinpoint) RawGetSmsTemplate(ctx context.Context, in *SDK.GetSmsTemplateInput) (*SDK.GetSmsTemplateResponse, error)

RawGetSmsTemplate executes `GetSmsTemplate` raw operation.

func (*Pinpoint) RawGetUserEndpoints

func (svc *Pinpoint) RawGetUserEndpoints(ctx context.Context, in *SDK.GetUserEndpointsInput) (*SDK.GetUserEndpointsResponse, error)

RawGetUserEndpoints executes `GetUserEndpoints` raw operation.

func (*Pinpoint) RawGetVoiceChannel

func (svc *Pinpoint) RawGetVoiceChannel(ctx context.Context, in *SDK.GetVoiceChannelInput) (*SDK.GetVoiceChannelResponse, error)

RawGetVoiceChannel executes `GetVoiceChannel` raw operation.

func (*Pinpoint) RawGetVoiceTemplate

func (svc *Pinpoint) RawGetVoiceTemplate(ctx context.Context, in *SDK.GetVoiceTemplateInput) (*SDK.GetVoiceTemplateResponse, error)

RawGetVoiceTemplate executes `GetVoiceTemplate` raw operation.

func (*Pinpoint) RawListJourneys

func (svc *Pinpoint) RawListJourneys(ctx context.Context, in *SDK.ListJourneysInput) (*SDK.ListJourneysResponse, error)

RawListJourneys executes `ListJourneys` raw operation.

func (*Pinpoint) RawListTagsForResource

func (svc *Pinpoint) RawListTagsForResource(ctx context.Context, in *SDK.ListTagsForResourceInput) (*SDK.ListTagsForResourceResponse, error)

RawListTagsForResource executes `ListTagsForResource` raw operation.

func (*Pinpoint) RawListTemplateVersions

func (svc *Pinpoint) RawListTemplateVersions(ctx context.Context, in *SDK.ListTemplateVersionsInput) (*SDK.ListTemplateVersionsResponse, error)

RawListTemplateVersions executes `ListTemplateVersions` raw operation.

func (*Pinpoint) RawListTemplates

func (svc *Pinpoint) RawListTemplates(ctx context.Context, in *SDK.ListTemplatesInput) (*SDK.ListTemplatesResponse, error)

RawListTemplates executes `ListTemplates` raw operation.

func (*Pinpoint) RawPhoneNumberValidate

func (svc *Pinpoint) RawPhoneNumberValidate(ctx context.Context, in *SDK.PhoneNumberValidateInput) (*SDK.PhoneNumberValidateResponse, error)

RawPhoneNumberValidate executes `PhoneNumberValidate` raw operation.

func (*Pinpoint) RawPutEventStream

func (svc *Pinpoint) RawPutEventStream(ctx context.Context, in *SDK.PutEventStreamInput) (*SDK.PutEventStreamResponse, error)

RawPutEventStream executes `PutEventStream` raw operation.

func (*Pinpoint) RawPutEvents

func (svc *Pinpoint) RawPutEvents(ctx context.Context, in *SDK.PutEventsInput) (*SDK.PutEventsResponse, error)

RawPutEvents executes `PutEvents` raw operation.

func (*Pinpoint) RawRemoveAttributes

func (svc *Pinpoint) RawRemoveAttributes(ctx context.Context, in *SDK.RemoveAttributesInput) (*SDK.RemoveAttributesResponse, error)

RawRemoveAttributes executes `RemoveAttributes` raw operation.

func (*Pinpoint) RawSendMessages

func (svc *Pinpoint) RawSendMessages(ctx context.Context, in *SDK.SendMessagesInput) (*SDK.SendMessagesResponse, error)

RawSendMessages executes `SendMessages` raw operation.

func (*Pinpoint) RawSendUsersMessages

func (svc *Pinpoint) RawSendUsersMessages(ctx context.Context, in *SDK.SendUsersMessagesInput) (*SDK.SendUsersMessagesResponse, error)

RawSendUsersMessages executes `SendUsersMessages` raw operation.

func (*Pinpoint) RawTagResource

func (svc *Pinpoint) RawTagResource(ctx context.Context, in *SDK.TagResourceInput) (*SDK.TagResourceResponse, error)

RawTagResource executes `TagResource` raw operation.

func (*Pinpoint) RawUntagResource

func (svc *Pinpoint) RawUntagResource(ctx context.Context, in *SDK.UntagResourceInput) (*SDK.UntagResourceResponse, error)

RawUntagResource executes `UntagResource` raw operation.

func (*Pinpoint) RawUpdateAdmChannel

func (svc *Pinpoint) RawUpdateAdmChannel(ctx context.Context, in *SDK.UpdateAdmChannelInput) (*SDK.UpdateAdmChannelResponse, error)

RawUpdateAdmChannel executes `UpdateAdmChannel` raw operation.

func (*Pinpoint) RawUpdateApnsChannel

func (svc *Pinpoint) RawUpdateApnsChannel(ctx context.Context, in *SDK.UpdateApnsChannelInput) (*SDK.UpdateApnsChannelResponse, error)

RawUpdateApnsChannel executes `UpdateApnsChannel` raw operation.

func (*Pinpoint) RawUpdateApnsSandboxChannel

func (svc *Pinpoint) RawUpdateApnsSandboxChannel(ctx context.Context, in *SDK.UpdateApnsSandboxChannelInput) (*SDK.UpdateApnsSandboxChannelResponse, error)

RawUpdateApnsSandboxChannel executes `UpdateApnsSandboxChannel` raw operation.

func (*Pinpoint) RawUpdateApnsVoipChannel

func (svc *Pinpoint) RawUpdateApnsVoipChannel(ctx context.Context, in *SDK.UpdateApnsVoipChannelInput) (*SDK.UpdateApnsVoipChannelResponse, error)

RawUpdateApnsVoipChannel executes `UpdateApnsVoipChannel` raw operation.

func (*Pinpoint) RawUpdateApnsVoipSandboxChannel

RawUpdateApnsVoipSandboxChannel executes `UpdateApnsVoipSandboxChannel` raw operation.

func (*Pinpoint) RawUpdateApplicationSettings

func (svc *Pinpoint) RawUpdateApplicationSettings(ctx context.Context, in *SDK.UpdateApplicationSettingsInput) (*SDK.UpdateApplicationSettingsResponse, error)

RawUpdateApplicationSettings executes `UpdateApplicationSettings` raw operation.

func (*Pinpoint) RawUpdateBaiduChannel

func (svc *Pinpoint) RawUpdateBaiduChannel(ctx context.Context, in *SDK.UpdateBaiduChannelInput) (*SDK.UpdateBaiduChannelResponse, error)

RawUpdateBaiduChannel executes `UpdateBaiduChannel` raw operation.

func (*Pinpoint) RawUpdateCampaign

func (svc *Pinpoint) RawUpdateCampaign(ctx context.Context, in *SDK.UpdateCampaignInput) (*SDK.UpdateCampaignResponse, error)

RawUpdateCampaign executes `UpdateCampaign` raw operation.

func (*Pinpoint) RawUpdateEmailChannel

func (svc *Pinpoint) RawUpdateEmailChannel(ctx context.Context, in *SDK.UpdateEmailChannelInput) (*SDK.UpdateEmailChannelResponse, error)

RawUpdateEmailChannel executes `UpdateEmailChannel` raw operation.

func (*Pinpoint) RawUpdateEmailTemplate

func (svc *Pinpoint) RawUpdateEmailTemplate(ctx context.Context, in *SDK.UpdateEmailTemplateInput) (*SDK.UpdateEmailTemplateResponse, error)

RawUpdateEmailTemplate executes `UpdateEmailTemplate` raw operation.

func (*Pinpoint) RawUpdateEndpoint

func (svc *Pinpoint) RawUpdateEndpoint(ctx context.Context, in *SDK.UpdateEndpointInput) (*SDK.UpdateEndpointResponse, error)

RawUpdateEndpoint executes `UpdateEndpoint` raw operation.

func (*Pinpoint) RawUpdateEndpointsBatch

func (svc *Pinpoint) RawUpdateEndpointsBatch(ctx context.Context, in *SDK.UpdateEndpointsBatchInput) (*SDK.UpdateEndpointsBatchResponse, error)

RawUpdateEndpointsBatch executes `UpdateEndpointsBatch` raw operation.

func (*Pinpoint) RawUpdateGcmChannel

func (svc *Pinpoint) RawUpdateGcmChannel(ctx context.Context, in *SDK.UpdateGcmChannelInput) (*SDK.UpdateGcmChannelResponse, error)

RawUpdateGcmChannel executes `UpdateGcmChannel` raw operation.

func (*Pinpoint) RawUpdateJourney

func (svc *Pinpoint) RawUpdateJourney(ctx context.Context, in *SDK.UpdateJourneyInput) (*SDK.UpdateJourneyResponse, error)

RawUpdateJourney executes `UpdateJourney` raw operation.

func (*Pinpoint) RawUpdateJourneyState

func (svc *Pinpoint) RawUpdateJourneyState(ctx context.Context, in *SDK.UpdateJourneyStateInput) (*SDK.UpdateJourneyStateResponse, error)

RawUpdateJourneyState executes `UpdateJourneyState` raw operation.

func (*Pinpoint) RawUpdatePushTemplate

func (svc *Pinpoint) RawUpdatePushTemplate(ctx context.Context, in *SDK.UpdatePushTemplateInput) (*SDK.UpdatePushTemplateResponse, error)

RawUpdatePushTemplate executes `UpdatePushTemplate` raw operation.

func (*Pinpoint) RawUpdateRecommenderConfiguration

RawUpdateRecommenderConfiguration executes `UpdateRecommenderConfiguration` raw operation.

func (*Pinpoint) RawUpdateSegment

func (svc *Pinpoint) RawUpdateSegment(ctx context.Context, in *SDK.UpdateSegmentInput) (*SDK.UpdateSegmentResponse, error)

RawUpdateSegment executes `UpdateSegment` raw operation.

func (*Pinpoint) RawUpdateSmsChannel

func (svc *Pinpoint) RawUpdateSmsChannel(ctx context.Context, in *SDK.UpdateSmsChannelInput) (*SDK.UpdateSmsChannelResponse, error)

RawUpdateSmsChannel executes `UpdateSmsChannel` raw operation.

func (*Pinpoint) RawUpdateSmsTemplate

func (svc *Pinpoint) RawUpdateSmsTemplate(ctx context.Context, in *SDK.UpdateSmsTemplateInput) (*SDK.UpdateSmsTemplateResponse, error)

RawUpdateSmsTemplate executes `UpdateSmsTemplate` raw operation.

func (*Pinpoint) RawUpdateTemplateActiveVersion

RawUpdateTemplateActiveVersion executes `UpdateTemplateActiveVersion` raw operation.

func (*Pinpoint) RawUpdateVoiceChannel

func (svc *Pinpoint) RawUpdateVoiceChannel(ctx context.Context, in *SDK.UpdateVoiceChannelInput) (*SDK.UpdateVoiceChannelResponse, error)

RawUpdateVoiceChannel executes `UpdateVoiceChannel` raw operation.

func (*Pinpoint) RawUpdateVoiceTemplate

func (svc *Pinpoint) RawUpdateVoiceTemplate(ctx context.Context, in *SDK.UpdateVoiceTemplateInput) (*SDK.UpdateVoiceTemplateResponse, error)

RawUpdateVoiceTemplate executes `UpdateVoiceTemplate` raw operation.

func (*Pinpoint) SetLogger

func (svc *Pinpoint) SetLogger(logger log.Logger)

SetLogger sets logger.

func (*Pinpoint) UpdateEndpoint

func (svc *Pinpoint) UpdateEndpoint(ctx context.Context, r UpdateEndpointRequest) (*UpdateEndpointResult, error)

UpdateEndpoint executes `UpdateEndpoint` operation.

func (*Pinpoint) UpdateEndpointsBatch

UpdateEndpointsBatch executes `UpdateEndpointsBatch` operation.

func (*Pinpoint) XExistsApp

func (svc *Pinpoint) XExistsApp(ctx context.Context, appID string) (bool, error)

XExistsApp checks if the application already exists or not.

func (*Pinpoint) XGetAppIDByName

func (svc *Pinpoint) XGetAppIDByName(ctx context.Context, appName string) (appID string, err error)

XGetAppIDByName searches app by name and returns its ID.

func (*Pinpoint) XUpdateEndpointEmail

func (svc *Pinpoint) XUpdateEndpointEmail(ctx context.Context, appID, endpointID, userID, email string, attrs ...map[string][]string) error

XUpdateEndpointEmail updates email endpoint. (attrs[0]=Attributes, attrs[1]=UserAttributes)

type PushNotificationTemplateRequest

type PushNotificationTemplateRequest struct {
	ADM                  AndroidPushNotificationTemplate
	APNS                 APNsPushNotificationTemplate
	Baidu                AndroidPushNotificationTemplate
	Default              DefaultPushNotificationTemplate
	DefaultSubstitutions string
	GCM                  AndroidPushNotificationTemplate
	RecommenderID        string
	Tags                 map[string]string
	TemplateDescription  string
}

func (PushNotificationTemplateRequest) ToSDK

type QuietTime

type QuietTime struct {
	End   string
	Start string
}

func (QuietTime) ToSDK

func (r QuietTime) ToSDK() *SDK.QuietTime

type RecencyType

type RecencyType string
const (
	RecencyTypeActive   RecencyType = RecencyType(SDK.RecencyTypeActive)
	RecencyTypeInactive RecencyType = RecencyType(SDK.RecencyTypeInactive)
)

type Schedule

type Schedule struct {
	StartTime string

	// optional
	EndTime     string
	EventFilter CampaignEventFilter
	Frequency   Frequency
	IsLocalTime bool
	QuietTime   QuietTime
	Timezone    string
}

func (Schedule) ToSDK

func (r Schedule) ToSDK() *SDK.Schedule

type SegmentBehaviors

type SegmentBehaviors struct {
	RecencyDuration Duration
	RecencyType     RecencyType
}

func (SegmentBehaviors) ToSDK

type SegmentDemographics

type SegmentDemographics struct {
	AppVersion SetDimension
	Channel    SetDimension
	DeviceType SetDimension
	Make       SetDimension
	Model      SetDimension
	Platform   SetDimension
}

func (SegmentDemographics) ToSDK

type SegmentDimensions

type SegmentDimensions struct {
	Attributes     map[string]AttributeDimension
	Behavior       SegmentBehaviors
	Demographic    SegmentDemographics
	Location       SegmentLocation
	Metrics        map[string]MetricDimension
	UserAttributes map[string]AttributeDimension
}

func (SegmentDimensions) ToSDK

type SegmentGroup

type SegmentGroup struct {
	Dimensions     []SegmentDimensions
	SourceSegments []SegmentReference
	SourceType     SourceType
	Type           Type
}

func (SegmentGroup) ToSDK

func (r SegmentGroup) ToSDK() SDK.SegmentGroup

type SegmentGroupList

type SegmentGroupList struct {
	Groups  []SegmentGroup
	Include Include
}

func (SegmentGroupList) ToSDK

type SegmentImportResource

type SegmentImportResource struct {
	Format  Format
	RoleARN string
	S3URL   string
	Size    int64

	// optional
	ChannelCounts map[string]int64
}

type SegmentLocation

type SegmentLocation struct {
	Country  SetDimension
	GPSPoint GPSPointDimension
}

func (SegmentLocation) ToSDK

func (r SegmentLocation) ToSDK() *SDK.SegmentLocation

type SegmentReference

type SegmentReference struct {
	ID string

	// optional
	Version int64
}

func (SegmentReference) ToSDK

type SegmentResponse

type SegmentResponse struct {
	ApplicationID string
	ARN           string
	CreationDate  string
	ID            string
	SegmentType   SegmentType

	// optional
	Dimensions       SegmentDimensions
	ImportDefinition SegmentImportResource
	LastModifiedDate string
	Name             string
	SegmentGroups    SegmentGroupList
	Tags             map[string]string
	Version          int64
}

type SegmentType

type SegmentType string
const (
	SegmentTypeDimensional SegmentType = SegmentType(SDK.SegmentTypeDimensional)
	SegmentTypeImport      SegmentType = SegmentType(SDK.SegmentTypeImport)
)

type SegmentsResponse

type SegmentsResponse struct {
	Item      []SegmentResponse
	NextToken string
}

type SetDimension

type SetDimension struct {
	Values []string

	// optional
	DimensionType DimensionType
}

func (SetDimension) ToSDK

func (r SetDimension) ToSDK() *SDK.SetDimension

type SourceType

type SourceType string
const (
	SourceTypeAll  SourceType = SourceType(SDK.SourceTypeAll)
	SourceTypeAny  SourceType = SourceType(SDK.SourceTypeAny)
	SourceTypeNone SourceType = SourceType(SDK.SourceTypeNone)
)

type Template

type Template struct {
	Name    string
	Version string
}

func (Template) ToSDK

func (r Template) ToSDK() *SDK.Template

type TemplateConfiguration

type TemplateConfiguration struct {
	EmailTemplate Template
	PushTemplate  Template
	SMSTemplate   Template
	VoiceTemplate Template
}

func (TemplateConfiguration) ToSDK

type TemplateResponse

type TemplateResponse struct {
	CreationDate     string
	LastModifiedDate string
	TemplateName     string
	TemplateType     TemplateType

	ARN                  string
	DefaultSubstitutions string
	Tags                 map[string]string
	TemplateDescription  string
	Version              string
}

type TemplateType

type TemplateType string

type TemplatesResponse

type TemplatesResponse struct {
	Item []TemplateResponse

	// optional
	NextToken string
}

type TreatmentResource

type TreatmentResource struct {
	ID          string
	SizePercent int64

	// optional
	CustomDeliveryConfiguration CustomDeliveryConfiguration
	MessageConfiguration        MessageConfiguration
	Schedule                    Schedule
	State                       CampaignStatus
	TemplateConfiguration       TemplateConfiguration
	TreatmentDescription        string
	TreatmentName               string
}

type Type

type Type string
const (
	TypeAll  Type = Type(SDK.TypeAll)
	TypeAny  Type = Type(SDK.TypeAny)
	TypeNone Type = Type(SDK.TypeNone)
)

type UpdateEndpointRequest

type UpdateEndpointRequest struct {
	ApplicationID   string
	EndpointID      string
	EndpointRequest EndpointRequest
}

UpdateEndpointRequest has parameters for `UpdateEndpoint` operation.

func (UpdateEndpointRequest) ToInput

type UpdateEndpointResult

type UpdateEndpointResult struct {
	Message   string
	RequestID string
}

type UpdateEndpointsBatchRequest

type UpdateEndpointsBatchRequest struct {
	ApplicationID        string
	EndpointBatchRequest EndpointBatchRequest
}

UpdateEndpointsBatchRequest has parameters for `UpdateEndpointsBatch` operation.

func (UpdateEndpointsBatchRequest) ToInput

type UpdateEndpointsBatchResult

type UpdateEndpointsBatchResult struct {
	Message   string
	RequestID string
}

type WriteCampaignRequest

type WriteCampaignRequest struct {
	AdditionalTreatments        []WriteTreatmentResource
	CustomDeliveryConfiguration CustomDeliveryConfiguration
	Description                 string
	HoldoutPercent              int64
	Hook                        CampaignHook
	IsPaused                    bool
	Limits                      CampaignLimits
	MessageConfiguration        MessageConfiguration
	Name                        string
	Schedule                    Schedule
	SegmentID                   string
	SegmentVersion              int64
	Tags                        map[string]string
	TemplateConfiguration       TemplateConfiguration
	TreatmentDescription        string
	TreatmentName               string
}

func (WriteCampaignRequest) ToSDK

type WriteSegmentRequest

type WriteSegmentRequest struct {
	Dimensions    SegmentDimensions
	Name          string
	SegmentGroups SegmentGroupList
	Tags          map[string]string
}

func (WriteSegmentRequest) ToSDK

type WriteTreatmentResource

type WriteTreatmentResource struct {
	SizePercent int64

	// optional
	CustomDeliveryConfiguration CustomDeliveryConfiguration
	MessageConfiguration        MessageConfiguration
	Schedule                    Schedule
	TemplateConfiguration       TemplateConfiguration
	TreatmentDescription        string
	TreatmentName               string
}

func (WriteTreatmentResource) ToSDK

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL