C# Class Amazon.AWSMarketplaceMetering.AmazonAWSMarketplaceMeteringClient

Implementation for accessing AWSMarketplaceMetering AWS Marketplace Metering Service

This reference provides descriptions of the low-level AWS Marketplace Metering Service API.

AWS Marketplace sellers can use this API to submit usage data for custom usage dimensions.

Submitting Metering Records

  • MeterUsage- Submits the metering record for a Marketplace product.

Inheritance: AmazonServiceClient, IAmazonAWSMarketplaceMetering
ファイルを表示 Open project: aws/aws-sdk-net

Public Methods

Method Description
AmazonAWSMarketplaceMeteringClient ( ) : System

Constructs AmazonAWSMarketplaceMeteringClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration>

AmazonAWSMarketplaceMeteringClient ( AWSCredentials credentials ) : System

Constructs AmazonAWSMarketplaceMeteringClient with AWS Credentials

AmazonAWSMarketplaceMeteringClient ( AWSCredentials credentials, AmazonAWSMarketplaceMeteringConfig clientConfig ) : System

Constructs AmazonAWSMarketplaceMeteringClient with AWS Credentials and an AmazonAWSMarketplaceMeteringClient Configuration object.

AmazonAWSMarketplaceMeteringClient ( AWSCredentials credentials, RegionEndpoint region ) : System

Constructs AmazonAWSMarketplaceMeteringClient with AWS Credentials

AmazonAWSMarketplaceMeteringClient ( AmazonAWSMarketplaceMeteringConfig config ) : System

Constructs AmazonAWSMarketplaceMeteringClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration>

AmazonAWSMarketplaceMeteringClient ( RegionEndpoint region ) : System

Constructs AmazonAWSMarketplaceMeteringClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration>

AmazonAWSMarketplaceMeteringClient ( string awsAccessKeyId, string awsSecretAccessKey ) : System

Constructs AmazonAWSMarketplaceMeteringClient with AWS Access Key ID and AWS Secret Key

AmazonAWSMarketplaceMeteringClient ( string awsAccessKeyId, string awsSecretAccessKey, AmazonAWSMarketplaceMeteringConfig clientConfig ) : System

Constructs AmazonAWSMarketplaceMeteringClient with AWS Access Key ID, AWS Secret Key and an AmazonAWSMarketplaceMeteringClient Configuration object.

AmazonAWSMarketplaceMeteringClient ( string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region ) : System

Constructs AmazonAWSMarketplaceMeteringClient with AWS Access Key ID and AWS Secret Key

AmazonAWSMarketplaceMeteringClient ( string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken ) : System

Constructs AmazonAWSMarketplaceMeteringClient with AWS Access Key ID and AWS Secret Key

AmazonAWSMarketplaceMeteringClient ( string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAWSMarketplaceMeteringConfig clientConfig ) : System

Constructs AmazonAWSMarketplaceMeteringClient with AWS Access Key ID, AWS Secret Key and an AmazonAWSMarketplaceMeteringClient Configuration object.

AmazonAWSMarketplaceMeteringClient ( string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region ) : System

Constructs AmazonAWSMarketplaceMeteringClient with AWS Access Key ID and AWS Secret Key

BatchMeterUsage ( BatchMeterUsageRequest request ) : BatchMeterUsageResponse

BatchMeterUsageAsync ( BatchMeterUsageRequest request, System cancellationToken = default(CancellationToken) ) : Task

Initiates the asynchronous execution of the BatchMeterUsage operation.

BeginBatchMeterUsage ( BatchMeterUsageRequest request, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the BatchMeterUsage operation.

BeginMeterUsage ( MeterUsageRequest request, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the MeterUsage operation.

BeginResolveCustomer ( ResolveCustomerRequest request, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the ResolveCustomer operation.

EndBatchMeterUsage ( IAsyncResult asyncResult ) : BatchMeterUsageResponse

Finishes the asynchronous execution of the BatchMeterUsage operation.

EndMeterUsage ( IAsyncResult asyncResult ) : MeterUsageResponse

Finishes the asynchronous execution of the MeterUsage operation.

EndResolveCustomer ( IAsyncResult asyncResult ) : ResolveCustomerResponse

Finishes the asynchronous execution of the ResolveCustomer operation.

MeterUsage ( MeterUsageRequest request ) : MeterUsageResponse

API to emit metering records. For identical requests, the API is idempotent. It simply returns the metering record ID.

MeterUsageAsync ( MeterUsageRequest request, System cancellationToken = default(CancellationToken) ) : Task

Initiates the asynchronous execution of the MeterUsage operation.

ResolveCustomer ( ResolveCustomerRequest request ) : ResolveCustomerResponse

ResolveCustomerAsync ( ResolveCustomerRequest request, System cancellationToken = default(CancellationToken) ) : Task

Initiates the asynchronous execution of the ResolveCustomer operation.

Protected Methods

Method Description
CreateSigner ( ) : AbstractAWSSigner

Creates the signer for the service.

Dispose ( bool disposing ) : void

Disposes the service client.

Method Details

AmazonAWSMarketplaceMeteringClient() public method

Constructs AmazonAWSMarketplaceMeteringClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration>
public AmazonAWSMarketplaceMeteringClient ( ) : System
return System

AmazonAWSMarketplaceMeteringClient() public method

Constructs AmazonAWSMarketplaceMeteringClient with AWS Credentials
public AmazonAWSMarketplaceMeteringClient ( AWSCredentials credentials ) : System
credentials Amazon.Runtime.AWSCredentials AWS Credentials
return System

AmazonAWSMarketplaceMeteringClient() public method

Constructs AmazonAWSMarketplaceMeteringClient with AWS Credentials and an AmazonAWSMarketplaceMeteringClient Configuration object.
public AmazonAWSMarketplaceMeteringClient ( AWSCredentials credentials, AmazonAWSMarketplaceMeteringConfig clientConfig ) : System
credentials Amazon.Runtime.AWSCredentials AWS Credentials
clientConfig AmazonAWSMarketplaceMeteringConfig The AmazonAWSMarketplaceMeteringClient Configuration Object
return System

AmazonAWSMarketplaceMeteringClient() public method

Constructs AmazonAWSMarketplaceMeteringClient with AWS Credentials
public AmazonAWSMarketplaceMeteringClient ( AWSCredentials credentials, RegionEndpoint region ) : System
credentials Amazon.Runtime.AWSCredentials AWS Credentials
region RegionEndpoint The region to connect.
return System

AmazonAWSMarketplaceMeteringClient() public method

Constructs AmazonAWSMarketplaceMeteringClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration>
public AmazonAWSMarketplaceMeteringClient ( AmazonAWSMarketplaceMeteringConfig config ) : System
config AmazonAWSMarketplaceMeteringConfig The AmazonAWSMarketplaceMeteringClient Configuration Object
return System

AmazonAWSMarketplaceMeteringClient() public method

Constructs AmazonAWSMarketplaceMeteringClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration>
public AmazonAWSMarketplaceMeteringClient ( RegionEndpoint region ) : System
region RegionEndpoint The region to connect.
return System

AmazonAWSMarketplaceMeteringClient() public method

Constructs AmazonAWSMarketplaceMeteringClient with AWS Access Key ID and AWS Secret Key
public AmazonAWSMarketplaceMeteringClient ( string awsAccessKeyId, string awsSecretAccessKey ) : System
awsAccessKeyId string AWS Access Key ID
awsSecretAccessKey string AWS Secret Access Key
return System

AmazonAWSMarketplaceMeteringClient() public method

Constructs AmazonAWSMarketplaceMeteringClient with AWS Access Key ID, AWS Secret Key and an AmazonAWSMarketplaceMeteringClient Configuration object.
public AmazonAWSMarketplaceMeteringClient ( string awsAccessKeyId, string awsSecretAccessKey, AmazonAWSMarketplaceMeteringConfig clientConfig ) : System
awsAccessKeyId string AWS Access Key ID
awsSecretAccessKey string AWS Secret Access Key
clientConfig AmazonAWSMarketplaceMeteringConfig The AmazonAWSMarketplaceMeteringClient Configuration Object
return System

AmazonAWSMarketplaceMeteringClient() public method

Constructs AmazonAWSMarketplaceMeteringClient with AWS Access Key ID and AWS Secret Key
public AmazonAWSMarketplaceMeteringClient ( string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region ) : System
awsAccessKeyId string AWS Access Key ID
awsSecretAccessKey string AWS Secret Access Key
region RegionEndpoint The region to connect.
return System

AmazonAWSMarketplaceMeteringClient() public method

Constructs AmazonAWSMarketplaceMeteringClient with AWS Access Key ID and AWS Secret Key
public AmazonAWSMarketplaceMeteringClient ( string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken ) : System
awsAccessKeyId string AWS Access Key ID
awsSecretAccessKey string AWS Secret Access Key
awsSessionToken string AWS Session Token
return System

AmazonAWSMarketplaceMeteringClient() public method

Constructs AmazonAWSMarketplaceMeteringClient with AWS Access Key ID, AWS Secret Key and an AmazonAWSMarketplaceMeteringClient Configuration object.
public AmazonAWSMarketplaceMeteringClient ( string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAWSMarketplaceMeteringConfig clientConfig ) : System
awsAccessKeyId string AWS Access Key ID
awsSecretAccessKey string AWS Secret Access Key
awsSessionToken string AWS Session Token
clientConfig AmazonAWSMarketplaceMeteringConfig The AmazonAWSMarketplaceMeteringClient Configuration Object
return System

AmazonAWSMarketplaceMeteringClient() public method

Constructs AmazonAWSMarketplaceMeteringClient with AWS Access Key ID and AWS Secret Key
public AmazonAWSMarketplaceMeteringClient ( string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region ) : System
awsAccessKeyId string AWS Access Key ID
awsSecretAccessKey string AWS Secret Access Key
awsSessionToken string AWS Session Token
region RegionEndpoint The region to connect.
return System

BatchMeterUsage() public method

/// An internal error has occurred. Retry your request. If the problem persists, post /// a message with details on the AWS forums. /// /// /// /// The product code passed does not match the product code used for publishing the product. /// /// The usage dimension does not match one of the UsageDimensions associated with products. /// /// The calls to the MeterUsage API are throttled. /// /// The timestamp value passed in the meterUsage() is out of allowed range. ///
public BatchMeterUsage ( BatchMeterUsageRequest request ) : BatchMeterUsageResponse
request Amazon.AWSMarketplaceMetering.Model.BatchMeterUsageRequest Container for the necessary parameters to execute the BatchMeterUsage service method.
return Amazon.AWSMarketplaceMetering.Model.BatchMeterUsageResponse

BatchMeterUsageAsync() public method

Initiates the asynchronous execution of the BatchMeterUsage operation.
public BatchMeterUsageAsync ( BatchMeterUsageRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.AWSMarketplaceMetering.Model.BatchMeterUsageRequest Container for the necessary parameters to execute the BatchMeterUsage operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task

BeginBatchMeterUsage() public method

Initiates the asynchronous execution of the BatchMeterUsage operation.
public BeginBatchMeterUsage ( BatchMeterUsageRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.AWSMarketplaceMetering.Model.BatchMeterUsageRequest Container for the necessary parameters to execute the BatchMeterUsage operation on AmazonAWSMarketplaceMeteringClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
return IAsyncResult

BeginMeterUsage() public method

Initiates the asynchronous execution of the MeterUsage operation.
public BeginMeterUsage ( MeterUsageRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.AWSMarketplaceMetering.Model.MeterUsageRequest Container for the necessary parameters to execute the MeterUsage operation on AmazonAWSMarketplaceMeteringClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
return IAsyncResult

BeginResolveCustomer() public method

Initiates the asynchronous execution of the ResolveCustomer operation.
public BeginResolveCustomer ( ResolveCustomerRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.AWSMarketplaceMetering.Model.ResolveCustomerRequest Container for the necessary parameters to execute the ResolveCustomer operation on AmazonAWSMarketplaceMeteringClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
return IAsyncResult

CreateSigner() protected method

Creates the signer for the service.
protected CreateSigner ( ) : AbstractAWSSigner
return Amazon.Runtime.Internal.Auth.AbstractAWSSigner

Dispose() protected method

Disposes the service client.
protected Dispose ( bool disposing ) : void
disposing bool
return void

EndBatchMeterUsage() public method

Finishes the asynchronous execution of the BatchMeterUsage operation.
public EndBatchMeterUsage ( IAsyncResult asyncResult ) : BatchMeterUsageResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginBatchMeterUsage.
return Amazon.AWSMarketplaceMetering.Model.BatchMeterUsageResponse

EndMeterUsage() public method

Finishes the asynchronous execution of the MeterUsage operation.
public EndMeterUsage ( IAsyncResult asyncResult ) : MeterUsageResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginMeterUsage.
return Amazon.AWSMarketplaceMetering.Model.MeterUsageResponse

EndResolveCustomer() public method

Finishes the asynchronous execution of the ResolveCustomer operation.
public EndResolveCustomer ( IAsyncResult asyncResult ) : ResolveCustomerResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginResolveCustomer.
return Amazon.AWSMarketplaceMetering.Model.ResolveCustomerResponse

MeterUsage() public method

API to emit metering records. For identical requests, the API is idempotent. It simply returns the metering record ID.
/// A metering record has already been emitted by the same EC2 instance for the given /// {usageDimension, timestamp} with a different usageQuantity. /// /// An internal error has occurred. Retry your request. If the problem persists, post /// a message with details on the AWS forums. /// /// The endpoint being called is in a region different from your EC2 instance. The region /// of the Metering service endpoint and the region of the EC2 instance must match. /// /// The product code passed does not match the product code used for publishing the product. /// /// The usage dimension does not match one of the UsageDimensions associated with products. /// /// The calls to the MeterUsage API are throttled. /// /// The timestamp value passed in the meterUsage() is out of allowed range. ///
public MeterUsage ( MeterUsageRequest request ) : MeterUsageResponse
request Amazon.AWSMarketplaceMetering.Model.MeterUsageRequest Container for the necessary parameters to execute the MeterUsage service method.
return Amazon.AWSMarketplaceMetering.Model.MeterUsageResponse

MeterUsageAsync() public method

Initiates the asynchronous execution of the MeterUsage operation.
public MeterUsageAsync ( MeterUsageRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.AWSMarketplaceMetering.Model.MeterUsageRequest Container for the necessary parameters to execute the MeterUsage operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task

ResolveCustomer() public method

/// /// /// An internal error has occurred. Retry your request. If the problem persists, post /// a message with details on the AWS forums. /// /// /// /// The calls to the MeterUsage API are throttled. ///
public ResolveCustomer ( ResolveCustomerRequest request ) : ResolveCustomerResponse
request Amazon.AWSMarketplaceMetering.Model.ResolveCustomerRequest Container for the necessary parameters to execute the ResolveCustomer service method.
return Amazon.AWSMarketplaceMetering.Model.ResolveCustomerResponse

ResolveCustomerAsync() public method

Initiates the asynchronous execution of the ResolveCustomer operation.
public ResolveCustomerAsync ( ResolveCustomerRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.AWSMarketplaceMetering.Model.ResolveCustomerRequest Container for the necessary parameters to execute the ResolveCustomer operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task