ssm

package
v0.0.0-...-381feec Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Get     action = "get"
	GetMany action = "getMany"
	//Put     action = "put"
	Save   action = "save"
	Delete action = "delete"
)

Constants to represent actions to take against SSM

Variables

This section is empty.

Functions

This section is empty.

Types

type AwsParam

type AwsParam struct {
	Arn              string
	Name             string
	Type             ParamType
	Value            string
	Version          int
	LastModifiedDate float32
}

AwsParam represents an individual SSM parameter

type ParamType

type ParamType string

ParamType sets the base type for SSM parameter types

const (
	String       ParamType = "string"
	SecureString ParamType = "SecureString"
	StringList   ParamType = "Stringlist"
)

Defines the SSM types

type Service

type Service struct {
	Svc    *awsssm.SSM
	Region string
	Cfg    aws.Config
	// contains filtered or unexported fields
}

Service the struct representing AWS service/Session

func New

func New() *Service

New Create a new SSM service

func (*Service) Copy

Copy method copies the given parameter to a new location

func (*Service) Delete

func (s *Service) Delete(p common.DeleteInput) string

Delete a single param for a given path

func (*Service) GetMany

func (s *Service) GetMany(p common.ListParamInput) []common.EspParam

GetMany recursively gets parameters from a given path

func (*Service) GetOne

func (s *Service) GetOne(p common.GetOneInput) common.EspParam

GetOne gets a single param for a given path

func (*Service) Init

func (s *Service) Init()

Init create the actual session to talk to the AWS API

func (*Service) Save

Save a single param for a given path

Jump to

Keyboard shortcuts

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