// Lists the policies attached to the specified principal. If you use an Cognito
// identity, the ID must be in AmazonCognito Identity format
// (https://docs.aws.amazon.com/cognitoidentity/latest/APIReference/API_GetCredentialsForIdentity.html#API_GetCredentialsForIdentity_RequestSyntax).
// Note: This API is deprecated. Please use ListAttachedPolicies instead.
Lists the policies attached to the specified principal. If you use an Cognito
identity, the ID must be in AmazonCognito Identity format
.
Note: This API is deprecated. Please use ListAttachedPolicies instead.
// Lists the policies attached to the specified principal . If you use an Cognito // identity the ID must be in AmazonCognito Identity format // ( https : // docs . aws . amazon . com / cognitoidentity / latest / APIReference / API_GetCredentialsForIdentity . html#API_GetCredentialsForIdentity_RequestSyntax ) . // Note : This API is deprecated . Please use ListAttachedPolicies instead .
func (c *Client) ListPrincipalPolicies(ctx context.Context, params *ListPrincipalPoliciesInput, optFns ...func(*Options)) (*ListPrincipalPoliciesOutput, error) {
	if params == nil {
		params = &ListPrincipalPoliciesInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "ListPrincipalPolicies", params, optFns, addOperationListPrincipalPoliciesMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*ListPrincipalPoliciesOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) ListPrincipalPolicies ( ctx context . Context , params * ListPrincipalPoliciesInput , optFns ... func ( * Options ) ) ( * ListPrincipalPoliciesOutput , error ) { if params == nil { params = & ListPrincipalPoliciesInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationListPrincipalPoliciesMiddlewares ) if err != nil { return nil , err } out := result . ( * ListPrincipalPoliciesOutput ) out . ResultMetadata = metadata return out , nil }
Lists the policies attached to the specified principal.
Lists the policies attached to the specified principal .