ExtendTrainingPlan
Extends an existing training plan by purchasing an extension offering. This allows you to add additional compute capacity time to your training plan without creating a new plan or reconfiguring your workloads.
To find available extension offerings, use the
SearchTrainingPlanOfferings
API with the
TrainingPlanArn parameter.
To view the history of extensions for a training plan, use the
DescribeTrainingPlanExtensionHistory
API.
Request Syntax
{
"TrainingPlanExtensionOfferingId": "string"
}
Request Parameters
For information about the parameters that are common to all actions, see Common Parameters.
The request accepts the following data in JSON format.
- TrainingPlanExtensionOfferingId
-
The unique identifier of the extension offering to purchase. You can retrieve this ID from the
TrainingPlanExtensionOfferingsin the response of theSearchTrainingPlanOfferingsAPI.Type: String
Required: Yes
Response Syntax
{
"TrainingPlanExtensions": [
{
"AvailabilityZone": "string",
"AvailabilityZoneId": "string",
"CurrencyCode": "string",
"DurationHours": number,
"EndDate": number,
"ExtendedAt": number,
"PaymentStatus": "string",
"StartDate": number,
"Status": "string",
"TrainingPlanExtensionOfferingId": "string",
"UpfrontFee": "string"
}
]
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- TrainingPlanExtensions
-
The list of extensions for the training plan, including the newly created extension.
Type: Array of TrainingPlanExtension objects
Array Members: Minimum number of 0 items.
Errors
For information about the errors that are common to all actions, see Common Errors.
- ResourceNotFound
-
Resource being access is not found.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific Amazon SDKs, see the following: