Mengubah nama dan deskripsi koneksi VPC pada Router transit Edisi Perusahaan serta mengontrol pengiklanan rute otomatis ke VPC.
Deskripsi operasi
UpdateTransitRouterVpcAttachmentAttribute is an asynchronous operation. After you send a request, the system returns a RequestId and completes the modification in the background. To query the status of the VPC connection, call ListTransitRouterVpcAttachments.
-
If a VPC connection is in the Modifying state, you can only query it.
-
If a VPC connection is in the Attached state, the modification is complete.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cen:UpdateTransitRouterVpcAttachmentAttribute |
update |
*TransitRouterVpcAttachment
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menghasilkan token dari klien Anda, tetapi Anda harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Token klien hanya dapat berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan RequestId dari permintaan sebagai ClientToken. RequestId mungkin berbeda untuk setiap permintaan. |
02fb3da4-130e-11e9-8e44-001**** |
| TransitRouterAttachmentId |
string |
Yes |
ID koneksi VPC. |
tr-attach-nls9fzkfat8934**** |
| TransitRouterAttachmentName |
string |
No |
Nama baru koneksi VPC. Nama dapat dikosongkan atau memiliki panjang 1 hingga 128 karakter, dan tidak boleh dimulai dengan http:// atau https://. |
testname |
| TransitRouterAttachmentDescription |
string |
No |
Deskripsi baru koneksi VPC. Deskripsi dapat dikosongkan atau memiliki panjang 1 hingga 256 karakter, dan tidak boleh dimulai dengan http:// atau https://. |
testdesc |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run, yang memeriksa masalah seperti izin dan status instans. Nilai valid:
|
false |
| TransitRouterVPCAttachmentOptions |
object |
No |
Properti fitur koneksi VPC. Parameter ini sudah usang. Kami merekomendasikan Anda menggunakan parameter |
|
|
string |
No |
The feature properties of the VPC connection. This parameter is deprecated. We recommend that you use the ipv6Support: Specifies whether to enable IPv6.
Catatan
Before you enable IPv6 for a VPC connection, make sure that IPv6 is enabled for the VPC and the vSwitches in the VPC. For more information, see AllocateVpcIpv6Cidr and CreateVSwitchCidrReservation. |
ipv6Support:enable |
|
| AutoPublishRouteEnabled |
boolean |
No |
Apakah akan mengizinkan Router transit Edisi Perusahaan untuk mengiklankan rute secara otomatis ke VPC.
|
true |
| OrderType |
string |
No |
Metode penagihan. |
|
| OrderType |
string |
No |
Metode penagihan. |
PayByCenOwner |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
7E61D334-4025-41EF-9145-FC327B35301D |
Contoh
Respons sukses
JSONformat
{
"RequestId": "7E61D334-4025-41EF-9145-FC327B35301D"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectStatus.TransitRouterAttachmentId | TransitRouterAttachmentId status is invalid. | |
| 400 | InvalidTransitRouterAttachmentId.NotFound | TransitRouterAttachmentId is not found. | |
| 400 | InvalidOperation.RegionNotSupport | The operation is not supported in this region. | |
| 400 | InvalidOperation.VpcAutoRoutesPublishInOtherCEN | The operation is not supported because the VPC is already set autoRoutesPublish in other CEN. | |
| 400 | QuotaExceeded.VpcAutoRoutesPublishPerTransitRouter | The count of VPC instance which set autoRoutesPublish in transitRouter is over limit. | |
| 400 | InvalidOperation.VpnAssociated | The operation is not supported because the VPC is associated with VPN. | |
| 400 | IllegalParam.Ipv6Support | Ipv6Support is illegal. Valid Values are [enable, disable]. | |
| 400 | OperationFailed.VSwitchNotFound | The specified vswitch not found. | |
| 400 | OperationFailed.VSwitchIpv6CidrNotAllocated | The specified vswitch does not have IPv6 address allocated. | |
| 400 | OperationInvalid.AttachmentReferencedIPv6RouteEntryExisted | Operation is failed because there is at least one route entry(IPv6) which next hop is the specified attachment. | |
| 400 | OperationInvalid.AttachmentReferencedVpcIPv6RouteEntryExisted | The specified attachment is referenced by vpc route entry(IPv6). | |
| 400 | OperationInvalid.EniReferencedIPv6RouteEntryExisted | Operation is failed because there is at least one route entry(IPv6) which next hop is network interface that the specified attachment referenced. | |
| 400 | OperationUnsupported.VpcRoutePropagationSource | The operation on this VPC route propagation source is not supported. | |
| 400 | OperationUnsupported.TransitRouterType | The specified TransitRouterType does not support the operation. | |
| 400 | InvalidParameter | Invalid parameter. | |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | |
| 400 | INVALID_OPERATION_RESOURCE_NOT_SUPPORT_APPLIANCE_MODE | Only VPC attachment support appliance mode. | |
| 400 | InvalidParameter.Ipv6Support | The specified parameter Ipv6Support is invalid. | |
| 400 | InvalidParameter.ApplianceModeSupport | The specified parameter ApplianceModeSupport is invalid. | |
| 400 | ParamExclusive.TransitRouterVPCAttachmentOptionsAndOptions | When creating or modifying a VPC attachment, the input parameter TransitRouterVPCAttachmentOptions and Options cannot be used at the same time. | |
| 400 | InvalidParameter.OrderType | The specified parameter OrderType is invalid. | |
| 400 | InvalidOperation.OrderTypeMustMatchGrantCrossAccount | The OrderType must be the same as the OrderType in the grant cross-account record. | |
| 400 | OperationFailed.GrantCrossAccountNotExist | Cross-account authorization does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.