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.

ListPoliciesGrantingServiceAccessInput

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

type ListPoliciesGrantingServiceAccessInput struct { Arn *string `min:"20" type:"string" required:"true"` Marker *string `min:"1" type:"string"` ServiceNamespaces []*string `min:"1" type:"list" required:"true"` }

Arn

Type: *string

The ARN of the IAM identity (user, group, or role) whose policies you want to list.

Arn is a required field

Marker

Type: *string

Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the Marker element in the response that you received to indicate where the next call should start.

ServiceNamespaces

Type: []*string

The service namespace for the AWS services whose policies you want to list.

To learn the service namespace for a service, go to Actions, Resources, and Condition Keys for AWS Services (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_actions-resources-contextkeys.html) in the IAM User Guide. Choose the name of the service to view details for that service. In the first paragraph, find the service prefix. For example, (service prefix: a4b). For more information about service namespaces, see AWS Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html#genref-aws-service-namespaces) in the AWS General Reference.

ServiceNamespaces is a required field

Method

GoString

func (s ListPoliciesGrantingServiceAccessInput) GoString() string

GoString returns the string representation

SetArn

func (s *ListPoliciesGrantingServiceAccessInput) SetArn(v string) *ListPoliciesGrantingServiceAccessInput

SetArn sets the Arn field's value.

SetMarker

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

SetMarker sets the Marker field's value.

SetServiceNamespaces

func (s *ListPoliciesGrantingServiceAccessInput) SetServiceNamespaces(v []*string) *ListPoliciesGrantingServiceAccessInput

SetServiceNamespaces sets the ServiceNamespaces field's value.

String

func (s ListPoliciesGrantingServiceAccessInput) String() string

String returns the string representation

Validate

func (s *ListPoliciesGrantingServiceAccessInput) Validate() error

Validate inspects the fields of the type to determine if they are valid.

On this page: