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.

ComplianceByResource

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

type ComplianceByResource struct { Compliance *Compliance `type:"structure"` ResourceId *string `min:"1" type:"string"` ResourceType *string `min:"1" type:"string"` }

Indicates whether an AWS resource that is evaluated according to one or more AWS Config rules is compliant. A resource is compliant if it complies with all of the rules that evaluate it. A resource is noncompliant if it does not comply with one or more of these rules.

Compliance

Indicates whether an AWS resource or AWS Config rule is compliant and provides the number of contributors that affect the compliance.

ResourceId

Type: *string

The ID of the AWS resource that was evaluated.

ResourceType

Type: *string

The type of the AWS resource that was evaluated.

Method

GoString

func (s ComplianceByResource) GoString() string

GoString returns the string representation

SetCompliance

func (s *ComplianceByResource) SetCompliance(v *Compliance) *ComplianceByResource

SetCompliance sets the Compliance field's value.

SetResourceId

func (s *ComplianceByResource) SetResourceId(v string) *ComplianceByResource

SetResourceId sets the ResourceId field's value.

SetResourceType

func (s *ComplianceByResource) SetResourceType(v string) *ComplianceByResource

SetResourceType sets the ResourceType field's value.

String

func (s ComplianceByResource) String() string

String returns the string representation

On this page: