Pilih preferensi cookie Anda

Kami menggunakan cookie penting serta alat serupa yang diperlukan untuk menyediakan situs dan layanan. Kami menggunakan cookie performa untuk mengumpulkan statistik anonim sehingga kami dapat memahami cara pelanggan menggunakan situs dan melakukan perbaikan. Cookie penting tidak dapat dinonaktifkan, tetapi Anda dapat mengklik “Kustom” atau “Tolak” untuk menolak cookie performa.

Jika Anda setuju, AWS dan pihak ketiga yang disetujui juga akan menggunakan cookie untuk menyediakan fitur situs yang berguna, mengingat preferensi Anda, dan menampilkan konten yang relevan, termasuk iklan yang relevan. Untuk menerima atau menolak semua cookie yang tidak penting, klik “Terima” atau “Tolak”. Untuk membuat pilihan yang lebih detail, klik “Kustomisasi”.

CreateDefaultVpc - Amazon Elastic Compute Cloud
Halaman ini belum diterjemahkan ke dalam bahasa Anda. Minta terjemahan

CreateDefaultVpc

Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet in each Availability Zone. For more information about the components of a default VPC, see Default VPCs in the Amazon VPC User Guide. You cannot specify the components of the default VPC yourself.

If you deleted your previous default VPC, you can create a default VPC. You cannot have more than one default VPC per Region.

Request Parameters

For more information about required and optional parameters that are common to all actions, see Common Query Parameters.

DryRun

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Type: Boolean

Required: No

Response Elements

The following elements are returned by the service.

requestId

The ID of the request.

Type: String

vpc

Information about the VPC.

Type: Vpc object

Errors

For information about the errors that are common to all actions, see Common client error codes.

Examples

Example

This example creates a default VPC.

Sample Request

https://ec2.amazonaws.com/?Action=CreateDefaultVpc &AUTHPARAMS

Sample Response

<CreateDefaultVpcResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"> <requestId>056298f3-5f3e-48fb-9221-7c0example</requestId> <vpc> <cidrBlock>172.31.0.0/16</cidrBlock> <dhcpOptionsId>dopt-61079b07</dhcpOptionsId> <instanceTenancy>default</instanceTenancy> <ipv6CidrBlockAssociationSet/> <isDefault>true</isDefault> <state>pending</state> <tagSet/> <vpcId>vpc-3f139646</vpcId> </vpc> </CreateDefaultVpcResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

PrivasiSyarat situsPreferensi cookie
© 2025, Amazon Web Services, Inc. atau afiliasinya. Semua hak dilindungi undang-undang.