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.

GetRolePolicyOutput

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

type GetRolePolicyOutput struct { PolicyDocument *string `min:"1" type:"string" required:"true"` PolicyName *string `min:"1" type:"string" required:"true"` RoleName *string `min:"1" type:"string" required:"true"` }

Contains the response to a successful GetRolePolicy 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

RoleName

Type: *string

The role the policy is associated with.

RoleName is a required field

Method

GoString

func (s GetRolePolicyOutput) GoString() string

GoString returns the string representation

SetPolicyDocument

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

SetPolicyDocument sets the PolicyDocument field's value.

SetPolicyName

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

SetPolicyName sets the PolicyName field's value.

SetRoleName

func (s *GetRolePolicyOutput) SetRoleName(v string) *GetRolePolicyOutput

SetRoleName sets the RoleName field's value.

String

func (s GetRolePolicyOutput) String() string

String returns the string representation

On this page: