// API to emit metering records. For identical requests, the API is idempotent. It
// simply returns the metering record ID. MeterUsage is authenticated on the
// buyer's AWS account using credentials from the EC2 instance, ECS task, or EKS
// pod.
API to emit metering records. For identical requests, the API is idempotent. It
simply returns the metering record ID. MeterUsage is authenticated on the
buyer's AWS account using credentials from the EC2 instance, ECS task, or EKS
pod.
// API to emit metering records . For identical requests the API is idempotent . It // simply returns the metering record ID . MeterUsage is authenticated on the // buyer ' s AWS account using credentials from the EC2 instance ECS task or EKS // pod .
func (c *Client) MeterUsage(ctx context.Context, params *MeterUsageInput, optFns ...func(*Options)) (*MeterUsageOutput, error) {
	if params == nil {
		params = &MeterUsageInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "MeterUsage", params, optFns, addOperationMeterUsageMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*MeterUsageOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) MeterUsage ( ctx context . Context , params * MeterUsageInput , optFns ... func ( * Options ) ) ( * MeterUsageOutput , error ) { if params == nil { params = & MeterUsageInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationMeterUsageMiddlewares ) if err != nil { return nil , err } out := result . ( * MeterUsageOutput ) out . ResultMetadata = metadata return out , nil }
API to emit metering records.
API to emit metering records .