@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSSavingsPlansClient extends AmazonWebServiceClient implements AWSSavingsPlans
Savings Plans are a pricing model that offer significant savings on Amazon Web Services usage (for example, on Amazon EC2 instances). You commit to a consistent amount of usage per hour, in the specified currency, for a term of one or three years, and receive a lower price for that usage. For more information, see the Amazon Web Services Savings Plans User Guide.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AWSSavingsPlansClientBuilder |
builder() |
CreateSavingsPlanResult |
createSavingsPlan(CreateSavingsPlanRequest request)
Creates a Savings Plan.
|
DeleteQueuedSavingsPlanResult |
deleteQueuedSavingsPlan(DeleteQueuedSavingsPlanRequest request)
Deletes the queued purchase for the specified Savings Plan.
|
DescribeSavingsPlanRatesResult |
describeSavingsPlanRates(DescribeSavingsPlanRatesRequest request)
Describes the rates for the specified Savings Plan.
|
DescribeSavingsPlansResult |
describeSavingsPlans(DescribeSavingsPlansRequest request)
Describes the specified Savings Plans.
|
DescribeSavingsPlansOfferingRatesResult |
describeSavingsPlansOfferingRates(DescribeSavingsPlansOfferingRatesRequest request)
Describes the offering rates for the specified Savings Plans.
|
DescribeSavingsPlansOfferingsResult |
describeSavingsPlansOfferings(DescribeSavingsPlansOfferingsRequest request)
Describes the offerings for the specified Savings Plans.
|
ResponseMetadata |
getCachedResponseMetadata(AmazonWebServiceRequest request)
Returns additional metadata for a previously executed successful, request, typically used for debugging issues
where a service isn't acting as expected.
|
ListTagsForResourceResult |
listTagsForResource(ListTagsForResourceRequest request)
Lists the tags for the specified resource.
|
ReturnSavingsPlanResult |
returnSavingsPlan(ReturnSavingsPlanRequest request)
Returns the specified Savings Plan.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
TagResourceResult |
tagResource(TagResourceRequest request)
Adds the specified tags to the specified resource.
|
UntagResourceResult |
untagResource(UntagResourceRequest request)
Removes the specified tags from the specified resource.
|
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
public static AWSSavingsPlansClientBuilder builder()
public CreateSavingsPlanResult createSavingsPlan(CreateSavingsPlanRequest request)
Creates a Savings Plan.
createSavingsPlan
in interface AWSSavingsPlans
createSavingsPlanRequest
- ResourceNotFoundException
- The specified resource was not found.ValidationException
- One of the input parameters is not valid.InternalServerException
- An unexpected error occurred.ServiceQuotaExceededException
- A service quota has been exceeded.public DeleteQueuedSavingsPlanResult deleteQueuedSavingsPlan(DeleteQueuedSavingsPlanRequest request)
Deletes the queued purchase for the specified Savings Plan.
deleteQueuedSavingsPlan
in interface AWSSavingsPlans
deleteQueuedSavingsPlanRequest
- ValidationException
- One of the input parameters is not valid.ResourceNotFoundException
- The specified resource was not found.InternalServerException
- An unexpected error occurred.ServiceQuotaExceededException
- A service quota has been exceeded.public DescribeSavingsPlanRatesResult describeSavingsPlanRates(DescribeSavingsPlanRatesRequest request)
Describes the rates for the specified Savings Plan.
describeSavingsPlanRates
in interface AWSSavingsPlans
describeSavingsPlanRatesRequest
- ResourceNotFoundException
- The specified resource was not found.ValidationException
- One of the input parameters is not valid.public DescribeSavingsPlansResult describeSavingsPlans(DescribeSavingsPlansRequest request)
Describes the specified Savings Plans.
describeSavingsPlans
in interface AWSSavingsPlans
describeSavingsPlansRequest
- InternalServerException
- An unexpected error occurred.ValidationException
- One of the input parameters is not valid.public DescribeSavingsPlansOfferingRatesResult describeSavingsPlansOfferingRates(DescribeSavingsPlansOfferingRatesRequest request)
Describes the offering rates for the specified Savings Plans.
describeSavingsPlansOfferingRates
in interface AWSSavingsPlans
describeSavingsPlansOfferingRatesRequest
- ValidationException
- One of the input parameters is not valid.InternalServerException
- An unexpected error occurred.public DescribeSavingsPlansOfferingsResult describeSavingsPlansOfferings(DescribeSavingsPlansOfferingsRequest request)
Describes the offerings for the specified Savings Plans.
describeSavingsPlansOfferings
in interface AWSSavingsPlans
describeSavingsPlansOfferingsRequest
- ValidationException
- One of the input parameters is not valid.InternalServerException
- An unexpected error occurred.public ListTagsForResourceResult listTagsForResource(ListTagsForResourceRequest request)
Lists the tags for the specified resource.
listTagsForResource
in interface AWSSavingsPlans
listTagsForResourceRequest
- ResourceNotFoundException
- The specified resource was not found.ValidationException
- One of the input parameters is not valid.InternalServerException
- An unexpected error occurred.public ReturnSavingsPlanResult returnSavingsPlan(ReturnSavingsPlanRequest request)
Returns the specified Savings Plan.
returnSavingsPlan
in interface AWSSavingsPlans
returnSavingsPlanRequest
- ValidationException
- One of the input parameters is not valid.ResourceNotFoundException
- The specified resource was not found.InternalServerException
- An unexpected error occurred.ServiceQuotaExceededException
- A service quota has been exceeded.public TagResourceResult tagResource(TagResourceRequest request)
Adds the specified tags to the specified resource.
tagResource
in interface AWSSavingsPlans
tagResourceRequest
- ResourceNotFoundException
- The specified resource was not found.ServiceQuotaExceededException
- A service quota has been exceeded.ValidationException
- One of the input parameters is not valid.InternalServerException
- An unexpected error occurred.public UntagResourceResult untagResource(UntagResourceRequest request)
Removes the specified tags from the specified resource.
untagResource
in interface AWSSavingsPlans
untagResourceRequest
- ResourceNotFoundException
- The specified resource was not found.ValidationException
- One of the input parameters is not valid.InternalServerException
- An unexpected error occurred.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AWSSavingsPlans
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AWSSavingsPlans
shutdown
in class AmazonWebServiceClient