describeSpotFleetRequestHistory
inline suspend fun Ec2Client.describeSpotFleetRequestHistory(crossinline block: DescribeSpotFleetRequestHistoryRequest.Builder.() -> Unit): DescribeSpotFleetRequestHistoryResponse
Describes the events for the specified Spot Fleet request during the specified time.
Spot Fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event. Spot Fleet events are available for 48 hours.
For more information, see Monitor fleet events using Amazon EventBridge in the Amazon EC2 User Guide.
Samples
fun main() {
//sampleStart
// This example returns the history for the specified Spot fleet starting at the specified time.
val resp = ec2Client.describeSpotFleetRequestHistory {
spotFleetRequestId = "sfr-73fbd2ce-aa30-494c-8788-1cee4EXAMPLE"
startTime = "2015-05-26T00:00:00Z"
}
//sampleEnd
}