cur.d.ts
  1  import {Request} from '../lib/request';
  2  import {Response} from '../lib/response';
  3  import {AWSError} from '../lib/error';
  4  import {Service} from '../lib/service';
  5  import {ServiceConfigurationOptions} from '../lib/service';
  6  import {ConfigBase as Config} from '../lib/config-base';
  7  interface Blob {}
  8  declare class CUR extends Service {
  9    /**
 10     * Constructs a service object. This object has one method for each API operation.
 11     */
 12    constructor(options?: CUR.Types.ClientConfiguration)
 13    config: Config & CUR.Types.ClientConfiguration;
 14    /**
 15     * Deletes the specified report.
 16     */
 17    deleteReportDefinition(params: CUR.Types.DeleteReportDefinitionRequest, callback?: (err: AWSError, data: CUR.Types.DeleteReportDefinitionResponse) => void): Request<CUR.Types.DeleteReportDefinitionResponse, AWSError>;
 18    /**
 19     * Deletes the specified report.
 20     */
 21    deleteReportDefinition(callback?: (err: AWSError, data: CUR.Types.DeleteReportDefinitionResponse) => void): Request<CUR.Types.DeleteReportDefinitionResponse, AWSError>;
 22    /**
 23     * Lists the AWS Cost and Usage reports available to this account.
 24     */
 25    describeReportDefinitions(params: CUR.Types.DescribeReportDefinitionsRequest, callback?: (err: AWSError, data: CUR.Types.DescribeReportDefinitionsResponse) => void): Request<CUR.Types.DescribeReportDefinitionsResponse, AWSError>;
 26    /**
 27     * Lists the AWS Cost and Usage reports available to this account.
 28     */
 29    describeReportDefinitions(callback?: (err: AWSError, data: CUR.Types.DescribeReportDefinitionsResponse) => void): Request<CUR.Types.DescribeReportDefinitionsResponse, AWSError>;
 30    /**
 31     * Allows you to programatically update your report preferences.
 32     */
 33    modifyReportDefinition(params: CUR.Types.ModifyReportDefinitionRequest, callback?: (err: AWSError, data: CUR.Types.ModifyReportDefinitionResponse) => void): Request<CUR.Types.ModifyReportDefinitionResponse, AWSError>;
 34    /**
 35     * Allows you to programatically update your report preferences.
 36     */
 37    modifyReportDefinition(callback?: (err: AWSError, data: CUR.Types.ModifyReportDefinitionResponse) => void): Request<CUR.Types.ModifyReportDefinitionResponse, AWSError>;
 38    /**
 39     * Creates a new report using the description that you provide.
 40     */
 41    putReportDefinition(params: CUR.Types.PutReportDefinitionRequest, callback?: (err: AWSError, data: CUR.Types.PutReportDefinitionResponse) => void): Request<CUR.Types.PutReportDefinitionResponse, AWSError>;
 42    /**
 43     * Creates a new report using the description that you provide.
 44     */
 45    putReportDefinition(callback?: (err: AWSError, data: CUR.Types.PutReportDefinitionResponse) => void): Request<CUR.Types.PutReportDefinitionResponse, AWSError>;
 46  }
 47  declare namespace CUR {
 48    export type AWSRegion = "af-south-1"|"ap-east-1"|"ap-south-1"|"ap-southeast-1"|"ap-southeast-2"|"ap-northeast-1"|"ap-northeast-2"|"ap-northeast-3"|"ca-central-1"|"eu-central-1"|"eu-west-1"|"eu-west-2"|"eu-west-3"|"eu-north-1"|"eu-south-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"|string;
 49    export type AdditionalArtifact = "REDSHIFT"|"QUICKSIGHT"|"ATHENA"|string;
 50    export type AdditionalArtifactList = AdditionalArtifact[];
 51    export type BillingViewArn = string;
 52    export type CompressionFormat = "ZIP"|"GZIP"|"Parquet"|string;
 53    export interface DeleteReportDefinitionRequest {
 54      /**
 55       * The name of the report that you want to delete. The name must be unique, is case sensitive, and can't include spaces.
 56       */
 57      ReportName?: ReportName;
 58    }
 59    export interface DeleteReportDefinitionResponse {
 60      ResponseMessage?: DeleteResponseMessage;
 61    }
 62    export type DeleteResponseMessage = string;
 63    export interface DescribeReportDefinitionsRequest {
 64      MaxResults?: MaxResults;
 65      NextToken?: GenericString;
 66    }
 67    export interface DescribeReportDefinitionsResponse {
 68      /**
 69       * A list of AWS Cost and Usage reports owned by the account.
 70       */
 71      ReportDefinitions?: ReportDefinitionList;
 72      NextToken?: GenericString;
 73    }
 74    export type GenericString = string;
 75    export type MaxResults = number;
 76    export interface ModifyReportDefinitionRequest {
 77      ReportName: ReportName;
 78      ReportDefinition: ReportDefinition;
 79    }
 80    export interface ModifyReportDefinitionResponse {
 81    }
 82    export interface PutReportDefinitionRequest {
 83      /**
 84       * Represents the output of the PutReportDefinition operation. The content consists of the detailed metadata and data file information. 
 85       */
 86      ReportDefinition: ReportDefinition;
 87    }
 88    export interface PutReportDefinitionResponse {
 89    }
 90    export type RefreshClosedReports = boolean;
 91    export interface ReportDefinition {
 92      ReportName: ReportName;
 93      TimeUnit: TimeUnit;
 94      Format: ReportFormat;
 95      Compression: CompressionFormat;
 96      /**
 97       * A list of strings that indicate additional content that Amazon Web Services includes in the report, such as individual resource IDs. 
 98       */
 99      AdditionalSchemaElements: SchemaElementList;
100      S3Bucket: S3Bucket;
101      S3Prefix: S3Prefix;
102      S3Region: AWSRegion;
103      /**
104       * A list of manifests that you want Amazon Web Services to create for this report.
105       */
106      AdditionalArtifacts?: AdditionalArtifactList;
107      /**
108       * 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.
109       */
110      RefreshClosedReports?: RefreshClosedReports;
111      /**
112       * 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.
113       */
114      ReportVersioning?: ReportVersioning;
115      /**
116       *  The Amazon resource name of the billing view. You can get this value by using the billing view service public APIs. 
117       */
118      BillingViewArn?: BillingViewArn;
119    }
120    export type ReportDefinitionList = ReportDefinition[];
121    export type ReportFormat = "textORcsv"|"Parquet"|string;
122    export type ReportName = string;
123    export type ReportVersioning = "CREATE_NEW_REPORT"|"OVERWRITE_REPORT"|string;
124    export type S3Bucket = string;
125    export type S3Prefix = string;
126    export type SchemaElement = "RESOURCES"|string;
127    export type SchemaElementList = SchemaElement[];
128    export type TimeUnit = "HOURLY"|"DAILY"|"MONTHLY"|string;
129    /**
130     * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
131     */
132    export type apiVersion = "2017-01-06"|"latest"|string;
133    export interface ClientApiVersions {
134      /**
135       * A string in YYYY-MM-DD format that represents the latest possible API version that can be used in this service. Specify 'latest' to use the latest possible version.
136       */
137      apiVersion?: apiVersion;
138    }
139    export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
140    /**
141     * Contains interfaces for use with the CUR client.
142     */
143    export import Types = CUR;
144  }
145  export = CUR;