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.

ListEntitiesForPolicyOutput

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

type ListEntitiesForPolicyOutput struct { IsTruncated *bool `type:"boolean"` Marker *string `min:"1" type:"string"` PolicyGroups []*PolicyGroup `type:"list"` PolicyRoles []*PolicyRole `type:"list"` PolicyUsers []*PolicyUser `type:"list"` }

Contains the response to a successful ListEntitiesForPolicy request.

IsTruncated

Type: *bool

A flag that indicates whether there are more items to return. If your results were truncated, you can make a subsequent pagination request using the Marker request parameter to retrieve more items. Note that IAM might return fewer than the MaxItems number of results even when there are more results available. We recommend that you check IsTruncated after every call to ensure that you receive all your results.

Marker

Type: *string

When IsTruncated is true, this element is present and contains the value to use for the Marker parameter in a subsequent pagination request.

PolicyGroups

Contains information about a group that a managed policy is attached to.

This data type is used as a response element in the ListEntitiesForPolicy operation.

For more information about managed policies, refer to Managed Policies and Inline Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the Using IAM guide.

PolicyRoles

Contains information about a role that a managed policy is attached to.

This data type is used as a response element in the ListEntitiesForPolicy operation.

For more information about managed policies, refer to Managed Policies and Inline Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the Using IAM guide.

PolicyUsers

Contains information about a user that a managed policy is attached to.

This data type is used as a response element in the ListEntitiesForPolicy operation.

For more information about managed policies, refer to Managed Policies and Inline Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/policies-managed-vs-inline.html) in the Using IAM guide.

Method

GoString

func (s ListEntitiesForPolicyOutput) GoString() string

GoString returns the string representation

SetIsTruncated

func (s *ListEntitiesForPolicyOutput) SetIsTruncated(v bool) *ListEntitiesForPolicyOutput

SetIsTruncated sets the IsTruncated field's value.

SetMarker

func (s *ListEntitiesForPolicyOutput) SetMarker(v string) *ListEntitiesForPolicyOutput

SetMarker sets the Marker field's value.

SetPolicyGroups

func (s *ListEntitiesForPolicyOutput) SetPolicyGroups(v []*PolicyGroup) *ListEntitiesForPolicyOutput

SetPolicyGroups sets the PolicyGroups field's value.

SetPolicyRoles

func (s *ListEntitiesForPolicyOutput) SetPolicyRoles(v []*PolicyRole) *ListEntitiesForPolicyOutput

SetPolicyRoles sets the PolicyRoles field's value.

SetPolicyUsers

func (s *ListEntitiesForPolicyOutput) SetPolicyUsers(v []*PolicyUser) *ListEntitiesForPolicyOutput

SetPolicyUsers sets the PolicyUsers field's value.

String

func (s ListEntitiesForPolicyOutput) String() string

String returns the string representation

On this page: