Smaws_Client_IAM.ListAttachedRolePoliciesLists all managed policies that are attached to the specified IAM role.
An IAM role can also have inline policies embedded with it. To list the inline policies for a role, use ListRolePolicies. For information about policies, see Managed policies and inline policies in the IAM User Guide.
You can paginate the results using the MaxItems and Marker parameters. You can use the PathPrefix parameter to limit the list of policies to only those matching the specified path prefix. If there are no policies attached to the specified role (or none that match the specified path prefix), the operation returns an empty list.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `InvalidInputException of Types.invalid_input_exception
| `NoSuchEntityException of Types.no_such_entity_exception
| `ServiceFailureException of Types.service_failure_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.list_attached_role_policies_request ->
(Types.list_attached_role_policies_response,
[> Smaws_Lib.Protocols.AwsQuery.error
| `InvalidInputException of Types.invalid_input_exception
| `NoSuchEntityException of Types.no_such_entity_exception
| `ServiceFailureException of Types.service_failure_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.list_attached_role_policies_request ->
(Types.list_attached_role_policies_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `InvalidInputException of Types.invalid_input_exception
| `NoSuchEntityException of Types.no_such_entity_exception
| `ServiceFailureException of Types.service_failure_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result