openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 17.8 kB
JSON
{"openapi":"3.0.0","info":{"version":"2017-01-06","x-release":"v4","title":"AWS Cost and Usage Report Service","description":"<p>The AWS Cost and Usage Report API enables you to programmatically create, query, and delete AWS Cost and Usage report definitions.</p> <p>AWS Cost and Usage reports track the monthly AWS costs and usage associated with your AWS account. The report contains line items for each unique combination of AWS product, usage type, and operation that your AWS account uses. You can configure the AWS Cost and Usage report to show only the data that you want, using the AWS Cost and Usage API.</p> <p>Service Endpoint</p> <p>The AWS Cost and Usage Report API provides the following endpoint:</p> <ul> <li> <p>cur.us-east-1.amazonaws.com</p> </li> </ul>","x-logo":{"url":"https://twitter.com/awscloud/profile_image?size=original","backgroundColor":"#FFFFFF"},"termsOfService":"https://aws.amazon.com/service-terms/","contact":{"name":"Mike Ralphson","email":"mike.ralphson@gmail.com","url":"https://github.com/mermade/aws2openapi","x-twitter":"PermittedSoc"},"license":{"name":"Apache 2.0 License","url":"http://www.apache.org/licenses/"},"x-providerName":"amazonaws.com","x-serviceName":"cur","x-aws-signingName":"cur","x-origin":[{"contentType":"application/json","url":"https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/cur-2017-01-06.normal.json","converter":{"url":"https://github.com/mermade/aws2openapi","version":"1.0.0"},"x-apisguru-driver":"external"}],"x-apiClientRegistration":{"url":"https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct"},"x-apisguru-categories":["cloud"],"x-preferred":true},"externalDocs":{"description":"Amazon Web Services documentation","url":"https://docs.aws.amazon.com/cur/"},"servers":[{"url":"http://cur.{region}.amazonaws.com","variables":{"region":{"description":"The AWS region","enum":["us-east-1","us-east-2","us-west-1","us-west-2","us-gov-west-1","us-gov-east-1","ca-central-1","eu-north-1","eu-west-1","eu-west-2","eu-west-3","eu-central-1","eu-south-1","af-south-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-southeast-1","ap-southeast-2","ap-east-1","ap-south-1","sa-east-1","me-south-1"],"default":"us-east-1"}},"description":"The AWS Cost and Usage Report Service multi-region endpoint"},{"url":"https://cur.{region}.amazonaws.com","variables":{"region":{"description":"The AWS region","enum":["us-east-1","us-east-2","us-west-1","us-west-2","us-gov-west-1","us-gov-east-1","ca-central-1","eu-north-1","eu-west-1","eu-west-2","eu-west-3","eu-central-1","eu-south-1","af-south-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-southeast-1","ap-southeast-2","ap-east-1","ap-south-1","sa-east-1","me-south-1"],"default":"us-east-1"}},"description":"The AWS Cost and Usage Report Service multi-region endpoint"},{"url":"http://cur.{region}.amazonaws.com.cn","variables":{"region":{"description":"The AWS region","enum":["cn-north-1","cn-northwest-1"],"default":"cn-north-1"}},"description":"The AWS Cost and Usage Report Service endpoint for China (Beijing) and China (Ningxia)"},{"url":"https://cur.{region}.amazonaws.com.cn","variables":{"region":{"description":"The AWS region","enum":["cn-north-1","cn-northwest-1"],"default":"cn-north-1"}},"description":"The AWS Cost and Usage Report Service endpoint for China (Beijing) and China (Ningxia)"}],"x-hasEquivalentPaths":true,"paths":{"/#X-Amz-Target=AWSOrigamiServiceGatewayService.DeleteReportDefinition":{"post":{"operationId":"DeleteReportDefinition","description":"Deletes the specified report.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteReportDefinitionResponse"}}}},"480":{"description":"InternalErrorException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorException"}}}},"481":{"description":"ValidationException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationException"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteReportDefinitionRequest"}}}},"parameters":[{"name":"X-Amz-Target","in":"header","required":true,"schema":{"type":"string","enum":["AWSOrigamiServiceGatewayService.DeleteReportDefinition"]}}]},"parameters":[{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]},"/#X-Amz-Target=AWSOrigamiServiceGatewayService.DescribeReportDefinitions":{"post":{"operationId":"DescribeReportDefinitions","description":"Lists the AWS Cost and Usage reports available to this account.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DescribeReportDefinitionsResponse"}}}},"480":{"description":"InternalErrorException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorException"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DescribeReportDefinitionsRequest"}}}},"parameters":[{"name":"MaxResults","in":"query","schema":{"type":"string"},"description":"Pagination limit","required":false},{"name":"NextToken","in":"query","schema":{"type":"string"},"description":"Pagination token","required":false},{"name":"X-Amz-Target","in":"header","required":true,"schema":{"type":"string","enum":["AWSOrigamiServiceGatewayService.DescribeReportDefinitions"]}}]},"parameters":[{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]},"/#X-Amz-Target=AWSOrigamiServiceGatewayService.ModifyReportDefinition":{"post":{"operationId":"ModifyReportDefinition","description":"Allows you to programatically update your report preferences.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModifyReportDefinitionResponse"}}}},"480":{"description":"InternalErrorException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorException"}}}},"481":{"description":"ValidationException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationException"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ModifyReportDefinitionRequest"}}}},"parameters":[{"name":"X-Amz-Target","in":"header","required":true,"schema":{"type":"string","enum":["AWSOrigamiServiceGatewayService.ModifyReportDefinition"]}}]},"parameters":[{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]},"/#X-Amz-Target=AWSOrigamiServiceGatewayService.PutReportDefinition":{"post":{"operationId":"PutReportDefinition","description":"Creates a new report using the description that you provide.","responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutReportDefinitionResponse"}}}},"480":{"description":"DuplicateReportNameException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DuplicateReportNameException"}}}},"481":{"description":"ReportLimitReachedException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportLimitReachedException"}}}},"482":{"description":"InternalErrorException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InternalErrorException"}}}},"483":{"description":"ValidationException","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ValidationException"}}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PutReportDefinitionRequest"}}}},"parameters":[{"name":"X-Amz-Target","in":"header","required":true,"schema":{"type":"string","enum":["AWSOrigamiServiceGatewayService.PutReportDefinition"]}}]},"parameters":[{"$ref":"#/components/parameters/X-Amz-Content-Sha256"},{"$ref":"#/components/parameters/X-Amz-Date"},{"$ref":"#/components/parameters/X-Amz-Algorithm"},{"$ref":"#/components/parameters/X-Amz-Credential"},{"$ref":"#/components/parameters/X-Amz-Security-Token"},{"$ref":"#/components/parameters/X-Amz-Signature"},{"$ref":"#/components/parameters/X-Amz-SignedHeaders"}]}},"components":{"parameters":{"X-Amz-Content-Sha256":{"name":"X-Amz-Content-Sha256","in":"header","schema":{"type":"string"},"required":false},"X-Amz-Date":{"name":"X-Amz-Date","in":"header","schema":{"type":"string"},"required":false},"X-Amz-Algorithm":{"name":"X-Amz-Algorithm","in":"header","schema":{"type":"string"},"required":false},"X-Amz-Credential":{"name":"X-Amz-Credential","in":"header","schema":{"type":"string"},"required":false},"X-Amz-Security-Token":{"name":"X-Amz-Security-Token","in":"header","schema":{"type":"string"},"required":false},"X-Amz-Signature":{"name":"X-Amz-Signature","in":"header","schema":{"type":"string"},"required":false},"X-Amz-SignedHeaders":{"name":"X-Amz-SignedHeaders","in":"header","schema":{"type":"string"},"required":false}},"securitySchemes":{"hmac":{"type":"apiKey","name":"Authorization","in":"header","description":"Amazon Signature authorization v4","x-amazon-apigateway-authtype":"awsSigv4"}},"schemas":{"DeleteReportDefinitionResponse":{"type":"object","properties":{"ResponseMessage":{"$ref":"#/components/schemas/DeleteResponseMessage"}},"description":"If the action is successful, the service sends back an HTTP 200 response."},"DeleteReportDefinitionRequest":{"type":"object","title":"DeleteReportDefinitionRequest","properties":{"ReportName":{"allOf":[{"$ref":"#/components/schemas/ReportName"},{"description":"The name of the report that you want to delete. The name must be unique, is case sensitive, and can't include spaces."}]}},"description":"Deletes the specified report."},"InternalErrorException":{},"ValidationException":{},"DescribeReportDefinitionsResponse":{"type":"object","example":{"ReportDefinitions":[{"AdditionalArtifacts":["QUICKSIGHT"],"AdditionalSchemaElements":["RESOURCES"],"Compression":"GZIP","Format":"textORcsv","ReportName":"ExampleReport","S3Bucket":"example-s3-bucket","S3Prefix":"exampleprefix","S3Region":"us-east-1","TimeUnit":"HOURLY"},{"AdditionalArtifacts":["QUICKSIGHT"],"AdditionalSchemaElements":["RESOURCES"],"Compression":"GZIP","Format":"textORcsv","ReportName":"ExampleReport2","S3Bucket":"example-s3-bucket","S3Prefix":"exampleprefix","S3Region":"us-east-1","TimeUnit":"HOURLY"}]},"properties":{"ReportDefinitions":{"allOf":[{"$ref":"#/components/schemas/ReportDefinitionList"},{"description":"A list of AWS Cost and Usage reports owned by the account."}]},"NextToken":{"$ref":"#/components/schemas/GenericString"}},"description":"If the action is successful, the service sends back an HTTP 200 response."},"DescribeReportDefinitionsRequest":{"type":"object","title":"DescribeReportDefinitionsRequest","properties":{"MaxResults":{"$ref":"#/components/schemas/MaxResults"},"NextToken":{"$ref":"#/components/schemas/GenericString"}},"description":"Requests a list of AWS Cost and Usage reports owned by the account."},"ModifyReportDefinitionResponse":{"type":"object","properties":{}},"ModifyReportDefinitionRequest":{"type":"object","required":["ReportName","ReportDefinition"],"title":"ModifyReportDefinitionRequest","properties":{"ReportName":{"$ref":"#/components/schemas/ReportName"},"ReportDefinition":{"$ref":"#/components/schemas/ReportDefinition"}}},"PutReportDefinitionResponse":{"type":"object","properties":{},"description":"If the action is successful, the service sends back an HTTP 200 response with an empty HTTP body."},"PutReportDefinitionRequest":{"type":"object","required":["ReportDefinition"],"title":"PutReportDefinitionRequest","properties":{"ReportDefinition":{"allOf":[{"$ref":"#/components/schemas/ReportDefinition"},{"description":"Represents the output of the PutReportDefinition operation. The content consists of the detailed metadata and data file information. "}]}},"description":"Creates a Cost and Usage Report."},"DuplicateReportNameException":{},"ReportLimitReachedException":{},"AWSRegion":{"type":"string","enum":["af-south-1","ap-east-1","ap-south-1","ap-south-2","ap-southeast-1","ap-southeast-2","ap-southeast-3","ap-northeast-1","ap-northeast-2","ap-northeast-3","ca-central-1","eu-central-1","eu-central-2","eu-west-1","eu-west-2","eu-west-3","eu-north-1","eu-south-1","eu-south-2","me-central-1","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2","cn-north-1","cn-northwest-1"],"description":"The region of the S3 bucket that AWS delivers the report into."},"AdditionalArtifact":{"type":"string","enum":["REDSHIFT","QUICKSIGHT","ATHENA"],"description":"The types of manifest that you want AWS to create for this report."},"AdditionalArtifactList":{"type":"array","description":"A list of additional artifacts.","items":{"$ref":"#/components/schemas/AdditionalArtifact"}},"BillingViewArn":{"type":"string","pattern":"(arn:aws(-cn)?:billing::[0-9]{12}:billingview/)?[a-zA-Z0-9_\\+=\\.\\-@].{1,30}","maxLength":128},"CompressionFormat":{"type":"string","enum":["ZIP","GZIP","Parquet"],"description":"The compression format that AWS uses for the report."},"ReportName":{"type":"string","pattern":"[0-9A-Za-z!\\-_.*\\'()]+","description":"The name of the report that you want to create. The name must be unique, is case sensitive, and can't include spaces. ","maxLength":256},"DeleteResponseMessage":{"type":"string","description":"Whether the deletion was successful or not."},"MaxResults":{"type":"integer","description":"The maximum number of results that AWS returns for the operation.","minimum":5,"maximum":5},"GenericString":{"type":"string","pattern":"[A-Za-z0-9_\\.\\-=]*","description":"A generic string.","maxLength":256},"ReportDefinitionList":{"type":"array","description":"A list of report definitions.","items":{"$ref":"#/components/schemas/ReportDefinition"}},"ReportDefinition":{"type":"object","required":["ReportName","TimeUnit","Format","Compression","AdditionalSchemaElements","S3Bucket","S3Prefix","S3Region"],"properties":{"ReportName":{"$ref":"#/components/schemas/ReportName"},"TimeUnit":{"$ref":"#/components/schemas/TimeUnit"},"Format":{"$ref":"#/components/schemas/ReportFormat"},"Compression":{"$ref":"#/components/schemas/CompressionFormat"},"AdditionalSchemaElements":{"allOf":[{"$ref":"#/components/schemas/SchemaElementList"},{"description":"A list of strings that indicate additional content that Amazon Web Services includes in the report, such as individual resource IDs. "}]},"S3Bucket":{"$ref":"#/components/schemas/S3Bucket"},"S3Prefix":{"$ref":"#/components/schemas/S3Prefix"},"S3Region":{"$ref":"#/components/schemas/AWSRegion"},"AdditionalArtifacts":{"allOf":[{"$ref":"#/components/schemas/AdditionalArtifactList"},{"description":"A list of manifests that you want Amazon Web Services to create for this report."}]},"RefreshClosedReports":{"allOf":[{"$ref":"#/components/schemas/RefreshClosedReports"},{"description":"Whether you want Amazon Web Services to update your reports after they have been finalized if Amazon Web Services detects charges related to previous months. These charges can include refunds, credits, or support fees."}]},"ReportVersioning":{"allOf":[{"$ref":"#/components/schemas/ReportVersioning"},{"description":"Whether you want Amazon Web Services to overwrite the previous version of each report or to deliver the report in addition to the previous versions."}]},"BillingViewArn":{"allOf":[{"$ref":"#/components/schemas/BillingViewArn"},{"description":" The Amazon resource name of the billing view. You can get this value by using the billing view service public APIs. "}]}},"description":"The definition of AWS Cost and Usage Report. You can specify the report name, time unit, report format, compression format, S3 bucket, additional artifacts, and schema elements in the definition. "},"RefreshClosedReports":{"type":"boolean"},"TimeUnit":{"type":"string","enum":["HOURLY","DAILY","MONTHLY"],"description":"The length of time covered by the report. "},"ReportFormat":{"type":"string","enum":["textORcsv","Parquet"],"description":"The format that AWS saves the report in."},"SchemaElementList":{"type":"array","description":"A list of strings that indicate the content that is included in the report, such as service or usage type.","items":{"$ref":"#/components/schemas/SchemaElement"}},"S3Bucket":{"type":"string","pattern":"[A-Za-z0-9_\\.\\-]+","description":"The S3 bucket where AWS delivers the report.","maxLength":256},"S3Prefix":{"type":"string","pattern":"[0-9A-Za-z!\\-_.*\\'()/]*","description":"The prefix that AWS adds to the report name when AWS delivers the report. Your prefix can't include spaces.","maxLength":256},"ReportVersioning":{"type":"string","enum":["CREATE_NEW_REPORT","OVERWRITE_REPORT"]},"SchemaElement":{"type":"string","enum":["RESOURCES","SPLIT_COST_ALLOCATION_DATA"],"description":"Whether or not AWS includes resource IDs in the report. "}}},"security":[{"hmac":[]}]}