Class SubnetNetworkAclAssociation
Implements
IConstruct
IDependable
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SubnetNetworkAclAssociation : Resource, ISubnetNetworkAclAssociation, IResource, ISubnetNetworkAclAssociationRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class SubnetNetworkAclAssociation Inherits Resource Implements ISubnetNetworkAclAssociation, IResource, ISubnetNetworkAclAssociationRef, IConstruct, IDependable, IEnvironmentAware
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 subnetNetworkAclAssociation = new SubnetNetworkAclAssociation(this, "MySubnetNetworkAclAssociation", new SubnetNetworkAclAssociationProps {
NetworkAcl = networkAclRef,
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. |
| SubnetNetworkAclAssociationRef | A reference to a SubnetNetworkAclAssociation resource. |
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;
using Amazon.CDK.Interfaces.EC2;
INetworkAclRef networkAclRef;
Subnet subnet;
var subnetNetworkAclAssociation = new SubnetNetworkAclAssociation(this, "MySubnetNetworkAclAssociation", new SubnetNetworkAclAssociationProps {
NetworkAcl = networkAclRef,
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
ExampleMetadata: fixture=_generated
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
ExampleMetadata: fixture=_generated
SubnetNetworkAclAssociationAssociationId
ID for the current SubnetNetworkAclAssociation.
public virtual string SubnetNetworkAclAssociationAssociationId { get; }
Property Value
Remarks
Attribute: true
SubnetNetworkAclAssociationRef
A reference to a SubnetNetworkAclAssociation resource.
public virtual ISubnetNetworkAclAssociationReference SubnetNetworkAclAssociationRef { get; }
Property Value
ISubnetNetworkAclAssociationReference
Remarks
ExampleMetadata: fixture=_generated
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;
using Amazon.CDK.Interfaces.EC2;
INetworkAclRef networkAclRef;
Subnet subnet;
var subnetNetworkAclAssociation = new SubnetNetworkAclAssociation(this, "MySubnetNetworkAclAssociation", new SubnetNetworkAclAssociationProps {
NetworkAcl = networkAclRef,
Subnet = subnet,
// the properties below are optional
SubnetNetworkAclAssociationName = "subnetNetworkAclAssociationName"
});
Implements
Constructs.IConstruct
Constructs.IDependable