# InstanceFcaPolicyDocumentProperty

The FCA policy document for EC2 instance cost allocation.

- Source: Generated at build time

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const instanceFcaPolicyDocumentProperty: ec2.CfnFcaPolicy.InstanceFcaPolicyDocumentProperty = {
  dimensions: ['dimensions'],
  reportingGranularity: ['reportingGranularity'],

  // the properties below are optional
  cidrRangeSpecifications: {
    prefixes: [{
      cidrLabel: 'cidrLabel',
      cidrRange: 'cidrRange',
    }],
    prefixesType: 'prefixesType',
  },
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

instance_fca_policy_document_property = ec2.CfnFcaPolicy.InstanceFcaPolicyDocumentProperty(
    dimensions=["dimensions"],
    reporting_granularity=["reportingGranularity"],

    # the properties below are optional
    cidr_range_specifications=ec2.CfnFcaPolicy.CidrRangeSpecificationsProperty(
        prefixes=[ec2.CfnFcaPolicy.CidrMappingProperty(
            cidr_label="cidrLabel",
            cidr_range="cidrRange"
        )],
        prefixes_type="prefixesType"
    )
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;

InstanceFcaPolicyDocumentProperty instanceFcaPolicyDocumentProperty = InstanceFcaPolicyDocumentProperty.builder()
        .dimensions(List.of("dimensions"))
        .reportingGranularity(List.of("reportingGranularity"))

        // the properties below are optional
        .cidrRangeSpecifications(CidrRangeSpecificationsProperty.builder()
                .prefixes(List.of(CidrMappingProperty.builder()
                        .cidrLabel("cidrLabel")
                        .cidrRange("cidrRange")
                        .build()))
                .prefixesType("prefixesType")
                .build())
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;

var instanceFcaPolicyDocumentProperty = new InstanceFcaPolicyDocumentProperty {
    Dimensions = new [] { "dimensions" },
    ReportingGranularity = new [] { "reportingGranularity" },

    // the properties below are optional
    CidrRangeSpecifications = new CidrRangeSpecificationsProperty {
        Prefixes = new [] { new CidrMappingProperty {
            CidrLabel = "cidrLabel",
            CidrRange = "cidrRange"
        } },
        PrefixesType = "prefixesType"
    }
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

instanceFcaPolicyDocumentProperty := &InstanceFcaPolicyDocumentProperty{
	Dimensions: []*string{
		jsii.String("dimensions"),
	},
	ReportingGranularity: []*string{
		jsii.String("reportingGranularity"),
	},

	// the properties below are optional
	CidrRangeSpecifications: &CidrRangeSpecificationsProperty{
		Prefixes: []interface{}{
			&CidrMappingProperty{
				CidrLabel: jsii.String("cidrLabel"),
				CidrRange: jsii.String("cidrRange"),
			},
		},
		PrefixesType: jsii.String("prefixesType"),
	},
}
```

## Properties

- `cidrRangeSpecifications`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFcaPolicy.CidrRangeSpecificationsProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnFcaPolicy.CidrRangeSpecificationsProperty.html) — CIDR range specifications, used when the reporting granularity is 'cidr'.

- `dimensions`: string[] (required) — The cost dimensions to allocate.

- `reportingGranularity`: string[] (required) — The granularity at which costs are reported.

  Contains exactly one value.
