Documentation
¶
Index ¶
- type ManagedInstance
- type SSM
- func (s *SSM) AddTagsToParameter(ctx context.Context, name string, tags []*ssm.Tag) error
- func (s *SSM) CreateAssociation(ctx context.Context, instanceId, docName string) (string, error)
- func (s *SSM) CreateAssociationByTag(ctx context.Context, associationName string, docName string, docVersion int, ...) (string, error)
- func (s *SSM) CreateParameter(ctx context.Context, input *ssm.PutParameterInput) (*ssm.PutParameterOutput, error)
- func (s *SSM) DeleteParameter(ctx context.Context, name string) error
- func (s *SSM) DescribeAssociation(ctx context.Context, instanceId, docName string) (*ssm.DescribeAssociationOutput, error)
- func (s *SSM) GetCommandInvocation(ctx context.Context, instanceId, commandId string) (*ssm.GetCommandInvocationOutput, error)
- func (s *SSM) GetInstanceInformationWithFilters(ctx context.Context, filters map[string]string) ([]*ssm.InstanceInformation, error)
- func (s *SSM) GetManagedInstance(ctx context.Context, identifier string) (*ManagedInstance, error)
- func (s *SSM) GetParameter(ctx context.Context, name string, withDecryption bool) (*ssm.GetParameterOutput, error)
- func (s *SSM) ListManagedInstances(ctx context.Context, per int64, next *string) ([]*ManagedInstance, *string, error)
- func (s *SSM) ListParameters(ctx context.Context, input *ssm.DescribeParametersInput) (*ssm.DescribeParametersOutput, error)
- func (s *SSM) SendCommand(ctx context.Context, input *ssm.SendCommandInput) (*ssm.Command, error)
- func (s *SSM) UpdateParameter(ctx context.Context, input *ssm.PutParameterInput) (*ssm.PutParameterOutput, error)
- type SSMOption
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 ¶
func (*SSM) AddTagsToParameter ¶ added in v0.30.0
AddTagsToParameter adds tags to a parameter
func (*SSM) CreateAssociation ¶ added in v0.14.0
func (*SSM) CreateAssociationByTag ¶ added in v0.29.4
func (s *SSM) CreateAssociationByTag(ctx context.Context, associationName string, docName string, docVersion int, scheduleExpression string, scheduleOffset int, tagFilters map[string][]string, parameters map[string][]string) (string, error)
CreateAssociationByTag create a ssm association by tag targets 1. Create the targets structure 2. Create required association input 3. Handle optional association name 4. Handle optional document version 5. Handle optional schedule 6. Handle optional parameters 7. Create the ssm association with the created input 8. Return the association id of the created association
func (*SSM) CreateParameter ¶ added in v0.30.0
func (s *SSM) CreateParameter(ctx context.Context, input *ssm.PutParameterInput) (*ssm.PutParameterOutput, error)
CreateParameter creates a new SSM parameter
func (*SSM) DeleteParameter ¶ added in v0.30.0
DeleteParameter deletes a parameter from SSM parameter store
func (*SSM) DescribeAssociation ¶
func (*SSM) GetCommandInvocation ¶
func (*SSM) GetInstanceInformationWithFilters ¶ added in v0.30.0
func (s *SSM) GetInstanceInformationWithFilters(ctx context.Context, filters map[string]string) ([]*ssm.InstanceInformation, error)
GetInstanceInformationWithFilters returns instance information filtered by the provided criteria
func (*SSM) GetManagedInstance ¶ added in v0.29.2
GetManagedInstance gets details about a specific managed instance by ID or computer name
func (*SSM) GetParameter ¶ added in v0.30.0
func (s *SSM) GetParameter(ctx context.Context, name string, withDecryption bool) (*ssm.GetParameterOutput, error)
GetParameter retrieves a parameter from SSM parameter store
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) ListParameters ¶ added in v0.30.0
func (s *SSM) ListParameters(ctx context.Context, input *ssm.DescribeParametersInput) (*ssm.DescribeParametersOutput, error)
ListParameters lists parameters with optional filters
func (*SSM) SendCommand ¶ added in v0.13.0
func (*SSM) UpdateParameter ¶ added in v0.30.0
func (s *SSM) UpdateParameter(ctx context.Context, input *ssm.PutParameterInput) (*ssm.PutParameterOutput, error)
UpdateParameter updates an existing SSM parameter