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.

GetPolicyOutput

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

type GetPolicyOutput struct { CreationDate *time.Time `locationName:"creationDate" type:"timestamp"` DefaultVersionId *string `locationName:"defaultVersionId" type:"string"` GenerationId *string `locationName:"generationId" type:"string"` 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"` }

The output from the GetPolicy operation.

CreationDate

Type: *time.Time

The date the policy was created.

DefaultVersionId

Type: *string

The default policy version ID.

GenerationId

Type: *string

The generation ID of the policy.

LastModifiedDate

Type: *time.Time

The date the policy 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.

Method

GoString

func (s GetPolicyOutput) GoString() string

GoString returns the string representation

SetCreationDate

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

SetCreationDate sets the CreationDate field's value.

SetDefaultVersionId

func (s *GetPolicyOutput) SetDefaultVersionId(v string) *GetPolicyOutput

SetDefaultVersionId sets the DefaultVersionId field's value.

SetGenerationId

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

SetGenerationId sets the GenerationId field's value.

SetLastModifiedDate

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

SetLastModifiedDate sets the LastModifiedDate field's value.

SetPolicyArn

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

SetPolicyArn sets the PolicyArn field's value.

SetPolicyDocument

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

SetPolicyDocument sets the PolicyDocument field's value.

SetPolicyName

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

SetPolicyName sets the PolicyName field's value.

String

func (s GetPolicyOutput) String() string

String returns the string representation

On this page: