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.

Source

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

type Source struct { Owner *string `type:"string" required:"true" enum:"Owner"` SourceDetails []*SourceDetail `type:"list"` SourceIdentifier *string `min:"1" type:"string" required:"true"` }

Provides the AWS Config rule owner (AWS or customer), the rule identifier, and the events that trigger the evaluation of your AWS resources.

Owner

Type: *string

Indicates whether AWS or the customer owns and manages the AWS Config rule.

Owner is a required field

SourceDetails

Provides the source and the message types that trigger AWS Config to evaluate your AWS resources against a rule. It also provides the frequency with which you want AWS Config to run evaluations for the rule if the trigger type is periodic. You can specify the parameter values for SourceDetail only for custom rules.

SourceIdentifier

Type: *string

For AWS Config managed rules, a predefined identifier from a list. For example, IAM_PASSWORD_POLICY is a managed rule. To reference a managed rule, see Using AWS Managed Config Rules (https://docs.aws.amazon.com/config/latest/developerguide/evaluate-config_use-managed-rules.html).

For custom rules, the identifier is the Amazon Resource Name (ARN) of the rule's AWS Lambda function, such as arn:aws:lambda:us-east-2:123456789012:function:custom_rule_name.

SourceIdentifier is a required field

Method

GoString

func (s Source) GoString() string

GoString returns the string representation

SetOwner

func (s *Source) SetOwner(v string) *Source

SetOwner sets the Owner field's value.

SetSourceDetails

func (s *Source) SetSourceDetails(v []*SourceDetail) *Source

SetSourceDetails sets the SourceDetails field's value.

SetSourceIdentifier

func (s *Source) SetSourceIdentifier(v string) *Source

SetSourceIdentifier sets the SourceIdentifier field's value.

String

func (s Source) String() string

String returns the string representation

Validate

func (s *Source) Validate() error

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

On this page: