createNetworkAcl
inline suspend fun Ec2Client.createNetworkAcl(crossinline block: CreateNetworkAclRequest.Builder.() -> Unit): CreateNetworkAclResponse
Creates a network ACL in a VPC. Network ACLs provide an optional layer of security (in addition to security groups) for the instances in your VPC.
For more information, see Network ACLs in the Amazon VPC User Guide.
Samples
fun main() {
//sampleStart
// This example creates a network ACL for the specified VPC.
val resp = ec2Client.createNetworkAcl {
vpcId = "vpc-a01106c2"
}
//sampleEnd
}