describeInternetGateways

Describes one or more of your internet gateways.

Samples

import aws.sdk.kotlin.services.ec2.model.Filter
fun main() { 
   //sampleStart 
   // This example describes the Internet gateway for the specified VPC.
val resp = ec2Client.describeInternetGateways {
    filters = listOf<Filter>(
        Filter {
            name = "attachment.vpc-id"
            values = listOf<String>(
                "vpc-a01106c2"
            )
        }            
    )
} 
   //sampleEnd
}