listGroupPolicies
inline suspend fun IamClient.listGroupPolicies(crossinline block: ListGroupPoliciesRequest.Builder.() -> Unit): ListGroupPoliciesResponse
Lists the names of the inline policies that are embedded in the specified IAM group.
An IAM group can also have managed policies attached to it. To list the managed policies that are attached to a group, use ListAttachedGroupPolicies. For more 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. If there are no inline policies embedded with the specified group, the operation returns an empty list.
Samples
fun main() {
//sampleStart
// The following command lists the names of in line policies that are embedded in the IAM group named
// Admins.
val resp = iamClient.listGroupPolicies {
groupName = "Admins"
}
//sampleEnd
}