ssm

package
v0.29.4 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagedInstance added in v0.29.2

type ManagedInstance struct {
	InstanceId   *string `json:"instanceId"`
	Name         *string `json:"name"`
	PingStatus   *string `json:"pingStatus"`
	PlatformType *string `json:"platformType"`
	ResourceType *string `json:"resourceType"`
	ComputerName *string `json:"computerName"`
	IPAddress    *string `json:"ipAddress"`
	AgentVersion *string `json:"agentVersion"`
}

ManagedInstance represents the response structure for managed instances

type SSM

type SSM struct {
	Service ssmiface.SSMAPI
	// contains filtered or unexported fields
}

func New

func New(opts ...SSMOption) *SSM

New creates a new SSM

func (*SSM) CreateAssociation added in v0.14.0

func (s *SSM) CreateAssociation(ctx context.Context, instanceId, docName string) (string, error)

func (*SSM) CreateAssociationByTag added in v0.29.4

func (s *SSM) CreateAssociationByTag(ctx context.Context, associationName string, docName string, docVersion int, tagFilters map[string][]string, parameters map[string][]string) (string, error)

func (*SSM) DescribeAssociation

func (s *SSM) DescribeAssociation(ctx context.Context, instanceId, docName string) (*ssm.DescribeAssociationOutput, error)

func (*SSM) GetCommandInvocation

func (s *SSM) GetCommandInvocation(ctx context.Context, instanceId, commandId string) (*ssm.GetCommandInvocationOutput, error)

func (*SSM) GetManagedInstance added in v0.29.2

func (s *SSM) GetManagedInstance(ctx context.Context, identifier string) (*ManagedInstance, error)

GetManagedInstance gets details about a specific managed instance by ID or computer name

func (*SSM) ListManagedInstances added in v0.29.2

func (s *SSM) ListManagedInstances(ctx context.Context, per int64, next *string) ([]*ManagedInstance, *string, error)

ListManagedInstances lists hybrid instances from SSM Fleet Manager

func (*SSM) SendCommand added in v0.13.0

func (s *SSM) SendCommand(ctx context.Context, input *ssm.SendCommandInput) (*ssm.Command, error)

type SSMOption

type SSMOption func(*SSM)

func WithCredentials

func WithCredentials(key, secret, token, region string) SSMOption

func WithSession

func WithSession(sess *session.Session) SSMOption

Jump to

Keyboard shortcuts

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