ksms

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName = "ksms"      // Name of service.
	EndpointsID = ServiceName // ID to lookup a service endpoint with.
	ServiceID   = "ksms"      // ServiceID is a unique identifer of a specific service.
)

Service information constants

Variables

This section is empty.

Functions

This section is empty.

Types

type Ksms

type Ksms struct {
	*client.Client
}

Ksms provides the API operation methods for making requests to ksms. See this package's package overview docs for details on the service.

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

func ExtraNew

func ExtraNew(info *utils.UrlInfo, p client.ConfigProvider, cfgs ...*aws.Config) *Ksms

extraNew create int can support ssl or region locate set

func New

func New(p client.ConfigProvider, cfgs ...*aws.Config) *Ksms

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

Example:

// Create a Ksms client from just a session.
svc := ksms.New(mySession)

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

func SdkNew

func SdkNew(p client.ConfigProvider, cfgs *ksc.Config, info ...*utils.UrlInfo) *Ksms

SdkNew create int can support ssl or region locate set

func (*Ksms) BatchSendSms

func (c *Ksms) BatchSendSms(input *map[string]interface{}) (*map[string]interface{}, error)

BatchSendSms API operation for ksms.

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 KSC API reference guide for ksms's API operation BatchSendSms for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/ksms-2019-05-01/BatchSendSms

func (*Ksms) BatchSendSmsRequest

func (c *Ksms) BatchSendSmsRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

BatchSendSmsRequest generates a "ksc/request.Request" representing the client's request for the BatchSendSms 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 BatchSendSms for more information on using the BatchSendSms 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 BatchSendSmsRequest method.
req, resp := client.BatchSendSmsRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/ksms-2019-05-01/BatchSendSms

func (*Ksms) BatchSendSmsWithContext

func (c *Ksms) BatchSendSmsWithContext(ctx aws.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

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

See BatchSendSms 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 (*Ksms) SendSms

func (c *Ksms) SendSms(input *map[string]interface{}) (*map[string]interface{}, error)

SendSms API operation for ksms.

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 KSC API reference guide for ksms's API operation SendSms for usage and error information. See also, https://docs.aws.amazon.com/goto/WebAPI/ksms-2019-05-01/SendSms

func (*Ksms) SendSmsRequest

func (c *Ksms) SendSmsRequest(input *map[string]interface{}) (req *request.Request, output *map[string]interface{})

SendSmsRequest generates a "ksc/request.Request" representing the client's request for the SendSms 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 SendSms for more information on using the SendSms 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 SendSmsRequest method.
req, resp := client.SendSmsRequest(params)

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

See also, https://docs.aws.amazon.com/goto/WebAPI/ksms-2019-05-01/SendSms

func (*Ksms) SendSmsWithContext

func (c *Ksms) SendSmsWithContext(ctx aws.Context, input *map[string]interface{}, opts ...request.Option) (*map[string]interface{}, error)

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

See SendSms 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.

Directories

Path Synopsis
Package ksmsiface provides an interface to enable mocking the ksms service client for testing your code.
Package ksmsiface provides an interface to enable mocking the ksms service client for testing your code.

Jump to

Keyboard shortcuts

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