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.

PolicyVersion

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

type PolicyVersion struct { CreateDate *time.Time `locationName:"createDate" type:"timestamp"` IsDefaultVersion *bool `locationName:"isDefaultVersion" type:"boolean"` VersionId *string `locationName:"versionId" type:"string"` }

Describes a policy version.

CreateDate

Type: *time.Time

The date and time the policy was created.

IsDefaultVersion

Type: *bool

Specifies whether the policy version is the default.

VersionId

Type: *string

The policy version ID.

Method

GoString

func (s PolicyVersion) GoString() string

GoString returns the string representation

SetCreateDate

func (s *PolicyVersion) SetCreateDate(v time.Time) *PolicyVersion

SetCreateDate sets the CreateDate field's value.

SetIsDefaultVersion

func (s *PolicyVersion) SetIsDefaultVersion(v bool) *PolicyVersion

SetIsDefaultVersion sets the IsDefaultVersion field's value.

SetVersionId

func (s *PolicyVersion) SetVersionId(v string) *PolicyVersion

SetVersionId sets the VersionId field's value.

String

func (s PolicyVersion) String() string

String returns the string representation

On this page: