Smaws_Client_FreeTier.Typestype nonrec values = value listThe input fails to satisfy the constraints specified by an Amazon Web Services service.
type nonrec upgrade_account_plan_response = {account_plan_status : account_plan_status;This indicates the latest state of the account plan within its lifecycle.
*)account_plan_type : account_plan_type;The type of plan for the account.
*)account_id : account_id;A unique identifier that identifies the account.
*)}type nonrec upgrade_account_plan_request = {account_plan_type : account_plan_type;The target account plan type. This makes it explicit about the change and latest value of the accountPlanType.
}The request was denied due to request throttling.
This exception is thrown when the requested resource cannot be found.
An unexpected error occurred during the processing of your request.
You don't have sufficient access to perform this action.
type nonrec monetary_amount = {unit_ : currency_code;The unit that the monetary amount is given in.
*)amount : generic_double;The aggregated monetary amount of credits earned.
*)}The monetary amount of the credit.
type nonrec match_options = match_option listtype nonrec activity_reward = | Credit of monetary_amountThe credits gained by activity rewards.
*)The summary of the rewards granted as a result of activities completed.
type nonrec activity_summary = {status : activity_status;The current status of the activity.
*)reward : activity_reward;The reward for the activity.
*)title : generic_string;The title of the activity.
*)activity_id : activity_id;A unique identifier that identifies the activity.
*)}The summary of activities.
type nonrec activities = activity_summary listtype nonrec list_account_activities_response = {next_token : next_page_token option;The token to include in another request to get the next page of items. This value is null when there are no more items to return.
activities : activities;A brief information about the activities.
*)}type nonrec filter_activity_statuses = activity_status listtype nonrec list_account_activities_request = {language_code : language_code option;The language code used to return translated titles.
*)max_results : max_results option;The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output.
*)next_token : next_page_token option;A token from a previous paginated response. If this is specified, the response includes records beginning from this token (inclusive), up to the number specified by maxResults.
filter_activity_statuses : filter_activity_statuses option;The activity status filter. This field can be used to filter the response by activities status.
*)}type nonrec free_tier_usage = {free_tier_type : generic_string option;Describes the type of the Free Tier offer. For example, the offer can be "12 Months Free", "Always Free", and "Free Trial".
description : generic_string option;The description of the Free Tier offer.
*)unit_ : generic_string option;Describes the unit of the usageType, such as Hrs.
limit : generic_double option;Describes the maximum usage allowed in Free Tier.
*)forecasted_usage_amount : generic_double option;Describes the forecasted usage by the month that you're expected to use.
*)actual_usage_amount : generic_double option;Describes the actual usage accrued month-to-day (MTD) that you've used so far.
*)region : generic_string option;Describes the Amazon Web Services Region for which this offer is applicable
*)usage_type : generic_string option;Describes the usage details of the offer. For example, this might be Global-BoxUsage:freetrial.
operation : generic_string option;Describes usageType more granularly with the specific Amazon Web Services service API operation. For example, this can be the RunInstances API operation for Amazon Elastic Compute Cloud.
service : generic_string option;The name of the Amazon Web Services service providing the Free Tier offer. For example, this can be Amazon Elastic Compute Cloud.
*)}Consists of a Amazon Web Services Free Tier offer’s metadata and your data usage for the offer.
type nonrec free_tier_usages = free_tier_usage listtype nonrec get_free_tier_usage_response = {next_token : next_page_token option;The pagination token that indicates the next set of results to retrieve.
*)free_tier_usages : free_tier_usages;The list of Free Tier usage objects that meet your filter expression.
*)}type nonrec dimension_values = {match_options : match_options;The match options that you can use to filter your results. You can specify only one of these values in the array.
*)values : values;The metadata values you can specify to filter upon, so that the results all match at least one of the specified values.
*)key : dimension;The name of the dimension that you want to filter on.
*)}Contains the specifications for the filters to use for your request.
type expression = {dimensions : dimension_values option;The specific dimension, values, and match type to filter objects with.
*)not : expression option;Return results that don’t match the Expression that you specified.
and_ : expressions option;Return results that match all Expressions that you specified in the array.
or : expressions option;Return results that match any of the Expressions that you specified. in the array.
}Use Expression to filter in the GetFreeTierUsage API operation.
You can use the following patterns:
Dimensions root operator)AND, NOT, and OR root operators).For simple dimension values, you can set the dimension name, values, and match type for the filters that you plan to use.
Example for simple dimension values
You can filter to match exactly for REGION==us-east-1 OR REGION==us-west-1.
The corresponding Expression appears like the following: { "Dimensions": { "Key": "REGION", "Values": [ "us-east-1", "us-west-1" ], "MatchOptions": ["EQUALS"] } }
As shown in the previous example, lists of dimension values are combined with OR when you apply the filter.
For complex expressions with logical operators, you can have nested expressions to use the logical operators and specify advanced filtering.
Example for complex expressions with logical operators
You can filter by ((REGION == us-east-1 OR REGION == us-west-1) OR (SERVICE CONTAINS AWSLambda)) AND (USAGE_TYPE !CONTAINS DataTransfer).
The corresponding Expression appears like the following: { "And": [ {"Or": [ {"Dimensions": { "Key": "REGION", "Values": [ "us-east-1", "us-west-1" ], "MatchOptions": ["EQUALS"] }}, {"Dimensions": { "Key": "SERVICE", "Values": ["AWSLambda"], "MatchOptions": ["CONTAINS"] } } ]}, {"Not": {"Dimensions": { "Key": "USAGE_TYPE", "Values": ["DataTransfer"], "MatchOptions": ["CONTAINS"] }}} ] }
In the following Contents, you must specify exactly one of the following root operators.
and expressions = expression listtype nonrec get_free_tier_usage_request = {next_token : next_page_token option;The pagination token that indicates the next set of results to retrieve.
*)max_results : max_results option;The maximum number of results to return in the response. MaxResults means that there can be up to the specified number of values, but there might be fewer results based on your filters.
filter : expression option;An expression that specifies the conditions that you want each FreeTierUsage object to meet.
}type nonrec get_account_plan_state_response = {account_plan_expiration_date : Smaws_Lib.Smithy_api.Types.timestamp option;The timestamp for when the current account plan expires.
*)account_plan_remaining_credits : monetary_amount option;The amount of credits remaining for the account.
*)account_plan_status : account_plan_status;The current status for the account plan.
*)account_plan_type : account_plan_type;The plan type for the account.
*)account_id : account_id;A unique identifier that identifies the account.
*)}type nonrec get_account_activity_response = {completed_at : Smaws_Lib.Smithy_api.Types.timestamp option;The timestamp when the activity is completed. This field appears only for activities in the COMPLETED state.
started_at : Smaws_Lib.Smithy_api.Types.timestamp option;The timestamp when the activity started. This field appears only for activities in the IN_PROGRESS or COMPLETED states.
expires_at : Smaws_Lib.Smithy_api.Types.timestamp option;The time by which the activity must be completed to receive a reward.
*)estimated_time_to_complete_in_minutes : Smaws_Lib.Smithy_api.Types.integer
option;The estimated time to complete the activity. This is the duration in minutes.
*)reward : activity_reward;A reward granted upon activity completion.
*)instructions_url : generic_string;The URL resource that provides guidance on activity requirements and completion.
*)status : activity_status;The current activity status.
*)description : generic_string;Provides detailed information about the activity and its expected outcomes.
*)title : generic_string;A short activity title.
*)activity_id : activity_id;A unique identifier that identifies the activity.
*)}type nonrec get_account_activity_request = {language_code : language_code option;The language code used to return translated title and description fields.
*)activity_id : activity_id;A unique identifier that identifies the activity.
*)}