pinpointsmsvoice

package
v1.37.5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 9 Imported by: 21

Documentation

Overview

Package pinpointsmsvoice provides the client and types for making API requests to Amazon Pinpoint SMS and Voice Service.

Pinpoint SMS and Voice Messaging public facing APIs

See https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05 for more information on this service.

See pinpointsmsvoice package documentation for more information. https://docs.aws.amazon.com/sdk-for-go/api/service/pinpointsmsvoice/

Using the Client

To contact Amazon Pinpoint SMS and Voice Service with the SDK use the New function to create a new service client. With that client you can make API requests to the service. These clients are safe to use concurrently.

See the SDK's documentation for more information on how to use the SDK. https://docs.aws.amazon.com/sdk-for-go/api/

See aws.Config documentation for more information on configuring SDK clients. https://docs.aws.amazon.com/sdk-for-go/api/aws/#Config

See the Amazon Pinpoint SMS and Voice Service client PinpointSMSVoice for more information on creating client for this service. https://docs.aws.amazon.com/sdk-for-go/api/service/pinpointsmsvoice/#New

Index

Constants

View Source
const (
	// EventTypeInitiatedCall is a EventType enum value
	EventTypeInitiatedCall = "INITIATED_CALL"

	// EventTypeRinging is a EventType enum value
	EventTypeRinging = "RINGING"

	// EventTypeAnswered is a EventType enum value
	EventTypeAnswered = "ANSWERED"

	// EventTypeCompletedCall is a EventType enum value
	EventTypeCompletedCall = "COMPLETED_CALL"

	// EventTypeBusy is a EventType enum value
	EventTypeBusy = "BUSY"

	// EventTypeFailed is a EventType enum value
	EventTypeFailed = "FAILED"

	// EventTypeNoAnswer is a EventType enum value
	EventTypeNoAnswer = "NO_ANSWER"
)

The types of events that are sent to the event destination.

View Source
const (

	// ErrCodeAlreadyExistsException for service response error code
	// "AlreadyExistsException".
	//
	// The resource specified in your request already exists.
	ErrCodeAlreadyExistsException = "AlreadyExistsException"

	// ErrCodeBadRequestException for service response error code
	// "BadRequestException".
	//
	// The input you provided is invalid.
	ErrCodeBadRequestException = "BadRequestException"

	// ErrCodeInternalServiceErrorException for service response error code
	// "InternalServiceErrorException".
	//
	// The API encountered an unexpected error and couldn't complete the request.
	// You might be able to successfully issue the request again in the future.
	ErrCodeInternalServiceErrorException = "InternalServiceErrorException"

	// ErrCodeLimitExceededException for service response error code
	// "LimitExceededException".
	//
	// There are too many instances of the specified resource type.
	ErrCodeLimitExceededException = "LimitExceededException"

	// ErrCodeNotFoundException for service response error code
	// "NotFoundException".
	//
	// The resource you attempted to access doesn't exist.
	ErrCodeNotFoundException = "NotFoundException"

	// ErrCodeTooManyRequestsException for service response error code
	// "TooManyRequestsException".
	//
	// You've issued too many requests to the resource. Wait a few minutes, and
	// then try again.
	ErrCodeTooManyRequestsException = "TooManyRequestsException"
)
View Source
const (
	ServiceName = "Pinpoint SMS Voice" // Name of service.
	EndpointsID = "sms-voice.pinpoint" // ID to lookup a service endpoint with.
	ServiceID   = "Pinpoint SMS Voice" // ServiceID is a unique identifier of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

func EventType_Values added in v1.34.3

func EventType_Values() []string

EventType_Values returns all elements of the EventType enum

Types

type AlreadyExistsException added in v1.28.0

type AlreadyExistsException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"Message" type:"string"`
	// contains filtered or unexported fields
}

The resource specified in your request already exists.

func (*AlreadyExistsException) Code added in v1.28.0

func (s *AlreadyExistsException) Code() string

Code returns the exception type name.

func (*AlreadyExistsException) Error added in v1.28.0

func (s *AlreadyExistsException) Error() string

func (AlreadyExistsException) GoString added in v1.28.0

func (s AlreadyExistsException) GoString() string

GoString returns the string representation

func (*AlreadyExistsException) Message added in v1.28.0

func (s *AlreadyExistsException) Message() string

Message returns the exception's message.

func (*AlreadyExistsException) OrigErr added in v1.28.0

func (s *AlreadyExistsException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*AlreadyExistsException) RequestID added in v1.28.0

func (s *AlreadyExistsException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*AlreadyExistsException) StatusCode added in v1.28.0

func (s *AlreadyExistsException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (AlreadyExistsException) String added in v1.28.0

func (s AlreadyExistsException) String() string

String returns the string representation

type BadRequestException added in v1.28.0

type BadRequestException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"Message" type:"string"`
	// contains filtered or unexported fields
}

The input you provided is invalid.

func (*BadRequestException) Code added in v1.28.0

func (s *BadRequestException) Code() string

Code returns the exception type name.

func (*BadRequestException) Error added in v1.28.0

func (s *BadRequestException) Error() string

func (BadRequestException) GoString added in v1.28.0

func (s BadRequestException) GoString() string

GoString returns the string representation

func (*BadRequestException) Message added in v1.28.0

func (s *BadRequestException) Message() string

Message returns the exception's message.

func (*BadRequestException) OrigErr added in v1.28.0

func (s *BadRequestException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*BadRequestException) RequestID added in v1.28.0

func (s *BadRequestException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*BadRequestException) StatusCode added in v1.28.0

