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.

RetentionConfiguration

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

type RetentionConfiguration struct { Name *string `min:"1" type:"string" required:"true"` RetentionPeriodInDays *int64 `min:"30" type:"integer" required:"true"` }

An object with the name of the retention configuration and the retention period in days. The object stores the configuration for data retention in AWS Config.

Name

Type: *string

The name of the retention configuration object.

Name is a required field

RetentionPeriodInDays

Type: *int64

Number of days AWS Config stores your historical information.

Currently, only applicable to the configuration item history.

RetentionPeriodInDays is a required field

Method

GoString

func (s RetentionConfiguration) GoString() string

GoString returns the string representation

SetName

func (s *RetentionConfiguration) SetName(v string) *RetentionConfiguration

SetName sets the Name field's value.

SetRetentionPeriodInDays

func (s *RetentionConfiguration) SetRetentionPeriodInDays(v int64) *RetentionConfiguration

SetRetentionPeriodInDays sets the RetentionPeriodInDays field's value.

String

func (s RetentionConfiguration) String() string

String returns the string representation

On this page: