Class SubnetNetworkAclAssociationProps
Properties to create a SubnetNetworkAclAssociation.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SubnetNetworkAclAssociationProps : ISubnetNetworkAclAssociationProps
Syntax (vb)
Public Class SubnetNetworkAclAssociationProps Implements ISubnetNetworkAclAssociationProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
using Amazon.CDK.Interfaces.EC2;
INetworkAclRef networkAclRef;
Subnet subnet;
var subnetNetworkAclAssociationProps = new SubnetNetworkAclAssociationProps {
NetworkAcl = networkAclRef,
Subnet = subnet,
// the properties below are optional
SubnetNetworkAclAssociationName = "subnetNetworkAclAssociationName"
};
Synopsis
Constructors
| SubnetNetworkAclAssociationProps() | Properties to create a SubnetNetworkAclAssociation. |
Properties
| NetworkAcl | The Network ACL this association is defined for. |
| Subnet | ID of the Subnet. |
| SubnetNetworkAclAssociationName | The name of the SubnetNetworkAclAssociation. |
Constructors
SubnetNetworkAclAssociationProps()
Properties to create a SubnetNetworkAclAssociation.
public SubnetNetworkAclAssociationProps()
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
using Amazon.CDK.Interfaces.EC2;
INetworkAclRef networkAclRef;
Subnet subnet;
var subnetNetworkAclAssociationProps = new SubnetNetworkAclAssociationProps {
NetworkAcl = networkAclRef,
Subnet = subnet,
// the properties below are optional
SubnetNetworkAclAssociationName = "subnetNetworkAclAssociationName"
};
Properties
NetworkAcl
The Network ACL this association is defined for.
public INetworkAclRef NetworkAcl { get; set; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
Subnet
ID of the Subnet.
public ISubnet Subnet { get; set; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
SubnetNetworkAclAssociationName
The name of the SubnetNetworkAclAssociation.
public string? SubnetNetworkAclAssociationName { get; set; }
Property Value
Remarks
It is not recommended to use an explicit name.
Default: If you don't specify a SubnetNetworkAclAssociationName, AWS CloudFormation generates a unique physical ID and uses that ID for the group name.