ssm

package
v1.33.3 Latest Latest
Warning

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

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

Documentation

Overview

Package ssm provides a client to make API requests to Amazon Systems Manager.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrParameterAlreadyExists

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

ErrParameterAlreadyExists occurs when the parameter with name already existed.

func (*ErrParameterAlreadyExists) Error

func (e *ErrParameterAlreadyExists) Error() string

type PutSecretInput

type PutSecretInput struct {
	Name      string
	Value     string
	Overwrite bool
	Tags      map[string]string
}

PutSecretInput contains fields needed to create or update a secret.

type PutSecretOutput

type PutSecretOutput ssm.PutParameterOutput

PutSecretOutput wraps an ssm PutParameterOutput struct.

type SSM

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

SSM wraps an AWS SSM client.

func New

func New(s *session.Session) *SSM

New returns a SSM service configured against the input session.

func (*SSM) GetSecretValue added in v1.29.1

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

GetSecretValue retrieves the value of a parameter from AWS Systems Manager Parameter Store. It takes the name of the parameter as input and returns the corresponding value as a string.

func (*SSM) PutSecret

func (s *SSM) PutSecret(in PutSecretInput) (*PutSecretOutput, error)

PutSecret tries to create the secret, and overwrites it if the secret exists and that `Overwrite` is true. ErrParameterAlreadyExists is returned if the secret exists and `Overwrite` is false.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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