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.

Scope

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

type Scope struct { ComplianceResourceId *string `min:"1" type:"string"` ComplianceResourceTypes []*string `type:"list"` TagKey *string `min:"1" type:"string"` TagValue *string `min:"1" type:"string"` }

Defines which resources trigger an evaluation for an AWS Config rule. The scope can include one or more resource types, a combination of a tag key and value, or a combination of one resource type and one resource ID. Specify a scope to constrain which resources trigger an evaluation for a rule. Otherwise, evaluations for the rule are triggered when any resource in your recording group changes in configuration.

ComplianceResourceId

Type: *string

The ID of the only AWS resource that you want to trigger an evaluation for the rule. If you specify a resource ID, you must specify one resource type for ComplianceResourceTypes.

ComplianceResourceTypes

Type: []*string

The resource types of only those AWS resources that you want to trigger an evaluation for the rule. You can only specify one type if you also specify a resource ID for ComplianceResourceId.

TagKey

Type: *string

The tag key that is applied to only those AWS resources that you want to trigger an evaluation for the rule.

TagValue

Type: *string

The tag value applied to only those AWS resources that you want to trigger an evaluation for the rule. If you specify a value for TagValue, you must also specify a value for TagKey.

Method

GoString

func (s Scope) GoString() string

GoString returns the string representation

SetComplianceResourceId

func (s *Scope) SetComplianceResourceId(v string) *Scope

SetComplianceResourceId sets the ComplianceResourceId field's value.

SetComplianceResourceTypes

func (s *Scope) SetComplianceResourceTypes(v []*string) *Scope

SetComplianceResourceTypes sets the ComplianceResourceTypes field's value.

SetTagKey

func (s *Scope) SetTagKey(v string) *Scope

SetTagKey sets the TagKey field's value.

SetTagValue

func (s *Scope) SetTagValue(v string) *Scope

SetTagValue sets the TagValue field's value.

String

func (s Scope) String() string

String returns the string representation

Validate

func (s *Scope) Validate() error

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

On this page: