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.

GetPolicyVersionOutput

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

type GetPolicyVersionOutput struct { CreationDate *time.Time `locationName:"creationDate" type:"timestamp"` GenerationId *string `locationName:"generationId" type:"string"` IsDefaultVersion *bool `locationName:"isDefaultVersion" type:"boolean"` LastModifiedDate *time.Time `locationName:"lastModifiedDate" type:"timestamp"` PolicyArn *string `locationName:"policyArn" type:"string"` PolicyDocument *string `locationName:"policyDocument" type:"string"` PolicyName *string `locationName:"policyName" min:"1" type:"string"` PolicyVersionId *string `locationName:"policyVersionId" type:"string"` }

The output from the GetPolicyVersion operation.

CreationDate

Type: *time.Time

The date the policy version was created.

GenerationId

Type: *string

The generation ID of the policy version.

IsDefaultVersion

Type: *bool

Specifies whether the policy version is the default.

LastModifiedDate

Type: *time.Time

The date the policy version was last modified.

PolicyArn

Type: *string

The policy ARN.

PolicyDocument

Type: *string

The JSON document that describes the policy.

PolicyName

Type: *string

The policy name.

PolicyVersionId

Type: *string

The policy version ID.

Method

GoString

func (s GetPolicyVersionOutput) GoString() string

GoString returns the string representation

SetCreationDate

func (s *GetPolicyVersionOutput) SetCreationDate(v time.Time) *GetPolicyVersionOutput

SetCreationDate sets the CreationDate field's value.

SetGenerationId

func (s *GetPolicyVersionOutput) SetGenerationId(v string) *GetPolicyVersionOutput

SetGenerationId sets the GenerationId field's value.

SetIsDefaultVersion

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

SetIsDefaultVersion sets the IsDefaultVersion field's value.

SetLastModifiedDate

func (s *GetPolicyVersionOutput) SetLastModifiedDate(v time.Time) *GetPolicyVersionOutput

SetLastModifiedDate sets the LastModifiedDate field's value.

SetPolicyArn

func (s *GetPolicyVersionOutput) SetPolicyArn(v string) *GetPolicyVersionOutput

SetPolicyArn sets the PolicyArn field's value.

SetPolicyDocument

func (s *GetPolicyVersionOutput) SetPolicyDocument(v string) *GetPolicyVersionOutput

SetPolicyDocument sets the PolicyDocument field's value.

SetPolicyName

func (s *GetPolicyVersionOutput) SetPolicyName(v string) *GetPolicyVersionOutput

SetPolicyName sets the PolicyName field's value.

SetPolicyVersionId

func (s *GetPolicyVersionOutput) SetPolicyVersionId(v string) *GetPolicyVersionOutput

SetPolicyVersionId sets the PolicyVersionId field's value.

String

func (s GetPolicyVersionOutput) String() string

String returns the string representation

On this page: