@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.337Z") @Stability(value=Stable) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnSubnetNetworkAclAssociation(software.constructs.Construct scope,
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 |
|---|---|
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 Map<String,Object> |
getCfnProperties() |
String |
getNetworkAclId()
The ID of the network ACL.
|
String |
getSubnetId()
The ID of the subnet.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setNetworkAclId(String value)
The ID of the network ACL.
|
void |
setSubnetId(String value)
The ID of the subnet.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnSubnetNetworkAclAssociation(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnSubnetNetworkAclAssociation(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnSubnetNetworkAclAssociation(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
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.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrAssociationId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public String getNetworkAclId()
@Stability(value=Stable)
public void setNetworkAclId(@NotNull
String value)
@Stability(value=Stable) @NotNull public String getSubnetId()
@Stability(value=Stable)
public void setSubnetId(@NotNull
String value)
Copyright © 2022. All rights reserved.