1. Registry
  2. Packages
  3. AWS Cloud Control
  4. API Docs
  5. ec2
  6. FcaPolicyAssociation

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
published on Wednesday, Nov 18, 2026 by Pulumi
aws-native logo aws-native logo AWS Cloud Control

We recommend new projects start with resources from the AWS provider.

Viewing docs for AWS Cloud Control v1.86.0
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:

    FcaPolicyId string
    The ID of the FCA policy to associate.
    NetworkResourceId string
    The ID of the network resource to associate the FCA policy with.
    NetworkResourceScopeType Pulumi.AwsNative.Ec2.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.
    FcaPolicyId string
    The ID of the FCA policy to associate.
    NetworkResourceId string
    The ID of the network resource to associate the FCA policy with.
    NetworkResourceScopeType 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.
    fca_policy_id string
    The ID of the FCA policy to associate.
    network_resource_id string
    The ID of the network resource to associate the FCA policy with.
    network_resource_scope_type "account" | "vpc" | "subnet"
    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.
    fcaPolicyId String
    The ID of the FCA policy to associate.
    networkResourceId String
    The ID of the network resource to associate the FCA policy with.
    networkResourceScopeType 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.
    fcaPolicyId string
    The ID of the FCA policy to associate.
    networkResourceId string
    The ID of the network resource to associate the FCA policy with.
    networkResourceScopeType 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.
    fca_policy_id str
    The ID of the FCA policy to associate.
    network_resource_id str
    The ID of the network resource to associate the FCA policy with.
    network_resource_scope_type 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.
    fcaPolicyId String
    The ID of the FCA policy to associate.
    networkResourceId String
    The ID of the network resource to associate the FCA policy with.
    networkResourceScopeType "account" | "vpc" | "subnet"
    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:

    AssociatedAt string
    The timestamp when the association was created.
    AssociationMode Pulumi.AwsNative.Ec2.FcaPolicyAssociationAssociationMode
    The mode of the association.
    ExpectedEffectiveAt string
    The timestamp when the association is expected to take effect.
    FcaPolicyAssociationId string
    The ID of the FCA policy association.
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedBy string
    Who manages the association: the account that created it, or a declarative policy.
    OwnerAccount string
    The AWS account ID that owns the FCA policy association.
    AssociatedAt string
    The timestamp when the association was created.
    AssociationMode FcaPolicyAssociationAssociationMode
    The mode of the association.
    ExpectedEffectiveAt string
    The timestamp when the association is expected to take effect.
    FcaPolicyAssociationId string
    The ID of the FCA policy association.
    Id string
    The provider-assigned unique ID for this managed resource.
    ManagedBy string
    Who manages the association: the account that created it, or a declarative policy.
    OwnerAccount 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_at string
    The timestamp when the association is expected to take effect.
    fca_policy_association_id string
    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.
    associatedAt String
    The timestamp when the association was created.
    associationMode FcaPolicyAssociationAssociationMode
    The mode of the association.
    expectedEffectiveAt String
    The timestamp when the association is expected to take effect.
    fcaPolicyAssociationId String
    The ID of the FCA policy association.
    id String
    The provider-assigned unique ID for this managed resource.
    managedBy String
    Who manages the association: the account that created it, or a declarative policy.
    ownerAccount String
    The AWS account ID that owns the FCA policy association.
    associatedAt string
    The timestamp when the association was created.
    associationMode FcaPolicyAssociationAssociationMode
    The mode of the association.
    expectedEffectiveAt string
    The timestamp when the association is expected to take effect.
    fcaPolicyAssociationId string
    The ID of the FCA policy association.
    id string
    The provider-assigned unique ID for this managed resource.
    managedBy string
    Who manages the association: the account that created it, or a declarative policy.
    ownerAccount string
    The AWS account ID that owns the FCA policy association.
    associated_at str
    The timestamp when the association was created.
    association_mode FcaPolicyAssociationAssociationMode
    The mode of the association.
    expected_effective_at str
    The timestamp when the association is expected to take effect.
    fca_policy_association_id str
    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.
    associatedAt String
    The timestamp when the association was created.
    associationMode "direct" | "scope"
    The mode of the association.
    expectedEffectiveAt String
    The timestamp when the association is expected to take effect.
    fcaPolicyAssociationId String
    The ID of the FCA policy association.
    id String
    The provider-assigned unique ID for this managed resource.
    managedBy String
    Who manages the association: the account that created it, or a declarative policy.
    ownerAccount 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) -> FcaPolicyAssociation
    func 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.

    NameValue
    Directdirect
    Scopescope
    NameValue
    FcaPolicyAssociationAssociationModeDirectdirect
    FcaPolicyAssociationAssociationModeScopescope
    Value
    direct
    scope
    NameValue
    Directdirect
    Scopescope
    NameValue
    Directdirect
    Scopescope
    NameValue
    DIRECTdirect
    SCOPEscope
    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.

    NameValue
    Accountaccount
    Vpcvpc
    Subnetsubnet
    NameValue
    FcaPolicyAssociationNetworkResourceScopeTypeAccountaccount
    FcaPolicyAssociationNetworkResourceScopeTypeVpcvpc
    FcaPolicyAssociationNetworkResourceScopeTypeSubnetsubnet
    Value
    account
    vpc
    subnet
    NameValue
    Accountaccount
    Vpcvpc
    Subnetsubnet
    NameValue
    Accountaccount
    Vpcvpc
    Subnetsubnet
    NameValue
    ACCOUNTaccount
    VPCvpc
    SUBNETsubnet
    Value
    account
    vpc
    subnet

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo aws-native logo AWS Cloud Control

    We recommend new projects start with resources from the AWS provider.

    Viewing docs for AWS Cloud Control v1.86.0
    published on Wednesday, Nov 18, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial