C# Класс 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.

Наследование: AmazonServiceClient, IAmazonAWSMarketplaceMetering
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
CreateSigner ( ) : AbstractAWSSigner

Creates the signer for the service.

Dispose ( bool disposing ) : void

Disposes the service client.

Описание методов

AmazonAWSMarketplaceMeteringClient() публичный Метод

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
Результат System

AmazonAWSMarketplaceMeteringClient() публичный Метод

Constructs AmazonAWSMarketplaceMeteringClient with AWS Credentials
public AmazonAWSMarketplaceMeteringClient ( AWSCredentials credentials ) : System
credentials Amazon.Runtime.AWSCredentials AWS Credentials
Результат System

AmazonAWSMarketplaceMeteringClient() публичный Метод

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
Результат System

AmazonAWSMarketplaceMeteringClient() публичный Метод

Constructs AmazonAWSMarketplaceMeteringClient with AWS Credentials
public AmazonAWSMarketplaceMeteringClient ( AWSCredentials credentials, RegionEndpoint region ) : System
credentials Amazon.Runtime.AWSCredentials AWS Credentials
region RegionEndpoint The region to connect.
Результат System

AmazonAWSMarketplaceMeteringClient() публичный Метод

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
Результат System

AmazonAWSMarketplaceMeteringClient() публичный Метод

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.
Результат System

AmazonAWSMarketplaceMeteringClient() публичный Метод

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
Результат System

AmazonAWSMarketplaceMeteringClient() публичный Метод

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
Результат System

AmazonAWSMarketplaceMeteringClient() публичный Метод

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.
Результат System

AmazonAWSMarketplaceMeteringClient() публичный Метод

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
Результат System

AmazonAWSMarketplaceMeteringClient() публичный Метод

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
Результат System

AmazonAWSMarketplaceMeteringClient() публичный Метод

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.
Результат System

BatchMeterUsage() публичный Метод

/// 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.
Результат Amazon.AWSMarketplaceMetering.Model.BatchMeterUsageResponse

BatchMeterUsageAsync() публичный Метод

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. ///
Результат Task

BeginBatchMeterUsage() публичный Метод

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.
Результат IAsyncResult

BeginMeterUsage() публичный Метод

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.
Результат IAsyncResult

BeginResolveCustomer() публичный Метод

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.
Результат IAsyncResult

CreateSigner() защищенный Метод

Creates the signer for the service.
protected CreateSigner ( ) : AbstractAWSSigner
Результат Amazon.Runtime.Internal.Auth.AbstractAWSSigner

Dispose() защищенный Метод

Disposes the service client.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

EndBatchMeterUsage() публичный Метод

Finishes the asynchronous execution of the BatchMeterUsage operation.
public EndBatchMeterUsage ( IAsyncResult asyncResult ) : BatchMeterUsageResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginBatchMeterUsage.
Результат Amazon.AWSMarketplaceMetering.Model.BatchMeterUsageResponse

EndMeterUsage() публичный Метод

Finishes the asynchronous execution of the MeterUsage operation.
public EndMeterUsage ( IAsyncResult asyncResult ) : MeterUsageResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginMeterUsage.
Результат Amazon.AWSMarketplaceMetering.Model.MeterUsageResponse

EndResolveCustomer() публичный Метод

Finishes the asynchronous execution of the ResolveCustomer operation.
public EndResolveCustomer ( IAsyncResult asyncResult ) : ResolveCustomerResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginResolveCustomer.
Результат Amazon.AWSMarketplaceMetering.Model.ResolveCustomerResponse

MeterUsage() публичный Метод

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.
Результат Amazon.AWSMarketplaceMetering.Model.MeterUsageResponse

MeterUsageAsync() публичный Метод

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. ///
Результат Task

ResolveCustomer() публичный Метод

/// /// /// 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.
Результат Amazon.AWSMarketplaceMetering.Model.ResolveCustomerResponse

ResolveCustomerAsync() публичный Метод

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. ///
Результат Task