createInternetGateway
abstract suspend fun createInternetGateway(input: CreateInternetGatewayRequest = CreateInternetGatewayRequest { }): 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
// This example creates an Internet gateway.
val resp = ec2Client.createInternetGateway()Content copied to clipboard