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.

DescribeComplianceByResourceInput

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

type DescribeComplianceByResourceInput struct { ComplianceTypes []*string `type:"list"` Limit *int64 `type:"integer"` NextToken *string `type:"string"` ResourceId *string `min:"1" type:"string"` ResourceType *string `min:"1" type:"string"` }

ComplianceTypes

Type: []*string

Filters the results by compliance.

The allowed values are COMPLIANT and NON_COMPLIANT.

Limit

Type: *int64

The maximum number of evaluation results returned on each page. The default is 10. You cannot specify a number greater than 100. If you specify 0, AWS Config uses the default.

NextToken

Type: *string

The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.

ResourceId

Type: *string

The ID of the AWS resource for which you want compliance information. You can specify only one resource ID. If you specify a resource ID, you must also specify a type for ResourceType.

ResourceType

Type: *string

The types of AWS resources for which you want compliance information (for example, AWS::EC2::Instance). For this action, you can specify that the resource type is an AWS account by specifying AWS::::Account.

Method

GoString

func (s DescribeComplianceByResourceInput) GoString() string

GoString returns the string representation

SetComplianceTypes

func (s *DescribeComplianceByResourceInput) SetComplianceTypes(v []*string) *DescribeComplianceByResourceInput

SetComplianceTypes sets the ComplianceTypes field's value.

SetLimit

func (s *DescribeComplianceByResourceInput) SetLimit(v int64) *DescribeComplianceByResourceInput

SetLimit sets the Limit field's value.

SetNextToken

func (s *DescribeComplianceByResourceInput) SetNextToken(v string) *DescribeComplianceByResourceInput

SetNextToken sets the NextToken field's value.

SetResourceId

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

SetResourceId sets the ResourceId field's value.

SetResourceType

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

SetResourceType sets the ResourceType field's value.

String

func (s DescribeComplianceByResourceInput) String() string

String returns the string representation

Validate

func (s *DescribeComplianceByResourceInput) Validate() error

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

On this page: