Skip to content
v2.278.0

CfnFcaPolicyAssociationProps Struct ​

Properties for defining a CfnFcaPolicyAssociation.

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

  // the properties below are optional
  networkResourceScopeType: 'networkResourceScopeType',
};
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
// 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();
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"
};
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 ​

fcaPolicyIdstringfca_policy_idstrfcaPolicyIdStringFcaPolicyIdstringFcaPolicyId*string required #
The ID of the FCA policy to associate.
networkResourceIdstringnetwork_resource_idstrnetworkResourceIdStringNetworkResourceIdstringNetworkResourceId*string required #
The ID of the network resource to associate the FCA policy with.
networkResourceScopeTypeoptionalstringnetwork_resource_scope_typeoptionalstrnetworkResourceScopeTypeoptionalStringNetworkResourceScopeTypeoptionalstringNetworkResourceScopeTypeoptional*string #
Associate by scope instead of directly.
notes

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.