AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

Target

import "github.com/aws/aws-sdk-go/service/ssm"

type Target struct { Key *string `min:"1" type:"string"` Values []*string `type:"list"` }

An array of search criteria that targets instances using a Key,Value combination that you specify. Targets is required if you don't provide one or more instance IDs in the call.

Key

Type: *string

User-defined criteria for sending commands that target instances that meet the criteria. Key can be tag:<Amazon EC2 tag> or InstanceIds. For more information about how to send commands that target instances using Key,Value parameters, see Targeting Multiple Instances (https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html#send-commands-targeting) in the AWS Systems Manager User Guide.

Values

Type: []*string

User-defined criteria that maps to Key. For example, if you specified tag:ServerRole, you could specify value:WebServer to execute a command on instances that include Amazon EC2 tags of ServerRole,WebServer. For more information about how to send commands that target instances using Key,Value parameters, see Sending Commands to a Fleet (https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html) in the AWS Systems Manager User Guide.

Method

GoString

func (s Target) GoString() string

GoString returns the string representation

SetKey

func (s *Target) SetKey(v string) *Target

SetKey sets the Key field's value.

SetValues

func (s *Target) SetValues(v []*string) *Target

SetValues sets the Values field's value.

String

func (s Target) String() string

String returns the string representation

Validate

func (s *Target) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: