We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi
Associates a Flex Cost Allocation (FCA) policy with a network resource such as a NAT gateway, EC2 instance, or VPC peering connection.
Create FcaPolicyAssociation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FcaPolicyAssociation(name: string, args: FcaPolicyAssociationArgs, opts?: CustomResourceOptions);@overload
def FcaPolicyAssociation(resource_name: str,
args: FcaPolicyAssociationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FcaPolicyAssociation(resource_name: str,
opts: Optional[ResourceOptions] = None,
fca_policy_id: Optional[str] = None,
network_resource_id: Optional[str] = None,
network_resource_scope_type: Optional[FcaPolicyAssociationNetworkResourceScopeType] = None)func NewFcaPolicyAssociation(ctx *Context, name string, args FcaPolicyAssociationArgs, opts ...ResourceOption) (*FcaPolicyAssociation, error)public FcaPolicyAssociation(string name, FcaPolicyAssociationArgs args, CustomResourceOptions? opts = null)
public FcaPolicyAssociation(String name, FcaPolicyAssociationArgs args)
public FcaPolicyAssociation(String name, FcaPolicyAssociationArgs args, CustomResourceOptions options)
type: aws-native:ec2:FcaPolicyAssociation
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "aws-native_ec2_fca_policy_association" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args FcaPolicyAssociationArgs
- 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 FcaPolicyAssociationArgs
- 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 FcaPolicyAssociationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FcaPolicyAssociationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FcaPolicyAssociationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
FcaPolicyAssociation Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FcaPolicyAssociation resource accepts the following input properties:
- Fca
Policy stringId - The ID of the FCA policy to associate.
- Network
Resource stringId - The ID of the network resource to associate the FCA policy with.
- Network
Resource Pulumi.Scope Type Aws Native. Ec2. Fca Policy Association Network Resource Scope Type - Associate by scope instead of directly. When set, NetworkResourceId is the ID of the scope (an account ID, a VPC ID, or a subnet ID) and the association covers every eligible network resource in that scope; when omitted, NetworkResourceId is a direct network resource (for example a NAT gateway or instance) and must match the policy's NetworkResourceType.
- Fca
Policy stringId - The ID of the FCA policy to associate.
- Network
Resource stringId - The ID of the network resource to associate the FCA policy with.
- Network
Resource FcaScope Type Policy Association Network Resource Scope Type - Associate by scope instead of directly. When set, NetworkResourceId is the ID of the scope (an account ID, a VPC ID, or a subnet ID) and the association covers every eligible network resource in that scope; when omitted, NetworkResourceId is a direct network resource (for example a NAT gateway or instance) and must match the policy's NetworkResourceType.
- fca_
policy_ stringid - The ID of the FCA policy to associate.
- network_
resource_ stringid - The ID of the network resource to associate the FCA policy with.
- network_
resource_ "account" | "vpc" | "subnet"scope_ type - Associate by scope instead of directly. When set, NetworkResourceId is the ID of the scope (an account ID, a VPC ID, or a subnet ID) and the association covers every eligible network resource in that scope; when omitted, NetworkResourceId is a direct network resource (for example a NAT gateway or instance) and must match the policy's NetworkResourceType.
- fca
Policy StringId - The ID of the FCA policy to associate.
- network
Resource StringId - The ID of the network resource to associate the FCA policy with.
- network
Resource FcaScope Type Policy Association Network Resource Scope Type - Associate by scope instead of directly. When set, NetworkResourceId is the ID of the scope (an account ID, a VPC ID, or a subnet ID) and the association covers every eligible network resource in that scope; when omitted, NetworkResourceId is a direct network resource (for example a NAT gateway or instance) and must match the policy's NetworkResourceType.
- fca
Policy stringId - The ID of the FCA policy to associate.
- network
Resource stringId - The ID of the network resource to associate the FCA policy with.
- network
Resource FcaScope Type Policy Association Network Resource Scope Type - Associate by scope instead of directly. When set, NetworkResourceId is the ID of the scope (an account ID, a VPC ID, or a subnet ID) and the association covers every eligible network resource in that scope; when omitted, NetworkResourceId is a direct network resource (for example a NAT gateway or instance) and must match the policy's NetworkResourceType.
- fca_
policy_ strid - The ID of the FCA policy to associate.
- network_
resource_ strid - The ID of the network resource to associate the FCA policy with.
- network_
resource_ Fcascope_ type Policy Association Network Resource Scope Type - Associate by scope instead of directly. When set, NetworkResourceId is the ID of the scope (an account ID, a VPC ID, or a subnet ID) and the association covers every eligible network resource in that scope; when omitted, NetworkResourceId is a direct network resource (for example a NAT gateway or instance) and must match the policy's NetworkResourceType.
- fca
Policy StringId - The ID of the FCA policy to associate.
- network
Resource StringId - The ID of the network resource to associate the FCA policy with.
- network
Resource "account" | "vpc" | "subnet"Scope Type - Associate by scope instead of directly. When set, NetworkResourceId is the ID of the scope (an account ID, a VPC ID, or a subnet ID) and the association covers every eligible network resource in that scope; when omitted, NetworkResourceId is a direct network resource (for example a NAT gateway or instance) and must match the policy's NetworkResourceType.
Outputs
All input properties are implicitly available as output properties. Additionally, the FcaPolicyAssociation resource produces the following output properties:
- Associated
At string - The timestamp when the association was created.
- Association
Mode Pulumi.Aws Native. Ec2. Fca Policy Association Association Mode - The mode of the association.
- Expected
Effective stringAt - The timestamp when the association is expected to take effect.
- Fca
Policy stringAssociation Id - The ID of the FCA policy association.
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
By string - Who manages the association: the account that created it, or a declarative policy.
- Owner
Account string - The AWS account ID that owns the FCA policy association.
- Associated
At string - The timestamp when the association was created.
- Association
Mode FcaPolicy Association Association Mode - The mode of the association.
- Expected
Effective stringAt - The timestamp when the association is expected to take effect.
- Fca
Policy stringAssociation Id - The ID of the FCA policy association.
- Id string
- The provider-assigned unique ID for this managed resource.
- Managed
By string - Who manages the association: the account that created it, or a declarative policy.
- Owner
Account string - The AWS account ID that owns the FCA policy association.
- associated_
at string - The timestamp when the association was created.
- association_
mode "direct" | "scope" - The mode of the association.
- expected_
effective_ stringat - The timestamp when the association is expected to take effect.
- fca_
policy_ stringassociation_ id - The ID of the FCA policy association.
- id string
- The provider-assigned unique ID for this managed resource.
- managed_
by string - Who manages the association: the account that created it, or a declarative policy.
- owner_
account string - The AWS account ID that owns the FCA policy association.
- associated
At String - The timestamp when the association was created.
- association
Mode FcaPolicy Association Association Mode - The mode of the association.
- expected
Effective StringAt - The timestamp when the association is expected to take effect.
- fca
Policy StringAssociation Id - The ID of the FCA policy association.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
By String - Who manages the association: the account that created it, or a declarative policy.
- owner
Account String - The AWS account ID that owns the FCA policy association.
- associated
At string - The timestamp when the association was created.
- association
Mode FcaPolicy Association Association Mode - The mode of the association.
- expected
Effective stringAt - The timestamp when the association is expected to take effect.
- fca
Policy stringAssociation Id - The ID of the FCA policy association.
- id string
- The provider-assigned unique ID for this managed resource.
- managed
By string - Who manages the association: the account that created it, or a declarative policy.
- owner
Account string - The AWS account ID that owns the FCA policy association.
- associated_
at str - The timestamp when the association was created.
- association_
mode FcaPolicy Association Association Mode - The mode of the association.
- expected_
effective_ strat - The timestamp when the association is expected to take effect.
- fca_
policy_ strassociation_ id - The ID of the FCA policy association.
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
by str - Who manages the association: the account that created it, or a declarative policy.
- owner_
account str - The AWS account ID that owns the FCA policy association.
- associated
At String - The timestamp when the association was created.
- association
Mode "direct" | "scope" - The mode of the association.
- expected
Effective StringAt - The timestamp when the association is expected to take effect.
- fca
Policy StringAssociation Id - The ID of the FCA policy association.
- id String
- The provider-assigned unique ID for this managed resource.
- managed
By String - Who manages the association: the account that created it, or a declarative policy.
- owner
Account String - The AWS account ID that owns the FCA policy association.
Look up Existing FcaPolicyAssociation Resource
Get an existing FcaPolicyAssociation resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, opts?: CustomResourceOptions): FcaPolicyAssociation@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None) -> FcaPolicyAssociationfunc GetFcaPolicyAssociation(ctx *Context, name string, id IDInput, state *FcaPolicyAssociationState, opts ...ResourceOption) (*FcaPolicyAssociation, error)public static FcaPolicyAssociation Get(string name, Input<string> id, CustomResourceOptions? opts = null)public static FcaPolicyAssociation get(String name, Output<String> id, CustomResourceOptions options)resources: existingFcaPolicyAssociation: type: aws-native:ec2:FcaPolicyAssociation get: id: ${id}import {
to = aws-native_ec2_fca_policy_association.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 FcaPolicyAssociationState
- 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
FcaPolicyAssociationAssociationMode
The mode of the association.
| Name | Value |
|---|---|
| Direct | direct |
| Scope | scope |
| Name | Value |
|---|---|
| Fca | direct |
| Fca | scope |
| Value |
|---|
direct |
scope |
| Name | Value |
|---|---|
| Direct | direct |
| Scope | scope |
| Name | Value |
|---|---|
| Direct | direct |
| Scope | scope |
| Name | Value |
|---|---|
| DIRECT | direct |
| SCOPE | scope |
| Value |
|---|
direct |
scope |
FcaPolicyAssociationNetworkResourceScopeType
Associate by scope instead of directly. When set, NetworkResourceId is the ID of the scope (an account ID, a VPC ID, or a subnet ID) and the association covers every eligible network resource in that scope; when omitted, NetworkResourceId is a direct network resource (for example a NAT gateway or instance) and must match the policy's NetworkResourceType.
| Name | Value |
|---|---|
| Account | account |
| Vpc | vpc |
| Subnet | subnet |
| Name | Value |
|---|---|
| Fca | account |
| Fca | vpc |
| Fca | subnet |
| Value |
|---|
account |
vpc |
subnet |
| Name | Value |
|---|---|
| Account | account |
| Vpc | vpc |
| Subnet | subnet |
| Name | Value |
|---|---|
| Account | account |
| Vpc | vpc |
| Subnet | subnet |
| Name | Value |
|---|---|
| ACCOUNT | account |
| VPC | vpc |
| SUBNET | subnet |
| Value |
|---|
account |
vpc |
subnet |
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Wednesday, Nov 18, 2026 by Pulumi