@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-20T22:19:59.231Z") public class CfnSubnetNetworkAclAssociation extends CfnResource implements IInspectable
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 .
Example:
// 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.*; CfnSubnetNetworkAclAssociation cfnSubnetNetworkAclAssociation = CfnSubnetNetworkAclAssociation.Builder.create(this, "MyCfnSubnetNetworkAclAssociation") .networkAclId("networkAclId") .subnetId("subnetId") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnSubnetNetworkAclAssociation.Builder
A fluent builder for
CfnSubnetNetworkAclAssociation . |
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
Modifier | Constructor and Description |
---|---|
|
CfnSubnetNetworkAclAssociation(Construct scope,
java.lang.String id,
CfnSubnetNetworkAclAssociationProps props)
Create a new `AWS::EC2::SubnetNetworkAclAssociation`.
|
protected |
CfnSubnetNetworkAclAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnSubnetNetworkAclAssociation(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttrAssociationId()
Returns the value of this object's [SubnetId](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnet-network-acl-assoc.html) property.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.lang.String |
getNetworkAclId()
The ID of the network ACL.
|
java.lang.String |
getSubnetId()
The ID of the subnet.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setNetworkAclId(java.lang.String value)
The ID of the network ACL.
|
void |
setSubnetId(java.lang.String value)
The ID of the subnet.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
protected CfnSubnetNetworkAclAssociation(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnSubnetNetworkAclAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnSubnetNetworkAclAssociation(Construct scope, java.lang.String id, CfnSubnetNetworkAclAssociationProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.public java.lang.String getAttrAssociationId()
protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.lang.String getNetworkAclId()
public void setNetworkAclId(java.lang.String value)
public java.lang.String getSubnetId()
public void setSubnetId(java.lang.String value)