untagRole

inline suspend fun IamClient.untagRole(crossinline block: UntagRoleRequest.Builder.() -> Unit): UntagRoleResponse

Removes the specified tags from the role. For more information about tagging, see Tagging IAM resources in the IAM User Guide.

Samples


fun main() { 
   //sampleStart 
   // The following example shows how to remove a tag with the key Dept from a role named taggedrole
iamClient.untagRole {
    roleName = "taggedrole"
    tagKeys = listOf<String>(
        "Dept"
    )
} 
   //sampleEnd
}