sns

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(p client.ConfigProvider, opts ...*aws.Config) api.Endpoint

New implements api.ServiceFunc

Types

type API

type API interface {
	ListTopicsPagesWithContext(context.Context, *sns.ListTopicsInput, func(*sns.ListTopicsOutput, bool) bool, ...request.Option) error
	GetTopicAttributesWithContext(context.Context, *sns.GetTopicAttributesInput, ...request.Option) (*sns.GetTopicAttributesOutput, error)
	ListSubscriptionsPagesWithContext(context.Context, *sns.ListSubscriptionsInput, func(*sns.ListSubscriptionsOutput, bool) bool, ...request.Option) error
	GetSubscriptionAttributesWithContext(context.Context, *sns.GetSubscriptionAttributesInput, ...request.Option) (*sns.GetSubscriptionAttributesOutput, error)
}

API documents the subset of AWS API we actually call

type GetSubscriptionAttributes

type GetSubscriptionAttributes struct {
	API
}

func (*GetSubscriptionAttributes) New

func (fn *GetSubscriptionAttributes) New(name string, config interface{}) ([]api.Request, error)

New implements api.RequestBuilder

type GetSubscriptionAttributesOutput

type GetSubscriptionAttributesOutput struct {
	*sns.GetSubscriptionAttributesOutput
	// contains filtered or unexported fields
}

func (*GetSubscriptionAttributesOutput) Records

func (o *GetSubscriptionAttributesOutput) Records() (records []*api.Record)

type GetTopicAttributes

type GetTopicAttributes struct {
	API
}

func (*GetTopicAttributes) New

func (fn *GetTopicAttributes) New(name string, config interface{}) ([]api.Request, error)

New implements api.RequestBuilder

type GetTopicAttributesOutput

type GetTopicAttributesOutput struct {
	*sns.GetTopicAttributesOutput
	// contains filtered or unexported fields
}

func (*GetTopicAttributesOutput) Records

func (o *GetTopicAttributesOutput) Records() (records []*api.Record)

Jump to

Keyboard shortcuts

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