# CfnFcaPolicyAssociationProps

Properties for defining a `CfnFcaPolicyAssociation`.

Used as props by: [CfnFcaPolicyAssociation](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.CfnFcaPolicyAssociation.html)

- Source: Generated at build time

## Example

TypeScript:

```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 cfnFcaPolicyAssociationProps: ec2.CfnFcaPolicyAssociationProps = {
  fcaPolicyId: 'fcaPolicyId',
  networkResourceId: 'networkResourceId',

  // the properties below are optional
  networkResourceScopeType: 'networkResourceScopeType',
};
```

Python:

```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

cfn_fca_policy_association_props = ec2.CfnFcaPolicyAssociationProps(
    fca_policy_id="fcaPolicyId",
    network_resource_id="networkResourceId",

    # the properties below are optional
    network_resource_scope_type="networkResourceScopeType"
)
```

Java:

```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.*;

CfnFcaPolicyAssociationProps cfnFcaPolicyAssociationProps = CfnFcaPolicyAssociationProps.builder()
        .fcaPolicyId("fcaPolicyId")
        .networkResourceId("networkResourceId")

        // the properties below are optional
        .networkResourceScopeType("networkResourceScopeType")
        .build();
```

C# / .NET:

```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 cfnFcaPolicyAssociationProps = new CfnFcaPolicyAssociationProps {
    FcaPolicyId = "fcaPolicyId",
    NetworkResourceId = "networkResourceId",

    // the properties below are optional
    NetworkResourceScopeType = "networkResourceScopeType"
};
```

Golang:

```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"

cfnFcaPolicyAssociationProps := &CfnFcaPolicyAssociationProps{
	FcaPolicyId: jsii.String("fcaPolicyId"),
	NetworkResourceId: jsii.String("networkResourceId"),

	// the properties below are optional
	NetworkResourceScopeType: jsii.String("networkResourceScopeType"),
}
```

## Properties

- `fcaPolicyId`: string (required) — The ID of the FCA policy to associate.

- `networkResourceId`: string (required) — The ID of the network resource to associate the FCA policy with.

- `networkResourceScopeType`: string — 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.
