createInternetGateway
inline suspend fun Ec2Client.createInternetGateway(crossinline block: CreateInternetGatewayRequest.Builder.() -> Unit): CreateInternetGatewayResponse
Creates an internet gateway for use with a VPC. After creating the internet gateway, you attach it to a VPC using AttachInternetGateway.
For more information, see Internet gateways in the Amazon VPC User Guide.
Samples
fun main() {
//sampleStart
// This example creates an Internet gateway.
val resp = ec2Client.createInternetGateway()
//sampleEnd
}