# CfnFcaPolicyProps

Properties for defining a `CfnFcaPolicy`.

Used as props by: [CfnFcaPolicy](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnFcaPolicy.html)

- 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 cfnFcaPolicyProps: ec2.CfnFcaPolicyProps = {
  networkResourceType: 'networkResourceType',

  // the properties below are optional
  description: 'description',
  instanceFcaPolicyDocument: {
    dimensions: ['dimensions'],
    reportingGranularity: ['reportingGranularity'],

    // the properties below are optional
    cidrRangeSpecifications: {
      prefixes: [{
        cidrLabel: 'cidrLabel',
        cidrRange: 'cidrRange',
      }],
      prefixesType: 'prefixesType',
    },
  },
  natFcaPolicyDocument: {
    dimensions: ['dimensions'],
    reportingGranularity: ['reportingGranularity'],

    // the properties below are optional
    cidrRangeSpecifications: {
      prefixes: [{
        cidrLabel: 'cidrLabel',
        cidrRange: 'cidrRange',
      }],
      prefixesType: 'prefixesType',
    },
  },
  pcxFcaPolicyDocument: {
    dimensions: ['dimensions'],
    reportingGranularity: ['reportingGranularity'],

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

Python:

```python
from aws_cdk import CfnTag
# 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

cfn_fca_policy_props = ec2.CfnFcaPolicyProps(
    network_resource_type="networkResourceType",

    # the properties below are optional
    description="description",
    instance_fca_policy_document=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"
        )
    ),
    nat_fca_policy_document=ec2.CfnFcaPolicy.NatFcaPolicyDocumentProperty(
        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"
        )
    ),
    pcx_fca_policy_document=ec2.CfnFcaPolicy.PcxFcaPolicyDocumentProperty(
        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"
        )
    ),
    show_back_enabled=False,
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

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.*;

CfnFcaPolicyProps cfnFcaPolicyProps = CfnFcaPolicyProps.builder()
        .networkResourceType("networkResourceType")

        // the properties below are optional
        .description("description")
        .instanceFcaPolicyDocument(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())
        .natFcaPolicyDocument(NatFcaPolicyDocumentProperty.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())
        .pcxFcaPolicyDocument(PcxFcaPolicyDocumentProperty.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())
        .showBackEnabled(false)
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .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 cfnFcaPolicyProps = new CfnFcaPolicyProps {
    NetworkResourceType = "networkResourceType",

    // the properties below are optional
    Description = "description",
    InstanceFcaPolicyDocument = 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"
        }
    },
    NatFcaPolicyDocument = new NatFcaPolicyDocumentProperty {
        Dimensions = new [] { "dimensions" },
        ReportingGranularity = new [] { "reportingGranularity" },

        // the properties below are optional
        CidrRangeSpecifications = new CidrRangeSpecificationsProperty {
            Prefixes = new [] { new CidrMappingProperty {
                CidrLabel = "cidrLabel",
                CidrRange = "cidrRange"
            } },
            PrefixesType = "prefixesType"
        }
    },
    PcxFcaPolicyDocument = new PcxFcaPolicyDocumentProperty {
        Dimensions = new [] { "dimensions" },
        ReportingGranularity = new [] { "reportingGranularity" },

        // the properties below are optional
        CidrRangeSpecifications = new CidrRangeSpecificationsProperty {
            Prefixes = new [] { new CidrMappingProperty {
                CidrLabel = "cidrLabel",
                CidrRange = "cidrRange"
            } },
            PrefixesType = "prefixesType"
        }
    },
    ShowBackEnabled = false,
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

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"

cfnFcaPolicyProps := &CfnFcaPolicyProps{
	NetworkResourceType: jsii.String("networkResourceType"),

	// the properties below are optional
	Description: jsii.String("description"),
	InstanceFcaPolicyDocument: &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"),
		},
	},
	NatFcaPolicyDocument: &NatFcaPolicyDocumentProperty{
		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"),
		},
	},
	PcxFcaPolicyDocument: &PcxFcaPolicyDocumentProperty{
		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"),
		},
	},
	ShowBackEnabled: jsii.Boolean(false),
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `description`: string — The description of the FCA policy.

- `instanceFcaPolicyDocument`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFcaPolicy.InstanceFcaPolicyDocumentProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnFcaPolicy.InstanceFcaPolicyDocumentProperty.html) — The FCA policy document for EC2 instance cost allocation.

- `natFcaPolicyDocument`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFcaPolicy.NatFcaPolicyDocumentProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnFcaPolicy.NatFcaPolicyDocumentProperty.html) — The FCA policy document for NAT gateway cost allocation.

- `networkResourceType`: string (required) — The type of network resource the FCA policy applies to.

- `pcxFcaPolicyDocument`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFcaPolicy.PcxFcaPolicyDocumentProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnFcaPolicy.PcxFcaPolicyDocumentProperty.html) — The FCA policy document for VPC peering connection cost allocation.

- `showBackEnabled`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Indicates whether show-back reporting is enabled for the FCA policy.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — The tags for the FCA policy.
