deletePlacementGroup
abstract suspend fun deletePlacementGroup(input: DeletePlacementGroupRequest): DeletePlacementGroupResponse
Deletes the specified placement group. You must terminate all instances in the placement group before you can delete the placement group. For more information, see Placement groups in the Amazon EC2 User Guide.
Samples
fun main() {
//sampleStart
// This example deletes the specified placement group.
val resp = ec2Client.deletePlacementGroup {
groupName = "my-cluster"
}
//sampleEnd
}