func (s *BadRequestException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (BadRequestException) String added in v1.28.0

func (s BadRequestException) String() string

String returns the string representation

type CallInstructionsMessageType

type CallInstructionsMessageType struct {

	// The language to use when delivering the message. For a complete list of supported
	// languages, see the Amazon Polly Developer Guide.
	Text *string `type:"string"`
	// contains filtered or unexported fields
}

An object that defines a message that contains text formatted using Amazon Pinpoint Voice Instructions markup.

func (CallInstructionsMessageType) GoString

func (s CallInstructionsMessageType) GoString() string

GoString returns the string representation

func (*CallInstructionsMessageType) SetText

SetText sets the Text field's value.

func (CallInstructionsMessageType) String

String returns the string representation

type CloudWatchLogsDestination

type CloudWatchLogsDestination struct {

	// The Amazon Resource Name (ARN) of an Amazon Identity and Access Management
	// (IAM) role that is able to write event data to an Amazon CloudWatch destination.
	IamRoleArn *string `type:"string"`

	// The name of the Amazon CloudWatch Log Group that you want to record events
	// in.
	LogGroupArn *string `type:"string"`
	// contains filtered or unexported fields
}

An object that contains information about an event destination that sends data to Amazon CloudWatch Logs.

func (CloudWatchLogsDestination) GoString

func (s CloudWatchLogsDestination) GoString() string

GoString returns the string representation

func (*CloudWatchLogsDestination) SetIamRoleArn

SetIamRoleArn sets the IamRoleArn field's value.

func (*CloudWatchLogsDestination) SetLogGroupArn

SetLogGroupArn sets the LogGroupArn field's value.

func (CloudWatchLogsDestination) String

func (s CloudWatchLogsDestination) String() string

String returns the string representation

type CreateConfigurationSetEventDestinationInput

type CreateConfigurationSetEventDestinationInput struct {

	// ConfigurationSetName is a required field
	ConfigurationSetName *string `location:"uri" locationName:"ConfigurationSetName" type:"string" required:"true"`

	// An object that defines a single event destination.
	EventDestination *EventDestinationDefinition `type:"structure"`

	// A name that identifies the event destination.
	EventDestinationName *string `type:"string"`
	// contains filtered or unexported fields
}

Create a new event destination in a configuration set.

func (CreateConfigurationSetEventDestinationInput) GoString

GoString returns the string representation

func (*CreateConfigurationSetEventDestinationInput) SetConfigurationSetName

SetConfigurationSetName sets the ConfigurationSetName field's value.

func (*CreateConfigurationSetEventDestinationInput) SetEventDestination

SetEventDestination sets the EventDestination field's value.

func (*CreateConfigurationSetEventDestinationInput) SetEventDestinationName

SetEventDestinationName sets the EventDestinationName field's value.

func (CreateConfigurationSetEventDestinationInput) String

String returns the string representation

func (*CreateConfigurationSetEventDestinationInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type CreateConfigurationSetEventDestinationOutput

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

An empty object that indicates that the event destination was created successfully.

func (CreateConfigurationSetEventDestinationOutput) GoString

GoString returns the string representation

func (CreateConfigurationSetEventDestinationOutput) String

String returns the string representation

type CreateConfigurationSetInput

type CreateConfigurationSetInput struct {

	// The name that you want to give the configuration set.
	ConfigurationSetName *string `type:"string"`
	// contains filtered or unexported fields
}

A request to create a new configuration set.

func (CreateConfigurationSetInput) GoString

func (s CreateConfigurationSetInput) GoString() string

GoString returns the string representation

func (*CreateConfigurationSetInput) SetConfigurationSetName

func (s *CreateConfigurationSetInput) SetConfigurationSetName(v string) *CreateConfigurationSetInput

SetConfigurationSetName sets the ConfigurationSetName field's value.

func (CreateConfigurationSetInput) String

String returns the string representation

type CreateConfigurationSetOutput

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

An empty object that indicates that the configuration set was successfully created.

func (CreateConfigurationSetOutput) GoString

func (s CreateConfigurationSetOutput) GoString() string

GoString returns the string representation

func (CreateConfigurationSetOutput) String

String returns the string representation

type DeleteConfigurationSetEventDestinationInput

type DeleteConfigurationSetEventDestinationInput struct {

	// ConfigurationSetName is a required field
	ConfigurationSetName *string `location:"uri" locationName:"ConfigurationSetName" type:"string" required:"true"`

	// EventDestinationName is a required field
	EventDestinationName *string `location:"uri" locationName:"EventDestinationName" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteConfigurationSetEventDestinationInput) GoString

GoString returns the string representation

func (*DeleteConfigurationSetEventDestinationInput) SetConfigurationSetName

SetConfigurationSetName sets the ConfigurationSetName field's value.

func (*DeleteConfigurationSetEventDestinationInput) SetEventDestinationName

SetEventDestinationName sets the EventDestinationName field's value.

func (DeleteConfigurationSetEventDestinationInput) String

String returns the string representation

func (*DeleteConfigurationSetEventDestinationInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type DeleteConfigurationSetEventDestinationOutput

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

An empty object that indicates that the event destination was deleted successfully.

func (DeleteConfigurationSetEventDestinationOutput) GoString

GoString returns the string representation

func (DeleteConfigurationSetEventDestinationOutput) String

String returns the string representation

type DeleteConfigurationSetInput

type DeleteConfigurationSetInput struct {

	// ConfigurationSetName is a required field
	ConfigurationSetName *string `location:"uri" locationName:"ConfigurationSetName" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (DeleteConfigurationSetInput) GoString

func (s DeleteConfigurationSetInput) GoString() string

GoString returns the string representation

func (*DeleteConfigurationSetInput) SetConfigurationSetName

func (s *DeleteConfigurationSetInput) SetConfigurationSetName(v string) *DeleteConfigurationSetInput

SetConfigurationSetName sets the ConfigurationSetName field's value.

func (DeleteConfigurationSetInput) String

String returns the string representation

func (*DeleteConfigurationSetInput) Validate

func (s *DeleteConfigurationSetInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

type DeleteConfigurationSetOutput

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

An empty object that indicates that the configuration set was deleted successfully.

func (DeleteConfigurationSetOutput) GoString

func (s DeleteConfigurationSetOutput) GoString() string

GoString returns the string representation

func (DeleteConfigurationSetOutput) String

String returns the string representation

type EventDestination

type EventDestination struct {

	// An object that contains information about an event destination that sends
	// data to Amazon CloudWatch Logs.
	CloudWatchLogsDestination *CloudWatchLogsDestination `type:"structure"`

	// Indicates whether or not the event destination is enabled. If the event destination
	// is enabled, then Amazon Pinpoint sends response data to the specified event
	// destination.
	Enabled *bool `type:"boolean"`

	// An object that contains information about an event destination that sends
	// data to Amazon Kinesis Data Firehose.
	KinesisFirehoseDestination *KinesisFirehoseDestination `type:"structure"`

	// An array of EventDestination objects. Each EventDestination object includes
	// ARNs and other information that define an event destination.
	MatchingEventTypes []*string `type:"list"`

	// A name that identifies the event destination configuration.
	Name *string `type:"string"`

	// An object that contains information about an event destination that sends
	// data to Amazon SNS.
	SnsDestination *SnsDestination `type:"structure"`
	// contains filtered or unexported fields
}

An object that defines an event destination.

func (EventDestination) GoString

func (s EventDestination) GoString() string

GoString returns the string representation

func (*EventDestination) SetCloudWatchLogsDestination

func (s *EventDestination) SetCloudWatchLogsDestination(v *CloudWatchLogsDestination) *EventDestination

SetCloudWatchLogsDestination sets the CloudWatchLogsDestination field's value.

func (*EventDestination) SetEnabled

func (s *EventDestination) SetEnabled(v bool) *EventDestination

SetEnabled sets the Enabled field's value.

func (*EventDestination) SetKinesisFirehoseDestination

func (s *EventDestination) SetKinesisFirehoseDestination(v *KinesisFirehoseDestination) *EventDestination

SetKinesisFirehoseDestination sets the KinesisFirehoseDestination field's value.

func (*EventDestination) SetMatchingEventTypes

func (s *EventDestination) SetMatchingEventTypes(v []*string) *EventDestination

SetMatchingEventTypes sets the MatchingEventTypes field's value.

func (*EventDestination) SetName

func (s *EventDestination) SetName(v string) *EventDestination

SetName sets the Name field's value.

func (*EventDestination) SetSnsDestination added in v1.16.11

func (s *EventDestination) SetSnsDestination(v *SnsDestination) *EventDestination

SetSnsDestination sets the SnsDestination field's value.

func (EventDestination) String

func (s EventDestination) String() string

String returns the string representation

type EventDestinationDefinition

type EventDestinationDefinition struct {

	// An object that contains information about an event destination that sends
	// data to Amazon CloudWatch Logs.
	CloudWatchLogsDestination *CloudWatchLogsDestination `type:"structure"`

	// Indicates whether or not the event destination is enabled. If the event destination
	// is enabled, then Amazon Pinpoint sends response data to the specified event
	// destination.
	Enabled *bool `type:"boolean"`

	// An object that contains information about an event destination that sends
	// data to Amazon Kinesis Data Firehose.
	KinesisFirehoseDestination *KinesisFirehoseDestination `type:"structure"`

	// An array of EventDestination objects. Each EventDestination object includes
	// ARNs and other information that define an event destination.
	MatchingEventTypes []*string `type:"list"`

	// An object that contains information about an event destination that sends
	// data to Amazon SNS.
	SnsDestination *SnsDestination `type:"structure"`
	// contains filtered or unexported fields
}

An object that defines a single event destination.

func (EventDestinationDefinition) GoString

func (s EventDestinationDefinition) GoString() string

GoString returns the string representation

func (*EventDestinationDefinition) SetCloudWatchLogsDestination

SetCloudWatchLogsDestination sets the CloudWatchLogsDestination field's value.

func (*EventDestinationDefinition) SetEnabled

SetEnabled sets the Enabled field's value.

func (*EventDestinationDefinition) SetKinesisFirehoseDestination

SetKinesisFirehoseDestination sets the KinesisFirehoseDestination field's value.

func (*EventDestinationDefinition) SetMatchingEventTypes

func (s *EventDestinationDefinition) SetMatchingEventTypes(v []*string) *EventDestinationDefinition

SetMatchingEventTypes sets the MatchingEventTypes field's value.

func (*EventDestinationDefinition) SetSnsDestination added in v1.16.11

SetSnsDestination sets the SnsDestination field's value.

func (EventDestinationDefinition) String

String returns the string representation

type GetConfigurationSetEventDestinationsInput

type GetConfigurationSetEventDestinationsInput struct {

	// ConfigurationSetName is a required field
	ConfigurationSetName *string `location:"uri" locationName:"ConfigurationSetName" type:"string" required:"true"`
	// contains filtered or unexported fields
}

func (GetConfigurationSetEventDestinationsInput) GoString

GoString returns the string representation

func (*GetConfigurationSetEventDestinationsInput) SetConfigurationSetName

SetConfigurationSetName sets the ConfigurationSetName field's value.

func (GetConfigurationSetEventDestinationsInput) String

String returns the string representation

func (*GetConfigurationSetEventDestinationsInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type GetConfigurationSetEventDestinationsOutput

type GetConfigurationSetEventDestinationsOutput struct {

	// An array of EventDestination objects. Each EventDestination object includes
	// ARNs and other information that define an event destination.
	EventDestinations []*EventDestination `type:"list"`
	// contains filtered or unexported fields
}

An object that contains information about an event destination.

func (GetConfigurationSetEventDestinationsOutput) GoString

GoString returns the string representation

func (*GetConfigurationSetEventDestinationsOutput) SetEventDestinations

SetEventDestinations sets the EventDestinations field's value.

func (GetConfigurationSetEventDestinationsOutput) String

String returns the string representation

type InternalServiceErrorException added in v1.28.0

type InternalServiceErrorException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"Message" type:"string"`
	// contains filtered or unexported fields
}

The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.

func (*InternalServiceErrorException) Code added in v1.28.0

Code returns the exception type name.

func (*InternalServiceErrorException) Error added in v1.28.0

func (InternalServiceErrorException) GoString added in v1.28.0

GoString returns the string representation

func (*InternalServiceErrorException) Message added in v1.28.0

Message returns the exception's message.

func (*InternalServiceErrorException) OrigErr added in v1.28.0

func (s *InternalServiceErrorException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*InternalServiceErrorException) RequestID added in v1.28.0

func (s *InternalServiceErrorException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*InternalServiceErrorException) StatusCode added in v1.28.0

func (s *InternalServiceErrorException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (InternalServiceErrorException) String added in v1.28.0

String returns the string representation

type KinesisFirehoseDestination

type KinesisFirehoseDestination struct {

	// The Amazon Resource Name (ARN) of an IAM role that can write data to an Amazon
	// Kinesis Data Firehose stream.
	DeliveryStreamArn *string `type:"string"`

	// The Amazon Resource Name (ARN) of the Amazon Kinesis Data Firehose destination
	// that you want to use in the event destination.
	IamRoleArn *string `type:"string"`
	// contains filtered or unexported fields
}

An object that contains information about an event destination that sends data to Amazon Kinesis Data Firehose.

func (KinesisFirehoseDestination) GoString

func (s KinesisFirehoseDestination) GoString() string

GoString returns the string representation

func (*KinesisFirehoseDestination) SetDeliveryStreamArn

func (s *KinesisFirehoseDestination) SetDeliveryStreamArn(v string) *KinesisFirehoseDestination

SetDeliveryStreamArn sets the DeliveryStreamArn field's value.

func (*KinesisFirehoseDestination) SetIamRoleArn

SetIamRoleArn sets the IamRoleArn field's value.

func (KinesisFirehoseDestination) String

String returns the string representation

type LimitExceededException added in v1.28.0

type LimitExceededException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"Message" type:"string"`
	// contains filtered or unexported fields
}

There are too many instances of the specified resource type.

func (*LimitExceededException) Code added in v1.28.0

func (s *LimitExceededException) Code() string

Code returns the exception type name.

func (*LimitExceededException) Error added in v1.28.0

func (s *LimitExceededException) Error() string

func (LimitExceededException) GoString added in v1.28.0

func (s LimitExceededException) GoString() string

GoString returns the string representation

func (*LimitExceededException) Message added in v1.28.0

func (s *LimitExceededException) Message() string

Message returns the exception's message.

func (*LimitExceededException) OrigErr added in v1.28.0

func (s *LimitExceededException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*LimitExceededException) RequestID added in v1.28.0

func (s *LimitExceededException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*LimitExceededException) StatusCode added in v1.28.0

func (s *LimitExceededException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (LimitExceededException) String added in v1.28.0

func (s LimitExceededException) String() string

String returns the string representation

type ListConfigurationSetsInput added in v1.16.25

type ListConfigurationSetsInput struct {
	NextToken *string `location:"querystring" locationName:"NextToken" type:"string"`

	PageSize *string `location:"querystring" locationName:"PageSize" type:"string"`
	// contains filtered or unexported fields
}

func (ListConfigurationSetsInput) GoString added in v1.16.25

func (s ListConfigurationSetsInput) GoString() string

GoString returns the string representation

func (*ListConfigurationSetsInput) SetNextToken added in v1.16.25

SetNextToken sets the NextToken field's value.

func (*ListConfigurationSetsInput) SetPageSize added in v1.16.25

SetPageSize sets the PageSize field's value.

func (ListConfigurationSetsInput) String added in v1.16.25

String returns the string representation

type ListConfigurationSetsOutput added in v1.16.25

type ListConfigurationSetsOutput struct {

	// An object that contains a list of configuration sets for your account in
	// the current region.
	ConfigurationSets []*string `type:"list"`

	// A token returned from a previous call to ListConfigurationSets to indicate
	// the position in the list of configuration sets.
	NextToken *string `type:"string"`
	// contains filtered or unexported fields
}

An object that contains information about the configuration sets for your account in the current region.

func (ListConfigurationSetsOutput) GoString added in v1.16.25

func (s ListConfigurationSetsOutput) GoString() string

GoString returns the string representation

func (*ListConfigurationSetsOutput) SetConfigurationSets added in v1.16.25

func (s *ListConfigurationSetsOutput) SetConfigurationSets(v []*string) *ListConfigurationSetsOutput

SetConfigurationSets sets the ConfigurationSets field's value.

func (*ListConfigurationSetsOutput) SetNextToken added in v1.16.25

SetNextToken sets the NextToken field's value.

func (ListConfigurationSetsOutput) String added in v1.16.25

String returns the string representation

type NotFoundException added in v1.28.0

type NotFoundException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"Message" type:"string"`
	// contains filtered or unexported fields
}

The resource you attempted to access doesn't exist.

func (*NotFoundException) Code added in v1.28.0

func (s *NotFoundException) Code() string

Code returns the exception type name.

func (*NotFoundException) Error added in v1.28.0

func (s *NotFoundException) Error() string

func (NotFoundException) GoString added in v1.28.0

func (s NotFoundException) GoString() string

GoString returns the string representation

func (*NotFoundException) Message added in v1.28.0

func (s *NotFoundException) Message() string

Message returns the exception's message.

func (*NotFoundException) OrigErr added in v1.28.0

func (s *NotFoundException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*NotFoundException) RequestID added in v1.28.0

func (s *NotFoundException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*NotFoundException) StatusCode added in v1.28.0

func (s *NotFoundException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (NotFoundException) String added in v1.28.0

func (s NotFoundException) String() string

String returns the string representation

type PinpointSMSVoice

type PinpointSMSVoice struct {
	*client.Client
}

PinpointSMSVoice provides the API operation methods for making requests to Amazon Pinpoint SMS and Voice Service. See this package's package overview docs for details on the service.

PinpointSMSVoice methods are safe to use concurrently. It is not safe to modify mutate any of the struct's properties though.

func New

New creates a new instance of the PinpointSMSVoice client with a session. If additional configuration is needed for the client instance use the optional aws.Config parameter to add your extra config.

Example:

mySession := session.Must(session.NewSession())

// Create a PinpointSMSVoice client from just a session.
svc := pinpointsmsvoice.New(mySession)

// Create a PinpointSMSVoice client with additional configuration
svc := pinpointsmsvoice.New(mySession, aws.NewConfig().WithRegion("us-west-2"))

func (*PinpointSMSVoice) CreateConfigurationSet

CreateConfigurationSet API operation for Amazon Pinpoint SMS and Voice Service.

Create a new configuration set. After you create the configuration set, you can add one or more event destinations to it.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Pinpoint SMS and Voice Service's API operation CreateConfigurationSet for usage and error information.

Returned Error Types:

  • TooManyRequestsException You've issued too many requests to the resource. Wait a few minutes, and then try again.

  • BadRequestException The input you provided is invalid.

  • LimitExceededException There are too many instances of the specified resource type.

  • InternalServiceErrorException The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.

  • AlreadyExistsException The resource specified in your request already exists.

See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CreateConfigurationSet

func (*PinpointSMSVoice) CreateConfigurationSetEventDestination

CreateConfigurationSetEventDestination API operation for Amazon Pinpoint SMS and Voice Service.

Create a new event destination in a configuration set.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Pinpoint SMS and Voice Service's API operation CreateConfigurationSetEventDestination for usage and error information.

Returned Error Types:

  • BadRequestException The input you provided is invalid.

  • LimitExceededException There are too many instances of the specified resource type.

  • InternalServiceErrorException The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.

  • NotFoundException The resource you attempted to access doesn't exist.

  • TooManyRequestsException You've issued too many requests to the resource. Wait a few minutes, and then try again.

  • AlreadyExistsException The resource specified in your request already exists.

See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CreateConfigurationSetEventDestination

func (*PinpointSMSVoice) CreateConfigurationSetEventDestinationRequest

func (c *PinpointSMSVoice) CreateConfigurationSetEventDestinationRequest(input *CreateConfigurationSetEventDestinationInput) (req *request.Request, output *CreateConfigurationSetEventDestinationOutput)

CreateConfigurationSetEventDestinationRequest generates a "aws/request.Request" representing the client's request for the CreateConfigurationSetEventDestination operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateConfigurationSetEventDestination for more information on using the CreateConfigurationSetEventDestination API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateConfigurationSetEventDestinationRequest method.
req, resp := client.CreateConfigurationSetEventDestinationRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CreateConfigurationSetEventDestination

func (*PinpointSMSVoice) CreateConfigurationSetEventDestinationWithContext

func (c *PinpointSMSVoice) CreateConfigurationSetEventDestinationWithContext(ctx aws.Context, input *CreateConfigurationSetEventDestinationInput, opts ...request.Option) (*CreateConfigurationSetEventDestinationOutput, error)

CreateConfigurationSetEventDestinationWithContext is the same as CreateConfigurationSetEventDestination with the addition of the ability to pass a context and additional request options.

See CreateConfigurationSetEventDestination for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*PinpointSMSVoice) CreateConfigurationSetRequest

func (c *PinpointSMSVoice) CreateConfigurationSetRequest(input *CreateConfigurationSetInput) (req *request.Request, output *CreateConfigurationSetOutput)

CreateConfigurationSetRequest generates a "aws/request.Request" representing the client's request for the CreateConfigurationSet operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See CreateConfigurationSet for more information on using the CreateConfigurationSet API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the CreateConfigurationSetRequest method.
req, resp := client.CreateConfigurationSetRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/CreateConfigurationSet

func (*PinpointSMSVoice) CreateConfigurationSetWithContext

func (c *PinpointSMSVoice) CreateConfigurationSetWithContext(ctx aws.Context, input *CreateConfigurationSetInput, opts ...request.Option) (*CreateConfigurationSetOutput, error)

CreateConfigurationSetWithContext is the same as CreateConfigurationSet with the addition of the ability to pass a context and additional request options.

See CreateConfigurationSet for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*PinpointSMSVoice) DeleteConfigurationSet

DeleteConfigurationSet API operation for Amazon Pinpoint SMS and Voice Service.

Deletes an existing configuration set.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Pinpoint SMS and Voice Service's API operation DeleteConfigurationSet for usage and error information.

Returned Error Types:

  • NotFoundException The resource you attempted to access doesn't exist.

  • TooManyRequestsException You've issued too many requests to the resource. Wait a few minutes, and then try again.

  • BadRequestException The input you provided is invalid.

  • InternalServiceErrorException The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.

See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/DeleteConfigurationSet

func (*PinpointSMSVoice) DeleteConfigurationSetEventDestination

DeleteConfigurationSetEventDestination API operation for Amazon Pinpoint SMS and Voice Service.

Deletes an event destination in a configuration set.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Pinpoint SMS and Voice Service's API operation DeleteConfigurationSetEventDestination for usage and error information.

Returned Error Types:

  • NotFoundException The resource you attempted to access doesn't exist.

  • TooManyRequestsException You've issued too many requests to the resource. Wait a few minutes, and then try again.

  • BadRequestException The input you provided is invalid.

  • InternalServiceErrorException The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.

See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/DeleteConfigurationSetEventDestination

func (*PinpointSMSVoice) DeleteConfigurationSetEventDestinationRequest

func (c *PinpointSMSVoice) DeleteConfigurationSetEventDestinationRequest(input *DeleteConfigurationSetEventDestinationInput) (req *request.Request, output *DeleteConfigurationSetEventDestinationOutput)

DeleteConfigurationSetEventDestinationRequest generates a "aws/request.Request" representing the client's request for the DeleteConfigurationSetEventDestination operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteConfigurationSetEventDestination for more information on using the DeleteConfigurationSetEventDestination API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteConfigurationSetEventDestinationRequest method.
req, resp := client.DeleteConfigurationSetEventDestinationRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/DeleteConfigurationSetEventDestination

func (*PinpointSMSVoice) DeleteConfigurationSetEventDestinationWithContext

func (c *PinpointSMSVoice) DeleteConfigurationSetEventDestinationWithContext(ctx aws.Context, input *DeleteConfigurationSetEventDestinationInput, opts ...request.Option) (*DeleteConfigurationSetEventDestinationOutput, error)

DeleteConfigurationSetEventDestinationWithContext is the same as DeleteConfigurationSetEventDestination with the addition of the ability to pass a context and additional request options.

See DeleteConfigurationSetEventDestination for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*PinpointSMSVoice) DeleteConfigurationSetRequest

func (c *PinpointSMSVoice) DeleteConfigurationSetRequest(input *DeleteConfigurationSetInput) (req *request.Request, output *DeleteConfigurationSetOutput)

DeleteConfigurationSetRequest generates a "aws/request.Request" representing the client's request for the DeleteConfigurationSet operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See DeleteConfigurationSet for more information on using the DeleteConfigurationSet API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the DeleteConfigurationSetRequest method.
req, resp := client.DeleteConfigurationSetRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/DeleteConfigurationSet

func (*PinpointSMSVoice) DeleteConfigurationSetWithContext

func (c *PinpointSMSVoice) DeleteConfigurationSetWithContext(ctx aws.Context, input *DeleteConfigurationSetInput, opts ...request.Option) (*DeleteConfigurationSetOutput, error)

DeleteConfigurationSetWithContext is the same as DeleteConfigurationSet with the addition of the ability to pass a context and additional request options.

See DeleteConfigurationSet for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*PinpointSMSVoice) GetConfigurationSetEventDestinations

GetConfigurationSetEventDestinations API operation for Amazon Pinpoint SMS and Voice Service.

Obtain information about an event destination, including the types of events it reports, the Amazon Resource Name (ARN) of the destination, and the name of the event destination.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Pinpoint SMS and Voice Service's API operation GetConfigurationSetEventDestinations for usage and error information.

Returned Error Types:

  • NotFoundException The resource you attempted to access doesn't exist.

  • TooManyRequestsException You've issued too many requests to the resource. Wait a few minutes, and then try again.

  • BadRequestException The input you provided is invalid.

  • InternalServiceErrorException The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.

See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/GetConfigurationSetEventDestinations

func (*PinpointSMSVoice) GetConfigurationSetEventDestinationsRequest

func (c *PinpointSMSVoice) GetConfigurationSetEventDestinationsRequest(input *GetConfigurationSetEventDestinationsInput) (req *request.Request, output *GetConfigurationSetEventDestinationsOutput)

GetConfigurationSetEventDestinationsRequest generates a "aws/request.Request" representing the client's request for the GetConfigurationSetEventDestinations operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See GetConfigurationSetEventDestinations for more information on using the GetConfigurationSetEventDestinations API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the GetConfigurationSetEventDestinationsRequest method.
req, resp := client.GetConfigurationSetEventDestinationsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/GetConfigurationSetEventDestinations

func (*PinpointSMSVoice) GetConfigurationSetEventDestinationsWithContext

func (c *PinpointSMSVoice) GetConfigurationSetEventDestinationsWithContext(ctx aws.Context, input *GetConfigurationSetEventDestinationsInput, opts ...request.Option) (*GetConfigurationSetEventDestinationsOutput, error)

GetConfigurationSetEventDestinationsWithContext is the same as GetConfigurationSetEventDestinations with the addition of the ability to pass a context and additional request options.

See GetConfigurationSetEventDestinations for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*PinpointSMSVoice) ListConfigurationSets added in v1.16.25

ListConfigurationSets API operation for Amazon Pinpoint SMS and Voice Service.

List all of the configuration sets associated with your Amazon Pinpoint account in the current region.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Pinpoint SMS and Voice Service's API operation ListConfigurationSets for usage and error information.

Returned Error Types:

  • TooManyRequestsException You've issued too many requests to the resource. Wait a few minutes, and then try again.

  • BadRequestException The input you provided is invalid.

  • InternalServiceErrorException The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.

See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/ListConfigurationSets

func (*PinpointSMSVoice) ListConfigurationSetsRequest added in v1.16.25

func (c *PinpointSMSVoice) ListConfigurationSetsRequest(input *ListConfigurationSetsInput) (req *request.Request, output *ListConfigurationSetsOutput)

ListConfigurationSetsRequest generates a "aws/request.Request" representing the client's request for the ListConfigurationSets operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See ListConfigurationSets for more information on using the ListConfigurationSets API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the ListConfigurationSetsRequest method.
req, resp := client.ListConfigurationSetsRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/ListConfigurationSets

func (*PinpointSMSVoice) ListConfigurationSetsWithContext added in v1.16.25

func (c *PinpointSMSVoice) ListConfigurationSetsWithContext(ctx aws.Context, input *ListConfigurationSetsInput, opts ...request.Option) (*ListConfigurationSetsOutput, error)

ListConfigurationSetsWithContext is the same as ListConfigurationSets with the addition of the ability to pass a context and additional request options.

See ListConfigurationSets for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*PinpointSMSVoice) SendVoiceMessage

func (c *PinpointSMSVoice) SendVoiceMessage(input *SendVoiceMessageInput) (*SendVoiceMessageOutput, error)

SendVoiceMessage API operation for Amazon Pinpoint SMS and Voice Service.

Create a new voice message and send it to a recipient's phone number.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Pinpoint SMS and Voice Service's API operation SendVoiceMessage for usage and error information.

Returned Error Types:

  • TooManyRequestsException You've issued too many requests to the resource. Wait a few minutes, and then try again.

  • BadRequestException The input you provided is invalid.

  • InternalServiceErrorException The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.

See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/SendVoiceMessage

func (*PinpointSMSVoice) SendVoiceMessageRequest

func (c *PinpointSMSVoice) SendVoiceMessageRequest(input *SendVoiceMessageInput) (req *request.Request, output *SendVoiceMessageOutput)

SendVoiceMessageRequest generates a "aws/request.Request" representing the client's request for the SendVoiceMessage operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See SendVoiceMessage for more information on using the SendVoiceMessage API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the SendVoiceMessageRequest method.
req, resp := client.SendVoiceMessageRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/SendVoiceMessage

func (*PinpointSMSVoice) SendVoiceMessageWithContext

func (c *PinpointSMSVoice) SendVoiceMessageWithContext(ctx aws.Context, input *SendVoiceMessageInput, opts ...request.Option) (*SendVoiceMessageOutput, error)

SendVoiceMessageWithContext is the same as SendVoiceMessage with the addition of the ability to pass a context and additional request options.

See SendVoiceMessage for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

func (*PinpointSMSVoice) UpdateConfigurationSetEventDestination

UpdateConfigurationSetEventDestination API operation for Amazon Pinpoint SMS and Voice Service.

Update an event destination in a configuration set. An event destination is a location that you publish information about your voice calls to. For example, you can log an event to an Amazon CloudWatch destination when a call fails.

Returns awserr.Error for service API and SDK errors. Use runtime type assertions with awserr.Error's Code and Message methods to get detailed information about the error.

See the AWS API reference guide for Amazon Pinpoint SMS and Voice Service's API operation UpdateConfigurationSetEventDestination for usage and error information.

Returned Error Types:

  • NotFoundException The resource you attempted to access doesn't exist.

  • TooManyRequestsException You've issued too many requests to the resource. Wait a few minutes, and then try again.

  • BadRequestException The input you provided is invalid.

  • InternalServiceErrorException The API encountered an unexpected error and couldn't complete the request. You might be able to successfully issue the request again in the future.

See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/UpdateConfigurationSetEventDestination

func (*PinpointSMSVoice) UpdateConfigurationSetEventDestinationRequest

func (c *PinpointSMSVoice) UpdateConfigurationSetEventDestinationRequest(input *UpdateConfigurationSetEventDestinationInput) (req *request.Request, output *UpdateConfigurationSetEventDestinationOutput)

UpdateConfigurationSetEventDestinationRequest generates a "aws/request.Request" representing the client's request for the UpdateConfigurationSetEventDestination operation. The "output" return value will be populated with the request's response once the request completes successfully.

Use "Send" method on the returned Request to send the API call to the service. the "output" return value is not valid until after Send returns without error.

See UpdateConfigurationSetEventDestination for more information on using the UpdateConfigurationSetEventDestination API call, and error handling.

This method is useful when you want to inject custom logic or configuration into the SDK's request lifecycle. Such as custom headers, or retry logic.

// Example sending a request using the UpdateConfigurationSetEventDestinationRequest method.
req, resp := client.UpdateConfigurationSetEventDestinationRequest(params)

err := req.Send()
if err == nil { // resp is now filled
    fmt.Println(resp)
}

See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-sms-voice-2018-09-05/UpdateConfigurationSetEventDestination

func (*PinpointSMSVoice) UpdateConfigurationSetEventDestinationWithContext

func (c *PinpointSMSVoice) UpdateConfigurationSetEventDestinationWithContext(ctx aws.Context, input *UpdateConfigurationSetEventDestinationInput, opts ...request.Option) (*UpdateConfigurationSetEventDestinationOutput, error)

UpdateConfigurationSetEventDestinationWithContext is the same as UpdateConfigurationSetEventDestination with the addition of the ability to pass a context and additional request options.

See UpdateConfigurationSetEventDestination for details on how to use this API operation.

The context must be non-nil and will be used for request cancellation. If the context is nil a panic will occur. In the future the SDK may create sub-contexts for http.Requests. See https://golang.org/pkg/context/ for more information on using Contexts.

type PlainTextMessageType

type PlainTextMessageType struct {

	// The language to use when delivering the message. For a complete list of supported
	// languages, see the Amazon Polly Developer Guide.
	LanguageCode *string `type:"string"`

	// The plain (not SSML-formatted) text to deliver to the recipient.
	Text *string `type:"string"`

	// The name of the voice that you want to use to deliver the message. For a
	// complete list of supported voices, see the Amazon Polly Developer Guide.
	VoiceId *string `type:"string"`
	// contains filtered or unexported fields
}

An object that defines a message that contains unformatted text.

func (PlainTextMessageType) GoString

func (s PlainTextMessageType) GoString() string

GoString returns the string representation

func (*PlainTextMessageType) SetLanguageCode

func (s *PlainTextMessageType) SetLanguageCode(v string) *PlainTextMessageType

SetLanguageCode sets the LanguageCode field's value.

func (*PlainTextMessageType) SetText

SetText sets the Text field's value.

func (*PlainTextMessageType) SetVoiceId

SetVoiceId sets the VoiceId field's value.

func (PlainTextMessageType) String

func (s PlainTextMessageType) String() string

String returns the string representation

type SSMLMessageType

type SSMLMessageType struct {

	// The language to use when delivering the message. For a complete list of supported
	// languages, see the Amazon Polly Developer Guide.
	LanguageCode *string `type:"string"`

	// The SSML-formatted text to deliver to the recipient.
	Text *string `type:"string"`

	// The name of the voice that you want to use to deliver the message. For a
	// complete list of supported voices, see the Amazon Polly Developer Guide.
	VoiceId *string `type:"string"`
	// contains filtered or unexported fields
}

An object that defines a message that contains SSML-formatted text.

func (SSMLMessageType) GoString

func (s SSMLMessageType) GoString() string

GoString returns the string representation

func (*SSMLMessageType) SetLanguageCode

func (s *SSMLMessageType) SetLanguageCode(v string) *SSMLMessageType

SetLanguageCode sets the LanguageCode field's value.

func (*SSMLMessageType) SetText

func (s *SSMLMessageType) SetText(v string) *SSMLMessageType

SetText sets the Text field's value.

func (*SSMLMessageType) SetVoiceId

func (s *SSMLMessageType) SetVoiceId(v string) *SSMLMessageType

SetVoiceId sets the VoiceId field's value.

func (SSMLMessageType) String

func (s SSMLMessageType) String() string

String returns the string representation

type SendVoiceMessageInput

type SendVoiceMessageInput struct {

	// The phone number that appears on recipients' devices when they receive the
	// message.
	CallerId *string `type:"string"`

	// The name of the configuration set that you want to use to send the message.
	ConfigurationSetName *string `type:"string"`

	// An object that contains a voice message and information about the recipient
	// that you want to send it to.
	Content *VoiceMessageContent `type:"structure"`

	// The phone number that you want to send the voice message to.
	DestinationPhoneNumber *string `type:"string"`

	// The phone number that Amazon Pinpoint should use to send the voice message.
	// This isn't necessarily the phone number that appears on recipients' devices
	// when they receive the message, because you can specify a CallerId parameter
	// in the request.
	OriginationPhoneNumber *string `type:"string"`
	// contains filtered or unexported fields
}

A request to create and send a new voice message.

func (SendVoiceMessageInput) GoString

func (s SendVoiceMessageInput) GoString() string

GoString returns the string representation

func (*SendVoiceMessageInput) SetCallerId

SetCallerId sets the CallerId field's value.

func (*SendVoiceMessageInput) SetConfigurationSetName

func (s *SendVoiceMessageInput) SetConfigurationSetName(v string) *SendVoiceMessageInput

SetConfigurationSetName sets the ConfigurationSetName field's value.

func (*SendVoiceMessageInput) SetContent

SetContent sets the Content field's value.

func (*SendVoiceMessageInput) SetDestinationPhoneNumber

func (s *SendVoiceMessageInput) SetDestinationPhoneNumber(v string) *SendVoiceMessageInput

SetDestinationPhoneNumber sets the DestinationPhoneNumber field's value.

func (*SendVoiceMessageInput) SetOriginationPhoneNumber

func (s *SendVoiceMessageInput) SetOriginationPhoneNumber(v string) *SendVoiceMessageInput

SetOriginationPhoneNumber sets the OriginationPhoneNumber field's value.

func (SendVoiceMessageInput) String

func (s SendVoiceMessageInput) String() string

String returns the string representation

type SendVoiceMessageOutput

type SendVoiceMessageOutput struct {

	// A unique identifier for the voice message.
	MessageId *string `type:"string"`
	// contains filtered or unexported fields
}

An object that that contains the Message ID of a Voice message that was sent successfully.

func (SendVoiceMessageOutput) GoString

func (s SendVoiceMessageOutput) GoString() string

GoString returns the string representation

func (*SendVoiceMessageOutput) SetMessageId

SetMessageId sets the MessageId field's value.

func (SendVoiceMessageOutput) String

func (s SendVoiceMessageOutput) String() string

String returns the string representation

type SnsDestination added in v1.16.11

type SnsDestination struct {

	// The Amazon Resource Name (ARN) of the Amazon SNS topic that you want to publish
	// events to.
	TopicArn *string `type:"string"`
	// contains filtered or unexported fields
}

An object that contains information about an event destination that sends data to Amazon SNS.

func (SnsDestination) GoString added in v1.16.11

func (s SnsDestination) GoString() string

GoString returns the string representation

func (*SnsDestination) SetTopicArn added in v1.16.11

func (s *SnsDestination) SetTopicArn(v string) *SnsDestination

SetTopicArn sets the TopicArn field's value.

func (SnsDestination) String added in v1.16.11

func (s SnsDestination) String() string

String returns the string representation

type TooManyRequestsException added in v1.28.0

type TooManyRequestsException struct {
	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`

	Message_ *string `locationName:"Message" type:"string"`
	// contains filtered or unexported fields
}

You've issued too many requests to the resource. Wait a few minutes, and then try again.

func (*TooManyRequestsException) Code added in v1.28.0

func (s *TooManyRequestsException) Code() string

Code returns the exception type name.

func (*TooManyRequestsException) Error added in v1.28.0

func (s *TooManyRequestsException) Error() string

func (TooManyRequestsException) GoString added in v1.28.0

func (s TooManyRequestsException) GoString() string

GoString returns the string representation

func (*TooManyRequestsException) Message added in v1.28.0

func (s *TooManyRequestsException) Message() string

Message returns the exception's message.

func (*TooManyRequestsException) OrigErr added in v1.28.0

func (s *TooManyRequestsException) OrigErr() error

OrigErr always returns nil, satisfies awserr.Error interface.

func (*TooManyRequestsException) RequestID added in v1.28.0

func (s *TooManyRequestsException) RequestID() string

RequestID returns the service's response RequestID for request.

func (*TooManyRequestsException) StatusCode added in v1.28.0

func (s *TooManyRequestsException) StatusCode() int

Status code returns the HTTP status code for the request's response error.

func (TooManyRequestsException) String added in v1.28.0

func (s TooManyRequestsException) String() string

String returns the string representation

type UpdateConfigurationSetEventDestinationInput

type UpdateConfigurationSetEventDestinationInput struct {

	// ConfigurationSetName is a required field
	ConfigurationSetName *string `location:"uri" locationName:"ConfigurationSetName" type:"string" required:"true"`

	// An object that defines a single event destination.
	EventDestination *EventDestinationDefinition `type:"structure"`

	// EventDestinationName is a required field
	EventDestinationName *string `location:"uri" locationName:"EventDestinationName" type:"string" required:"true"`
	// contains filtered or unexported fields
}

An object that defines a request to update an existing event destination.

func (UpdateConfigurationSetEventDestinationInput) GoString

GoString returns the string representation

func (*UpdateConfigurationSetEventDestinationInput) SetConfigurationSetName

SetConfigurationSetName sets the ConfigurationSetName field's value.

func (*UpdateConfigurationSetEventDestinationInput) SetEventDestination

SetEventDestination sets the EventDestination field's value.

func (*UpdateConfigurationSetEventDestinationInput) SetEventDestinationName

SetEventDestinationName sets the EventDestinationName field's value.

func (UpdateConfigurationSetEventDestinationInput) String

String returns the string representation

func (*UpdateConfigurationSetEventDestinationInput) Validate

Validate inspects the fields of the type to determine if they are valid.

type UpdateConfigurationSetEventDestinationOutput

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

An empty object that indicates that the event destination was updated successfully.

func (UpdateConfigurationSetEventDestinationOutput) GoString

GoString returns the string representation

func (UpdateConfigurationSetEventDestinationOutput) String

String returns the string representation

type VoiceMessageContent

type VoiceMessageContent struct {

	// An object that defines a message that contains text formatted using Amazon
	// Pinpoint Voice Instructions markup.
	CallInstructionsMessage *CallInstructionsMessageType `type:"structure"`

	// An object that defines a message that contains unformatted text.
	PlainTextMessage *PlainTextMessageType `type:"structure"`

	// An object that defines a message that contains SSML-formatted text.
	SSMLMessage *SSMLMessageType `type:"structure"`
	// contains filtered or unexported fields
}

An object that contains a voice message and information about the recipient that you want to send it to.

func (VoiceMessageContent) GoString

func (s VoiceMessageContent) GoString() string

GoString returns the string representation

func (*VoiceMessageContent) SetCallInstructionsMessage

func (s *VoiceMessageContent) SetCallInstructionsMessage(v *CallInstructionsMessageType) *VoiceMessageContent

SetCallInstructionsMessage sets the CallInstructionsMessage field's value.

func (*VoiceMessageContent) SetPlainTextMessage

func (s *VoiceMessageContent) SetPlainTextMessage(v *PlainTextMessageType) *VoiceMessageContent

SetPlainTextMessage sets the PlainTextMessage field's value.

func (*VoiceMessageContent) SetSSMLMessage

SetSSMLMessage sets the SSMLMessage field's value.

func (VoiceMessageContent) String

func (s VoiceMessageContent) String() string

String returns the string representation

Directories

Path Synopsis
Package pinpointsmsvoiceiface provides an interface to enable mocking the Amazon Pinpoint SMS and Voice Service service client for testing your code.
Package pinpointsmsvoiceiface provides an interface to enable mocking the Amazon Pinpoint SMS and Voice Service service client for testing your code.

Jump to

Keyboard shortcuts

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