{
  "version": "2.0",
  "metadata": {
    "apiVersion": "2016-01-14",
    "endpointPrefix": "metering.marketplace",
    "jsonVersion": "1.1",
    "protocol": "json",
    "serviceFullName": "AWSMarketplace Metering",
    "signatureVersion": "v4",
    "signingName": "aws-marketplace",
    "targetPrefix": "AWSMPMeteringService"
  },
  "operations": {
    "BatchMeterUsage": {
      "input": {
        "type": "structure",
        "required": [
          "UsageRecords",
          "ProductCode"
        ],
        "members": {
          "UsageRecords": {
            "shape": "S2"
          },
          "ProductCode": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "Results": {
            "type": "list",
            "member": {
              "type": "structure",
              "members": {
                "UsageRecord": {
                  "shape": "S3"
                },
                "MeteringRecordId": {},
                "Status": {}
              }
            }
          },
          "UnprocessedRecords": {
            "shape": "S2"
          }
        }
      }
    },
    "MeterUsage": {
      "input": {
        "type": "structure",
        "required": [
          "ProductCode",
          "Timestamp",
          "UsageDimension",
          "UsageQuantity",
          "DryRun"
        ],
        "members": {
          "ProductCode": {},
          "Timestamp": {
            "type": "timestamp"
          },
          "UsageDimension": {},
          "UsageQuantity": {
            "type": "integer"
          },
          "DryRun": {
            "type": "boolean"
          }
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "MeteringRecordId": {}
        }
      }
    },
    "ResolveCustomer": {
      "input": {
        "type": "structure",
        "required": [
          "RegistrationToken"
        ],
        "members": {
          "RegistrationToken": {}
        }
      },
      "output": {
        "type": "structure",
        "members": {
          "CustomerIdentifier": {},
          "ProductCode": {}
        }
      }
    }
  },
  "shapes": {
    "S2": {
      "type": "list",
      "member": {
        "shape": "S3"
      }
    },
    "S3": {
      "type": "structure",
      "required": [
        "Timestamp",
        "CustomerIdentifier",
        "Dimension",
        "Quantity"
      ],
      "members": {
        "Timestamp": {
          "type": "timestamp"
        },
        "CustomerIdentifier": {},
        "Dimension": {},
        "Quantity": {
          "type": "integer"
        }
      }
    }
  }
}