Class SubnetNetworkAclAssociation
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SubnetNetworkAclAssociation : Resource, ISubnetNetworkAclAssociation, IResource, IConstruct, IDependable
Syntax (vb)
Public Class SubnetNetworkAclAssociation Inherits Resource Implements ISubnetNetworkAclAssociation, IResource, IConstruct, IDependable
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;
NetworkAcl networkAcl;
Subnet subnet;
var subnetNetworkAclAssociation = new SubnetNetworkAclAssociation(this, "MySubnetNetworkAclAssociation", new SubnetNetworkAclAssociationProps {
NetworkAcl = networkAcl,
Subnet = subnet,
// the properties below are optional
SubnetNetworkAclAssociationName = "subnetNetworkAclAssociationName"
});
Synopsis
Constructors
SubnetNetworkAclAssociation(Construct, string, ISubnetNetworkAclAssociationProps) |
Properties
NetworkAcl | ID for the current Network ACL. |
PROPERTY_INJECTION_ID | Uniquely identifies this class. |
Subnet | ID of the Subnet. |
SubnetNetworkAclAssociationAssociationId | ID for the current SubnetNetworkAclAssociation. |
Methods
FromSubnetNetworkAclAssociationAssociationId(Construct, string, string) |
Constructors
SubnetNetworkAclAssociation(Construct, string, ISubnetNetworkAclAssociationProps)
public SubnetNetworkAclAssociation(Construct scope, string id, ISubnetNetworkAclAssociationProps props)
Parameters
- scope Construct
- id string
- props 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;
NetworkAcl networkAcl;
Subnet subnet;
var subnetNetworkAclAssociation = new SubnetNetworkAclAssociation(this, "MySubnetNetworkAclAssociation", new SubnetNetworkAclAssociationProps {
NetworkAcl = networkAcl,
Subnet = subnet,
// the properties below are optional
SubnetNetworkAclAssociationName = "subnetNetworkAclAssociationName"
});
Properties
NetworkAcl
ID for the current Network ACL.
public virtual INetworkAcl NetworkAcl { get; }
Property Value
Remarks
Attribute: true
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
ExampleMetadata: fixture=_generated
Subnet
ID of the Subnet.
public virtual ISubnet Subnet { get; }
Property Value
Remarks
Attribute: true
SubnetNetworkAclAssociationAssociationId
ID for the current SubnetNetworkAclAssociation.
public virtual string SubnetNetworkAclAssociationAssociationId { get; }
Property Value
Remarks
Attribute: true
Methods
FromSubnetNetworkAclAssociationAssociationId(Construct, string, string)
public static ISubnetNetworkAclAssociation FromSubnetNetworkAclAssociationAssociationId(Construct scope, string id, string subnetNetworkAclAssociationAssociationId)
Parameters
Returns
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;
NetworkAcl networkAcl;
Subnet subnet;
var subnetNetworkAclAssociation = new SubnetNetworkAclAssociation(this, "MySubnetNetworkAclAssociation", new SubnetNetworkAclAssociationProps {
NetworkAcl = networkAcl,
Subnet = subnet,
// the properties below are optional
SubnetNetworkAclAssociationName = "subnetNetworkAclAssociationName"
});
Implements
Constructs.IConstruct
Constructs.IDependable