ssm

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2020 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrCode

func ErrCode(msg string, err error) error

Types

type SSM

type SSM struct {
	Service         ssmiface.SSMAPI
	DefaultKmsKeyId string
}

SSM is a wrapper around the aws ssm service with some default config info

func NewSession

func NewSession(account common.Account) SSM

NewSession creates a new cloudfront session

func (*SSM) CreateParameter

func (s *SSM) CreateParameter(ctx context.Context, input *ssm.PutParameterInput) error

CreateParameter creates a new parameter

func (*SSM) DeleteParameter

func (s *SSM) DeleteParameter(ctx context.Context, name string) error

DeleteParameter deletes a parameter

func (*SSM) GetParameter

func (s *SSM) GetParameter(ctx context.Context, prefix, name string) (*ssm.Parameter, error)

GetParameter gets the details of a parameter

func (*SSM) GetParameterMetadata added in v0.7.3

func (s *SSM) GetParameterMetadata(ctx context.Context, prefix, name string) (*ssm.ParameterMetadata, error)

GetParameterMetadata gets a parameters metadata

func (*SSM) ListParameterTags

func (s *SSM) ListParameterTags(ctx context.Context, prefix, name string) ([]*ssm.Tag, error)

ListParameterTags gets a list of tags for the parameter

func (*SSM) ListParametersByPath

func (s *SSM) ListParametersByPath(ctx context.Context, path string) ([]string, error)

ListParametersByPath gets all of the parameters in a path recursively

func (*SSM) UpdateParameter

func (s *SSM) UpdateParameter(ctx context.Context, input *ssm.PutParameterInput) error

UpdateParameter creates a new parameter

func (*SSM) UpdateParameterTags

func (s *SSM) UpdateParameterTags(ctx context.Context, id string, tags []*ssm.Tag) error

UpdateParameterTags updates the tags for the parameter

Jump to

Keyboard shortcuts

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