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.

Condition

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

type Condition struct { ConditionKey *string `type:"string" required:"true"` ConditionType *string `type:"string" required:"true" enum:"ConditionType"` ConditionValue *string `type:"string" required:"true"` }

Contains an array of triplets made up of a condition type (such as StringEquals), a key, and a value. Conditions are used to filter resources in a selection that is assigned to a backup plan.

ConditionKey

Type: *string

The key in a key-value pair. For example, in "ec2:ResourceTag/Department": "accounting", "ec2:ResourceTag/Department" is the key.

ConditionKey is a required field

ConditionType

Type: *string

An operation, such as StringEquals, that is applied to a key-value pair used to filter resources in a selection.

ConditionType is a required field

ConditionValue

Type: *string

The value in a key-value pair. For example, in "ec2:ResourceTag/Department": "accounting", "accounting" is the value.

ConditionValue is a required field

Method

GoString

func (s Condition) GoString() string

GoString returns the string representation

SetConditionKey

func (s *Condition) SetConditionKey(v string) *Condition

SetConditionKey sets the ConditionKey field's value.

SetConditionType

func (s *Condition) SetConditionType(v string) *Condition

SetConditionType sets the ConditionType field's value.

SetConditionValue

func (s *Condition) SetConditionValue(v string) *Condition

SetConditionValue sets the ConditionValue field's value.

String

func (s Condition) String() string

String returns the string representation

Validate

func (s *Condition) Validate() error

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

On this page: