@@ -482,6 +482,20 @@ export interface Subscriber {
482
482
Status ?: SubscriberStatus ;
483
483
}
484
484
485
+ /**
486
+ * @public
487
+ * @enum
488
+ */
489
+ export const ApproximationDimension = {
490
+ RESOURCE : "RESOURCE" ,
491
+ SERVICE : "SERVICE" ,
492
+ } as const ;
493
+
494
+ /**
495
+ * @public
496
+ */
497
+ export type ApproximationDimension = ( typeof ApproximationDimension ) [ keyof typeof ApproximationDimension ] ;
498
+
485
499
/**
486
500
* @public
487
501
* <p>The tag structure that contains a tag key and value. </p>
@@ -1129,28 +1143,6 @@ export interface GetAnomalySubscriptionsRequest {
1129
1143
MaxResults ?: number ;
1130
1144
}
1131
1145
1132
- /**
1133
- * @public
1134
- * <p>The requested report expired. Update the date interval and try again.</p>
1135
- */
1136
- export class BillExpirationException extends __BaseException {
1137
- readonly name : "BillExpirationException" = "BillExpirationException" ;
1138
- readonly $fault : "client" = "client" ;
1139
- Message ?: string ;
1140
- /**
1141
- * @internal
1142
- */
1143
- constructor ( opts : __ExceptionOptionType < BillExpirationException , __BaseException > ) {
1144
- super ( {
1145
- name : "BillExpirationException" ,
1146
- $fault : "client" ,
1147
- ...opts ,
1148
- } ) ;
1149
- Object . setPrototypeOf ( this , BillExpirationException . prototype ) ;
1150
- this . Message = opts . Message ;
1151
- }
1152
- }
1153
-
1154
1146
/**
1155
1147
* @public
1156
1148
* <p>The requested data is unavailable.</p>
@@ -1188,38 +1180,30 @@ export const Granularity = {
1188
1180
*/
1189
1181
export type Granularity = ( typeof Granularity ) [ keyof typeof Granularity ] ;
1190
1182
1191
- /**
1192
- * @public
1193
- * @enum
1194
- */
1195
- export const GroupDefinitionType = {
1196
- COST_CATEGORY : "COST_CATEGORY" ,
1197
- DIMENSION : "DIMENSION" ,
1198
- TAG : "TAG" ,
1199
- } as const ;
1200
-
1201
1183
/**
1202
1184
* @public
1203
1185
*/
1204
- export type GroupDefinitionType = ( typeof GroupDefinitionType ) [ keyof typeof GroupDefinitionType ] ;
1186
+ export interface GetApproximateUsageRecordsRequest {
1187
+ /**
1188
+ * @public
1189
+ * <p>How granular you want the data to be. You can enable data at hourly or daily
1190
+ * granularity.</p>
1191
+ */
1192
+ Granularity : Granularity | undefined ;
1205
1193
1206
- /**
1207
- * @public
1208
- * <p>Represents a group when you specify a group by criteria or in the response to a query
1209
- * with a specific grouping.</p>
1210
- */
1211
- export interface GroupDefinition {
1212
1194
/**
1213
1195
* @public
1214
- * <p>The string that represents the type of group.</p>
1196
+ * <p>The service metadata for the service or services you want to query. If not specified, all
1197
+ * elements are returned.</p>
1215
1198
*/
1216
- Type ?: GroupDefinitionType ;
1199
+ Services ?: string [ ] ;
1217
1200
1218
1201
/**
1219
1202
* @public
1220
- * <p>The string that represents a key for a specified group.</p>
1203
+ * <p>The service to evaluate for the usage records. You can choose resource-level data at daily
1204
+ * granularity, or hourly granularity with or without resource-level data.</p>
1221
1205
*/
1222
- Key ?: string ;
1206
+ ApproximationDimension : ApproximationDimension | undefined ;
1223
1207
}
1224
1208
1225
1209
/**
@@ -1245,6 +1229,85 @@ export interface DateInterval {
1245
1229
End : string | undefined ;
1246
1230
}
1247
1231
1232
+ /**
1233
+ * @public
1234
+ */
1235
+ export interface GetApproximateUsageRecordsResponse {
1236
+ /**
1237
+ * @public
1238
+ * <p>The service metadata for the service or services in the response.</p>
1239
+ */
1240
+ Services ?: Record < string , number > ;
1241
+
1242
+ /**
1243
+ * @public
1244
+ * <p>The total number of usage records for all services in the services list.</p>
1245
+ */
1246
+ TotalRecords ?: number ;
1247
+
1248
+ /**
1249
+ * @public
1250
+ * <p>The lookback period that's used for the estimation.</p>
1251
+ */
1252
+ LookbackPeriod ?: DateInterval ;
1253
+ }
1254
+
1255
+ /**
1256
+ * @public
1257
+ * <p>The requested report expired. Update the date interval and try again.</p>
1258
+ */
1259
+ export class BillExpirationException extends __BaseException {
1260
+ readonly name : "BillExpirationException" = "BillExpirationException" ;
1261
+ readonly $fault : "client" = "client" ;
1262
+ Message ?: string ;
1263
+ /**
1264
+ * @internal
1265
+ */
1266
+ constructor ( opts : __ExceptionOptionType < BillExpirationException , __BaseException > ) {
1267
+ super ( {
1268
+ name : "BillExpirationException" ,
1269
+ $fault : "client" ,
1270
+ ...opts ,
1271
+ } ) ;
1272
+ Object . setPrototypeOf ( this , BillExpirationException . prototype ) ;
1273
+ this . Message = opts . Message ;
1274
+ }
1275
+ }
1276
+
1277
+ /**
1278
+ * @public
1279
+ * @enum
1280
+ */
1281
+ export const GroupDefinitionType = {
1282
+ COST_CATEGORY : "COST_CATEGORY" ,
1283
+ DIMENSION : "DIMENSION" ,
1284
+ TAG : "TAG" ,
1285
+ } as const ;
1286
+
1287
+ /**
1288
+ * @public
1289
+ */
1290
+ export type GroupDefinitionType = ( typeof GroupDefinitionType ) [ keyof typeof GroupDefinitionType ] ;
1291
+
1292
+ /**
1293
+ * @public
1294
+ * <p>Represents a group when you specify a group by criteria or in the response to a query
1295
+ * with a specific grouping.</p>
1296
+ */
1297
+ export interface GroupDefinition {
1298
+ /**
1299
+ * @public
1300
+ * <p>The string that represents the type of group.</p>
1301
+ */
1302
+ Type ?: GroupDefinitionType ;
1303
+
1304
+ /**
1305
+ * @public
1306
+ * <p>The string that represents a key for a specified group.</p>
1307
+ */
1308
+ Key ?: string ;
1309
+ }
1310
+
1248
1311
/**
1249
1312
* @public
1250
1313
* <p>The metadata of a specific type that you can use to filter and group your results. You
0 commit comments