modifyVpcAttribute

Modifies the specified attribute of the specified VPC.

Samples

import aws.sdk.kotlin.services.ec2.model.AttributeBooleanValue

fun main() { 
   //sampleStart 
   // This example modifies the enableDnsSupport attribute. This attribute indicates whether DNS
// resolution is enabled for the VPC. If this attribute is true, the Amazon DNS server resolves DNS hostnames for
// instances in the VPC to their corresponding IP addresses otherwise, it does not.
ec2Client.modifyVpcAttribute {
    vpcId = "vpc-a01106c2"
    enableDnsSupport = AttributeBooleanValue {
        value = false
    }
} 
   //sampleEnd
}
import aws.sdk.kotlin.services.ec2.model.AttributeBooleanValue

fun main() { 
   //sampleStart 
   // This example modifies the enableDnsHostnames attribute. This attribute indicates whether instances
// launched in the VPC get DNS hostnames. If this attribute is true, instances in the VPC get DNS hostnames
// otherwise, they do not.
ec2Client.modifyVpcAttribute {
    vpcId = "vpc-a01106c2"
    enableDnsHostnames = AttributeBooleanValue {
        value = false
    }
} 
   //sampleEnd
}