Expand description
Provides an network ACL association resource which allows you to associate your network ACL with any subnet(s).
NOTE on Network ACLs and Network ACL Associations: the provider provides both a standalone network ACL association resource and a network ACL resource with a
subnet_ids
attribute. Do not use the same subnet ID in both a network ACL resource and a network ACL association resource. Doing so will cause a conflict of associations and will overwrite the association.
§Example Usage
ⓘ
use pulumi_wasm_rust::Output;
use pulumi_wasm_rust::{add_export, pulumi_main};
#[pulumi_main]
fn test_main() -> Result<(), Error> {
let main = network_acl_association::create(
"main",
NetworkAclAssociationArgs::builder()
.network_acl_id("${mainAwsNetworkAcl.id}")
.subnet_id("${mainAwsSubnet.id}")
.build_struct(),
);
}
§Import
Using pulumi import
, import Network ACL associations using the id
. For example:
$ pulumi import aws:ec2/networkAclAssociation:NetworkAclAssociation main aclassoc-02baf37f20966b3e6
Structs§
- Use builder syntax to set the inputs and finish with
build_struct()
.
Functions§
- Registers a new resource with the given unique name and arguments