

# OneTimePriceDefinition

The definition of a one-time price, including its display name, price, and the metric capacity each purchase credits.

## Contents
<a name="API_OneTimePriceDefinition_Contents"></a>

 ** capacity **   <a name="appmonetization-Type-OneTimePriceDefinition-capacity"></a>
The units of metricId one purchase credits.  
Type: Long  
Valid Range: Minimum value of 0.  
Required: Yes

 ** metricId **   <a name="appmonetization-Type-OneTimePriceDefinition-metricId"></a>
The metric one purchase credits.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `[A-Za-z0-9_-]+`   
Required: Yes

 ** name **   <a name="appmonetization-Type-OneTimePriceDefinition-name"></a>
A human-readable display name for the one-time price.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 256.  
Required: Yes

 ** price **   <a name="appmonetization-Type-OneTimePriceDefinition-price"></a>
The amount and currency charged for one purchase of the one-time price.  
Type: [Price](API_Price.md) object  
Required: Yes

## See Also
<a name="API_OneTimePriceDefinition_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\+\+](https://docs.aws.amazon.com/goto/SdkForCpp/appmonetization-2022-07-26/OneTimePriceDefinition) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/appmonetization-2022-07-26/OneTimePriceDefinition) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/appmonetization-2022-07-26/OneTimePriceDefinition) 