@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSFreeTierClient extends AmazonWebServiceClient implements AWSFreeTier
You can use the Amazon Web Services Free Tier API to query programmatically your Free Tier usage data.
Free Tier tracks your monthly usage data for all free tier offers that are associated with your Amazon Web Services account. You can use the Free Tier API to filter and show only the data that you want.
Service endpoint
The Free Tier API provides the following endpoint:
https://freetier.us-east-1.api.aws
For more information, see Using the Amazon Web Services Free Tier in the Billing User Guide.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AWSFreeTierClientBuilder |
builder() |
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.
|
GetFreeTierUsageResult |
getFreeTierUsage(GetFreeTierUsageRequest request)
Returns a list of all Free Tier usage objects that match your filters.
|
void |
shutdown()
Shuts down this client object, releasing any resources that might be held
open.
|
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 AWSFreeTierClientBuilder builder()
public GetFreeTierUsageResult getFreeTierUsage(GetFreeTierUsageRequest request)
Returns a list of all Free Tier usage objects that match your filters.
getFreeTierUsage
in interface AWSFreeTier
getFreeTierUsageRequest
- InternalServerException
- An unexpected error occurred during the processing of your request.ValidationException
- The input fails to satisfy the constraints specified by an Amazon Web Service.ThrottlingException
- The request was denied due to request throttling.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 AWSFreeTier
request
- The originally executed requestpublic void shutdown()
AmazonWebServiceClient
shutdown
in interface AWSFreeTier
shutdown
in class AmazonWebServiceClient