Skip to content
v2.278.0

CfnFcaPolicyProps Struct ​

Properties for defining a CfnFcaPolicy.

Example ​

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
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
// 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();
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"
    } }
};
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 ​

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description of the FCA policy.
instanceFcaPolicyDocumentoptionalIResolvable | CfnFcaPolicy.InstanceFcaPolicyDocumentPropertyinstance_fca_policy_documentoptionaltyping.Union[IResolvable, InstanceFcaPolicyDocumentProperty]instanceFcaPolicyDocumentoptionalIResolvableInstanceFcaPolicyDocumentoptionalIResolvableInstanceFcaPolicyDocumentoptionalinterface{} #
The FCA policy document for EC2 instance cost allocation.
natFcaPolicyDocumentoptionalIResolvable | CfnFcaPolicy.NatFcaPolicyDocumentPropertynat_fca_policy_documentoptionaltyping.Union[IResolvable, NatFcaPolicyDocumentProperty]natFcaPolicyDocumentoptionalIResolvableNatFcaPolicyDocumentoptionalIResolvableNatFcaPolicyDocumentoptionalinterface{} #
The FCA policy document for NAT gateway cost allocation.
networkResourceTypestringnetwork_resource_typestrnetworkResourceTypeStringNetworkResourceTypestringNetworkResourceType*string required #
The type of network resource the FCA policy applies to.
pcxFcaPolicyDocumentoptionalIResolvable | CfnFcaPolicy.PcxFcaPolicyDocumentPropertypcx_fca_policy_documentoptionaltyping.Union[IResolvable, PcxFcaPolicyDocumentProperty]pcxFcaPolicyDocumentoptionalIResolvablePcxFcaPolicyDocumentoptionalIResolvablePcxFcaPolicyDocumentoptionalinterface{} #
The FCA policy document for VPC peering connection cost allocation.
showBackEnabledoptionalboolean | IResolvableshow_back_enabledoptionaltyping.Union[bool, IResolvable]showBackEnabledoptionalBooleanShowBackEnabledoptionalboolShowBackEnabledoptionalinterface{} #
Indicates whether show-back reporting is enabled for the FCA policy.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
The tags for the FCA policy.