

# OneTimePrice

A one-time price for an app: a usage pack a buyer can purchase once to credit a metric.

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

 ** appId **   <a name="appmonetization-Type-OneTimePrice-appId"></a>
The ID of the app the one-time price belongs to.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `[A-Za-z0-9_-]+`   
Required: Yes

 ** definition **   <a name="appmonetization-Type-OneTimePrice-definition"></a>
The definition of the one-time price, including its display name, price, metric, and credited capacity.  
Type: [OneTimePriceDefinition](API_OneTimePriceDefinition.md) object  
Required: Yes

 ** oneTimePriceId **   <a name="appmonetization-Type-OneTimePrice-oneTimePriceId"></a>
The service-assigned ID of the one-time price.  
Type: String  
Length Constraints: Minimum length of 1. Maximum length of 64.  
Pattern: `[A-Za-z0-9_-]+`   
Required: Yes

 ** arn **   <a name="appmonetization-Type-OneTimePrice-arn"></a>
The Amazon Resource Name (ARN) of the one-time price.  
Type: String  
Length Constraints: Minimum length of 20. Maximum length of 2048.  
Pattern: `arn:(aws|aws-cn|aws-us-gov):.+:.+:.+:.+`   
Required: No

 ** stage **   <a name="appmonetization-Type-OneTimePrice-stage"></a>
The offering stage the one-time price was read from.  
Type: String  
Valid Values: `DRAFT | PUBLISHED`   
Required: No

## See Also
<a name="API_OneTimePrice_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/OneTimePrice) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/appmonetization-2022-07-26/OneTimePrice) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/appmonetization-2022-07-26/OneTimePrice) 