replaceIamInstanceProfileAssociation
abstract suspend fun replaceIamInstanceProfileAssociation(input: ReplaceIamInstanceProfileAssociationRequest): ReplaceIamInstanceProfileAssociationResponse
Replaces an IAM instance profile for the specified running instance. You can use this action to change the IAM instance profile that's associated with an instance without having to disassociate the existing IAM instance profile first.
Use DescribeIamInstanceProfileAssociations to get the association ID.