A Flex Cost Allocation (FCA) policy defines how shared network costs (data transfer, data processing) are allocated and reported for network resources such as NAT gateways, EC2 instances, and VPC peering connections.
Create FcaPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
@overload
def FcaPolicy(resource_name: str,
args: FcaPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FcaPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
network_resource_type: Optional[FcaPolicyNetworkResourceType] = None,
description: Optional[str] = None,
instance_fca_policy_document: Optional[FcaPolicyInstanceFcaPolicyDocumentArgs] = None,
nat_fca_policy_document: Optional[FcaPolicyNatFcaPolicyDocumentArgs] = None,
pcx_fca_policy_document: Optional[FcaPolicyPcxFcaPolicyDocumentArgs] = None,
show_back_enabled: Optional[bool] = None,
tags: Optional[Sequence[_root_inputs.TagArgs]] = None)
public FcaPolicy(String name, FcaPolicyArgs args)
public FcaPolicy(String name, FcaPolicyArgs args, CustomResourceOptions options)
type: aws-native:ec2:FcaPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_ec2_fca_policy" "name" {
# resource properties
}
Parameters
- name
string
- The unique name of the resource.
- args
FcaPolicyArgs
- The arguments to resource properties.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resource.
- args
FcaPolicyArgs
- The arguments to resource properties.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resource.
- args
FcaPolicyArgs
- The arguments to resource properties.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resource.
- args
FcaPolicyArgs
- The arguments to resource properties.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resource.
- args
FcaPolicyArgs
- The arguments to resource properties.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
FcaPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FcaPolicy resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the FcaPolicy resource produces the following output properties:
- Arn
string
- The Amazon Resource Name (ARN) of the FCA policy.
- FcaPolicyId
string
- The ID of the FCA policy.
- Id
string
- The provider-assigned unique ID for this managed resource.
- LatestVersion
int
- The latest version number of the FCA policy.
- OwnerAccount
string
- The AWS account ID that owns the FCA policy.
- PolicyCreatedAt
string
- The timestamp when the FCA policy was created.
- VersionExpectedEffectiveAt
string
- The timestamp when the latest version of the FCA policy is expected to take effect.
- Arn
string
- The Amazon Resource Name (ARN) of the FCA policy.
- FcaPolicyId
string
- The ID of the FCA policy.
- Id
string
- The provider-assigned unique ID for this managed resource.
- LatestVersion
int
- The latest version number of the FCA policy.
- OwnerAccount
string
- The AWS account ID that owns the FCA policy.
- PolicyCreatedAt
string
- The timestamp when the FCA policy was created.
- VersionExpectedEffectiveAt
string
- The timestamp when the latest version of the FCA policy is expected to take effect.
- arn
string
- The Amazon Resource Name (ARN) of the FCA policy.
- fca_policy_id
string
- The ID of the FCA policy.
- id
string
- The provider-assigned unique ID for this managed resource.
- latest_version
number
- The latest version number of the FCA policy.
- owner_account
string
- The AWS account ID that owns the FCA policy.
- policy_created_at
string
- The timestamp when the FCA policy was created.
- version_expected_effective_at
string
- The timestamp when the latest version of the FCA policy is expected to take effect.
- arn
String
- The Amazon Resource Name (ARN) of the FCA policy.
- fcaPolicyId
String
- The ID of the FCA policy.
- id
String
- The provider-assigned unique ID for this managed resource.
- latestVersion
Integer
- The latest version number of the FCA policy.
- ownerAccount
String
- The AWS account ID that owns the FCA policy.
- policyCreatedAt
String
- The timestamp when the FCA policy was created.
- versionExpectedEffectiveAt
String
- The timestamp when the latest version of the FCA policy is expected to take effect.
- arn
string
- The Amazon Resource Name (ARN) of the FCA policy.
- fcaPolicyId
string
- The ID of the FCA policy.
- id
string
- The provider-assigned unique ID for this managed resource.
- latestVersion
number
- The latest version number of the FCA policy.
- ownerAccount
string
- The AWS account ID that owns the FCA policy.
- policyCreatedAt
string
- The timestamp when the FCA policy was created.
- versionExpectedEffectiveAt
string
- The timestamp when the latest version of the FCA policy is expected to take effect.
- arn
str
- The Amazon Resource Name (ARN) of the FCA policy.
- fca_policy_id
str
- The ID of the FCA policy.
- id
str
- The provider-assigned unique ID for this managed resource.
- latest_version
int
- The latest version number of the FCA policy.
- owner_account
str
- The AWS account ID that owns the FCA policy.
- policy_created_at
str
- The timestamp when the FCA policy was created.
- version_expected_effective_at
str
- The timestamp when the latest version of the FCA policy is expected to take effect.
- arn
String
- The Amazon Resource Name (ARN) of the FCA policy.
- fcaPolicyId
String
- The ID of the FCA policy.
- id
String
- The provider-assigned unique ID for this managed resource.
- latestVersion
Number
- The latest version number of the FCA policy.
- ownerAccount
String
- The AWS account ID that owns the FCA policy.
- policyCreatedAt
String
- The timestamp when the FCA policy was created.
- versionExpectedEffectiveAt
String
- The timestamp when the latest version of the FCA policy is expected to take effect.
Look up Existing FcaPolicy Resource
Get an existing FcaPolicy resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static FcaPolicy get(String name, Output<String> id, CustomResourceOptions options)
resources: existingFcaPolicy: type: aws-native:ec2:FcaPolicy get: id: ${id}
import {
to = aws-native_ec2_fca_policy.example
id = "${id}"
}
- name
string
- The unique name of the resulting resource.
- id
Input<ID>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
str
- The unique name of the resulting resource.
- id
str
- The unique provider ID of the resource to look up.
- opts
ResourceOptions
- Bag of options to control resource's behavior.
- ctx
Context
- Context object for the current deployment.
- name
string
- The unique name of the resulting resource.
- id
IDInput
- The unique provider ID of the resource to look up.
- state
FcaPolicyState
- Pass nil. This resource has no state arguments.
- opts
ResourceOption
- Bag of options to control resource's behavior.
- name
string
- The unique name of the resulting resource.
- id
Input<string>
- The unique provider ID of the resource to look up.
- opts
CustomResourceOptions
- Bag of options to control resource's behavior.
- name
String
- The unique name of the resulting resource.
- id
Output<String>
- The unique provider ID of the resource to look up.
- options
CustomResourceOptions
- Bag of options to control resource's behavior.
Supporting Types
FcaPolicyCidrMapping, FcaPolicyCidrMappingArgs
A single CIDR range to label mapping.
FcaPolicyCidrRangeSpecifications, FcaPolicyCidrRangeSpecificationsArgs
CIDR range specifications, used when the reporting granularity is 'cidr'.
FcaPolicyDimensionListItem
| Name | Value |
|---|
| DataTransfer | data-transfer |
| DataProcessing | data-processing |
| Name | Value |
|---|
| FcaPolicyDimensionListItemDataTransfer | data-transfer |
| FcaPolicyDimensionListItemDataProcessing | data-processing |
| Value |
|---|
data-transfer |
data-processing |
| Name | Value |
|---|
| DataTransfer | data-transfer |
| DataProcessing | data-processing |
| Name | Value |
|---|
| DataTransfer | data-transfer |
| DataProcessing | data-processing |
| Name | Value |
|---|
| DATA_TRANSFER | data-transfer |
| DATA_PROCESSING | data-processing |
| Value |
|---|
data-transfer |
data-processing |
FcaPolicyInstanceFcaPolicyDocument, FcaPolicyInstanceFcaPolicyDocumentArgs
The FCA policy document for EC2 instance cost allocation.
FcaPolicyNatFcaPolicyDocument, FcaPolicyNatFcaPolicyDocumentArgs
The FCA policy document for NAT gateway cost allocation.
FcaPolicyNetworkResourceType
The type of network resource the FCA policy applies to.
| Name | Value |
|---|
| Natgw | natgw |
| Pcx | pcx |
| Ec2 | ec2 |
| Name | Value |
|---|
| FcaPolicyNetworkResourceTypeNatgw | natgw |
| FcaPolicyNetworkResourceTypePcx | pcx |
| FcaPolicyNetworkResourceTypeEc2 | ec2 |
| Name | Value |
|---|
| Natgw | natgw |
| Pcx | pcx |
| Ec2 | ec2 |
| Name | Value |
|---|
| Natgw | natgw |
| Pcx | pcx |
| Ec2 | ec2 |
| Name | Value |
|---|
| NATGW | natgw |
| PCX | pcx |
| EC2 | ec2 |
FcaPolicyPcxFcaPolicyDocument, FcaPolicyPcxFcaPolicyDocumentArgs
The FCA policy document for VPC peering connection cost allocation.
FcaPolicyReportingGranularityListItem
| Name | Value |
|---|
| Eni | eni |
| Ec2 | ec2 |
| Subnet | subnet |
| Vpc | vpc |
| Account | account |
| PeeringId | peering-id |
| Cidr | cidr |
| Name | Value |
|---|
| FcaPolicyReportingGranularityListItemEni | eni |
| FcaPolicyReportingGranularityListItemEc2 | ec2 |
| FcaPolicyReportingGranularityListItemSubnet | subnet |
| FcaPolicyReportingGranularityListItemVpc | vpc |
| FcaPolicyReportingGranularityListItemAccount | account |
| FcaPolicyReportingGranularityListItemPeeringId | peering-id |
| FcaPolicyReportingGranularityListItemCidr | cidr |
| Value |
|---|
eni |
ec2 |
subnet |
vpc |
account |
peering-id |
cidr |
| Name | Value |
|---|
| Eni | eni |
| Ec2 | ec2 |
| Subnet | subnet |
| Vpc | vpc |
| Account | account |
| PeeringId | peering-id |
| Cidr | cidr |
| Name | Value |
|---|
| Eni | eni |
| Ec2 | ec2 |
| Subnet | subnet |
| Vpc | vpc |
| Account | account |
| PeeringId | peering-id |
| Cidr | cidr |
| Name | Value |
|---|
| ENI | eni |
| EC2 | ec2 |
| SUBNET | subnet |
| VPC | vpc |
| ACCOUNT | account |
| PEERING_ID | peering-id |
| CIDR | cidr |
| Value |
|---|
eni |
ec2 |
subnet |
vpc |
account |
peering-id |
cidr |
Tag, TagArgs
A set of tags to apply to the resource.
- Key
string
- The key name of the tag
- Value
string
- The value of the tag
- Key
string
- The key name of the tag
- Value
string
- The value of the tag
- key
string
- The key name of the tag
- value
string
- The value of the tag
- key
String
- The key name of the tag
- value
String
- The value of the tag
- key
string
- The key name of the tag
- value
string
- The value of the tag
- key
str
- The key name of the tag
- value
str
- The value of the tag
- key
String
- The key name of the tag
- value
String
- The value of the tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0