Class CfnSubnetNetworkAclAssociation
A CloudFormation AWS::EC2::SubnetNetworkAclAssociation
.
Inheritance
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class CfnSubnetNetworkAclAssociation : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnSubnetNetworkAclAssociation
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Associates a subnet with a network ACL. For more information, see ReplaceNetworkAclAssociation in the Amazon EC2 API Reference .
When AWS::EC2::SubnetNetworkAclAssociation
resources are created during create or update operations, AWS CloudFormation adopts existing resources that share the same key properties (the properties that contribute to uniquely identify the resource). However, if the operation fails and rolls back, AWS CloudFormation deletes the previously out-of-band resources. You can protect against this behavior by using Retain
deletion policies. For more information, see DeletionPolicy Attribute .
CloudformationResource: AWS::EC2::SubnetNetworkAclAssociation
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;
var cfnSubnetNetworkAclAssociation = new CfnSubnetNetworkAclAssociation(this, "MyCfnSubnetNetworkAclAssociation", new CfnSubnetNetworkAclAssociationProps {
NetworkAclId = "networkAclId",
SubnetId = "subnetId"
});
Synopsis
Constructors
CfnSubnetNetworkAclAssociation(Construct, String, ICfnSubnetNetworkAclAssociationProps) | Create a new |
CfnSubnetNetworkAclAssociation(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnSubnetNetworkAclAssociation(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrAssociationId | Returns the value of this object's SubnetId property. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
NetworkAclId | The ID of the network ACL. |
SubnetId | The ID of the subnet. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnSubnetNetworkAclAssociation(Construct, String, ICfnSubnetNetworkAclAssociationProps)
Create a new AWS::EC2::SubnetNetworkAclAssociation
.
public CfnSubnetNetworkAclAssociation(Construct scope, string id, ICfnSubnetNetworkAclAssociationProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnSubnetNetworkAclAssociationProps
- resource properties.
CfnSubnetNetworkAclAssociation(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnSubnetNetworkAclAssociation(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnSubnetNetworkAclAssociation(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnSubnetNetworkAclAssociation(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrAssociationId
Returns the value of this object's SubnetId property.
public virtual string AttrAssociationId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: AssociationId
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
NetworkAclId
The ID of the network ACL.
public virtual string NetworkAclId { get; set; }
Property Value
System.String
Remarks
SubnetId
The ID of the subnet.
public virtual string SubnetId { get; set; }
Property Value
System.String
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>