PcxFcaPolicyDocumentProperty Struct
The FCA policy document for VPC peering connection cost allocation.
| Source |
|---|
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 pcxFcaPolicyDocumentProperty: ec2.CfnFcaPolicy.PcxFcaPolicyDocumentProperty = {
dimensions: ['dimensions'],
reportingGranularity: ['reportingGranularity'],
// the properties below are optional
cidrRangeSpecifications: {
prefixes: [{
cidrLabel: 'cidrLabel',
cidrRange: 'cidrRange',
}],
prefixesType: 'prefixesType',
},
};
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
pcx_fca_policy_document_property = 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"
)
)
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.*;
PcxFcaPolicyDocumentProperty pcxFcaPolicyDocumentProperty = 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();
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 pcxFcaPolicyDocumentProperty = 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"
}
};
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"
pcxFcaPolicyDocumentProperty := &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"),
},
}
Properties
cidrRangeSpecificationsoptionalIResolvable | CfnFcaPolicy.cidr_range_specificationsoptionaltyping.Union[IResolvable, CidrRangeSpecificationsProperty]cidrRangeSpecificationsoptionalIResolvableCidrRangeSpecificationsoptionalIResolvableCidrRangeSpecificationsoptionalinterface{} #CIDR range specifications, used when the reporting granularity is 'cidr'.
dimensionsstring[]dimensionstyping.List[str]dimensionsList<String>Dimensionsstring[]Dimensions*[]*string required #The cost dimensions to allocate.
reportingGranularitystring[]reporting_granularitytyping.List[str]reportingGranularityList<String>ReportingGranularitystring[]ReportingGranularity*[]*string required #The granularity at which costs are reported.
Contains exactly one value.