NetworkAclAssociation

class NetworkAclAssociation : KotlinCustomResource

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

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2.NetworkAclAssociation;
import com.pulumi.aws.ec2.NetworkAclAssociationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var main = new NetworkAclAssociation("main", NetworkAclAssociationArgs.builder()
.networkAclId(aws_network_acl.main().id())
.subnetId(aws_subnet.main().id())
.build());
}
}

Properties

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val networkAclId: Output<String>

The ID of the network ACL.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val subnetId: Output<String>

The ID of the associated Subnet.

Link copied to clipboard
val urn: Output<String>