Documentation ¶
Index ¶
- Variables
- func IsManagedInstance(s string) bool
- func ReadRegistrationFile(path string) (id string, err error)
- func SanitizeTag(t string) string
- type Activation
- type Config
- type CustomInventory
- type InstanceInfo
- type ManagedInstance
- type ResourceTags
- type SSM
- func (s *SSM) AddTagsToResource(ctx context.Context, input *ResourceTags) error
- func (s *SSM) CreateActivation(ctx context.Context, name string) (*Activation, error)
- func (s *SSM) DeregisterManagedInstance(ctx context.Context, managedId string) error
- func (s *SSM) DescribeInstanceInformation(ctx context.Context, activationId string) (*ManagedInstance, error)
- func (s *SSM) PutInventory(ctx context.Context, inv *CustomInventory) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // The default path for Agent Registration State on Linux. DefaultSSMRegistrationPath = filepath.Join(appconfig.DefaultDataStorePath, "registration") )
Functions ¶
func IsManagedInstance ¶
IsManagedInstance tests whether the provided EC2 instance identifier is managed.
func ReadRegistrationFile ¶
func SanitizeTag ¶
Types ¶
type Activation ¶
type CustomInventory ¶
type CustomInventory struct { TypeName string ManagedId string CaptureTime string Content map[string]string }
func (*CustomInventory) ContentHash ¶
func (c *CustomInventory) ContentHash() string
type InstanceInfo ¶
type InstanceInfo struct { InstanceId string `json:"instance-id"` Region string `json:"region"` ReleaseVersion string `json:"release-version"` }
InstanceInfo contains information for instances registered with SSM. This is collected from the output of the following command:
ssm-cli get-instance-information
func GetInstanceInformation ¶
func GetInstanceInformation() (*InstanceInfo, error)
type ManagedInstance ¶
type ResourceTags ¶
type SSM ¶
func (*SSM) AddTagsToResource ¶
func (s *SSM) AddTagsToResource(ctx context.Context, input *ResourceTags) error
func (*SSM) CreateActivation ¶
func (*SSM) DeregisterManagedInstance ¶
func (*SSM) DescribeInstanceInformation ¶
func (*SSM) PutInventory ¶
func (s *SSM) PutInventory(ctx context.Context, inv *CustomInventory) error
Click to show internal directories.
Click to hide internal directories.