interface CostAndUsageQueryProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.BCM.CfnDashboardPropsMixin.CostAndUsageQueryProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsbcm#CfnDashboardPropsMixin_CostAndUsageQueryProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.bcm.CfnDashboardPropsMixin.CostAndUsageQueryProperty |
Python | aws_cdk.cfn_property_mixins.aws_bcm.CfnDashboardPropsMixin.CostAndUsageQueryProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_bcm » CfnDashboardPropsMixin » CostAndUsageQueryProperty |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bcm as bcm } from '@aws-cdk/cfn-property-mixins';
declare const costAndUsageExpressionProperty_: bcm.CfnDashboardPropsMixin.CostAndUsageExpressionProperty;
const costAndUsageQueryProperty: bcm.CfnDashboardPropsMixin.CostAndUsageQueryProperty = {
filter: {
and: [costAndUsageExpressionProperty_],
costCategories: {
key: 'key',
matchOptions: ['matchOptions'],
values: ['values'],
},
dimensions: {
key: 'key',
matchOptions: ['matchOptions'],
values: ['values'],
},
not: costAndUsageExpressionProperty_,
or: [costAndUsageExpressionProperty_],
tags: {
key: 'key',
matchOptions: ['matchOptions'],
values: ['values'],
},
},
granularity: 'granularity',
groupBy: [{
key: 'key',
type: 'type',
}],
metrics: ['metrics'],
timeRange: {
endTime: {
type: 'type',
value: 'value',
},
startTime: {
type: 'type',
value: 'value',
},
},
};
Properties
| Name | Type | Description |
|---|---|---|
| filter? | IResolvable | Cost | |
| granularity? | string | |
| group | IResolvable | (IResolvable | Group)[] | |
| metrics? | string[] | |
| time | IResolvable | Date |
filter?
Type:
IResolvable | Cost
(optional)
granularity?
Type:
string
(optional)
groupBy?
Type:
IResolvable | (IResolvable | Group)[]
(optional)
metrics?
Type:
string[]
(optional)
timeRange?
Type:
IResolvable | Date
(optional)

.NET
Go
Java
Python
TypeScript