client

package
v0.0.0-...-93ef53b Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSMClient

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

SSMClient provides an API client for interacting with AWS Systems Manager Parameter Store.

func NewSSM

func NewSSM(cfg *aws.Config, tier string) *SSMClient

NewSSM creates an instance of the SSMClient from the given AWS SDK config.

func (*SSMClient) Delete

func (c *SSMClient) Delete(ctx context.Context, key string) error

Delete removes the value for the given key from Parameter Store.

func (*SSMClient) Get

func (c *SSMClient) Get(ctx context.Context, key string) (string, error)

Get retrieves the value for the given key from Parameter Store. Get assumes that the value is encrypted as a SecureString and returns the decrypted value.

func (*SSMClient) Set

func (c *SSMClient) Set(ctx context.Context, key, val string) error

Set writes the value for the given key to Parameter Store. It writes the value as an encrypted SecureString. Any existing data for the given key is overwritten.

Jump to

Keyboard shortcuts

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