disassociateIamInstanceProfile

Disassociates an IAM instance profile from a running or stopped instance.

Use DescribeIamInstanceProfileAssociations to get the association ID.

Samples

// This example disassociates the specified IAM instance profile from an instance.
val resp = ec2Client.disassociateIamInstanceProfile {
    associationId = "iip-assoc-05020b59952902f5f"
}