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.

GetUserPolicyOutput

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

type GetUserPolicyOutput struct { PolicyDocument *string `min:"1" type:"string" required:"true"` PolicyName *string `min:"1" type:"string" required:"true"` UserName *string `min:"1" type:"string" required:"true"` }

Contains the response to a successful GetUserPolicy request.

PolicyDocument

Type: *string

The policy document.

PolicyDocument is a required field

PolicyName

Type: *string

The name of the policy.

PolicyName is a required field

UserName

Type: *string

The user the policy is associated with.

UserName is a required field

Method

GoString

func (s GetUserPolicyOutput) GoString() string

GoString returns the string representation

SetPolicyDocument

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

SetPolicyDocument sets the PolicyDocument field's value.

SetPolicyName

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

SetPolicyName sets the PolicyName field's value.

SetUserName

func (s *GetUserPolicyOutput) SetUserName(v string) *GetUserPolicyOutput

SetUserName sets the UserName field's value.

String

func (s GetUserPolicyOutput) String() string

String returns the string representation

On this page: