AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
DnsSupport (Default)
Edit-EC2VpcAttribute-VpcId <String>-EnableDnsSupport <Boolean>-EnableNetworkAddressUsageMetric <Boolean>-Select <String>-Force <SwitchParameter>-ClientConfig <AmazonEC2Config>DnsHostnames
Edit-EC2VpcAttribute-VpcId <String>-EnableDnsHostname <Boolean>-EnableNetworkAddressUsageMetric <Boolean>-Select <String>-Force <SwitchParameter>-ClientConfig <AmazonEC2Config>
| Required? | False |
| Position? | Named |
| Accept pipeline input? | True (ByPropertyName) |
| Required? | False |
| Position? | Named |
| Accept pipeline input? | True (ByPropertyName) |
| Aliases | EnableDnsHostnames |
| Required? | False |
| Position? | 2 |
| Accept pipeline input? | True (ByPropertyName) |
| Required? | False |
| Position? | Named |
| Accept pipeline input? | True (ByPropertyName) |
| Aliases | EnableNetworkAddressUsageMetrics |
| Required? | False |
| Position? | Named |
| Accept pipeline input? | True (ByPropertyName) |
| Required? | False |
| Position? | Named |
| Accept pipeline input? | True (ByPropertyName) |
| Required? | False |
| Position? | 1 |
| Accept pipeline input? | True (ByValue, ByPropertyName) |
| Required? | False |
| Position? | Named |
| Accept pipeline input? | True (ByPropertyName) |
| Aliases | AK |
| Required? | False |
| Position? | Named |
| Accept pipeline input? | True (ByValue, ByPropertyName) |
| Required? | False |
| Position? | Named |
| Accept pipeline input? | True (ByPropertyName) |
| Required? | False |
| Position? | Named |
| Accept pipeline input? | True (ByValue, ByPropertyName) |
| Required? | False |
| Position? | Named |
| Accept pipeline input? | True (ByPropertyName) |
| Aliases | AWSProfilesLocation, ProfilesLocation |
| Required? | False |
| Position? | Named |
| Accept pipeline input? | True (ByPropertyName) |
| Aliases | StoredCredentials, AWSProfileName |
| Required? | False |
| Position? | Named |
| Accept pipeline input? | True (ByPropertyName) |
| Aliases | RegionToCall |
| Required? | False |
| Position? | Named |
| Accept pipeline input? | True (ByPropertyName) |
| Aliases | SK, SecretAccessKey |
| Required? | False |
| Position? | Named |
| Accept pipeline input? | True (ByPropertyName) |
| Aliases | ST |
Edit-EC2VpcAttribute -VpcId vpc-12345678 -EnableDnsHostnames $trueThis example enables support for DNS hostnames for the specified VPC.
Edit-EC2VpcAttribute -VpcId vpc-12345678 -EnableDnsHostnames $falseThis example disables support for DNS hostnames for the specified VPC.
Edit-EC2VpcAttribute -VpcId vpc-12345678 -EnableDnsSupport $trueThis example enables support for DNS resolution for the specified VPC.
Edit-EC2VpcAttribute -VpcId vpc-12345678 -EnableDnsSupport $falseThis example disables support for DNS resolution for the specified VPC.
AWS Tools for PowerShell: 2.x.y.z