AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the MeterUsage operation. API to emit metering records. For identical requests, the API is idempotent and returns the metering record ID. This is used for metering flexible consumption pricing (FCP) Amazon Machine Images (AMI) and container products.

MeterUsage is authenticated on the buyer's Amazon Web Services account using credentials from the Amazon EC2 instance, Amazon ECS task, or Amazon EKS pod.

MeterUsage can optionally include multiple usage allocations, to provide customers with usage data split into buckets by tags that you define (or allow the customer to define).

Usage records are expected to be submitted as quickly as possible after the event that is being recorded, and are not accepted more than 6 hours after the event.

For Amazon Web Services Regions that support MeterUsage, see MeterUsage Region support for Amazon EC2 and MeterUsage Region support for Amazon ECS and Amazon EKS.

Inheritance Hierarchy

System.Object
  Amazon.Runtime.AmazonWebServiceRequest
    Amazon.AWSMarketplaceMetering.AmazonAWSMarketplaceMeteringRequest
      Amazon.AWSMarketplaceMetering.Model.MeterUsageRequest

Namespace: Amazon.AWSMarketplaceMetering.Model
Assembly: AWSSDK.AWSMarketplaceMetering.dll
Version: 3.x.y.z

Syntax

C#
public class MeterUsageRequest : AmazonAWSMarketplaceMeteringRequest
         IAmazonWebServiceRequest

The MeterUsageRequest type exposes the following members

Constructors

NameDescription
Public Method MeterUsageRequest()

Properties

NameTypeDescription
Public Property DryRun System.Boolean

Gets and sets the property DryRun.

Checks whether you have the permissions required for the action, but does not make the request. If you have the permissions, the request returns DryRunOperation; otherwise, it returns UnauthorizedException. Defaults to false if not specified.

Public Property ProductCode System.String

Gets and sets the property ProductCode.

Product code is used to uniquely identify a product in Amazon Web Services Marketplace. The product code should be the same as the one used during the publishing of a new product.

Public Property Timestamp System.DateTime

Gets and sets the property Timestamp.

Timestamp, in UTC, for which the usage is being reported. Your application can meter usage for up to six hours in the past. Make sure the timestamp value is not before the start of the software usage.

Public Property UsageAllocations System.Collections.Generic.List<Amazon.AWSMarketplaceMetering.Model.UsageAllocation>

Gets and sets the property UsageAllocations.

The set of UsageAllocations to submit.

The sum of all UsageAllocation quantities must equal the UsageQuantity of the MeterUsage request, and each UsageAllocation must have a unique set of tags (include no tags).

Public Property UsageDimension System.String

Gets and sets the property UsageDimension.

It will be one of the fcp dimension name provided during the publishing of the product.

Public Property UsageQuantity System.Int32

Gets and sets the property UsageQuantity.

Consumption value for the hour. Defaults to 0 if not specified.

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.5 and newer, 3.5