Operasi UpdateVpcEndpointServiceResourceAttribute mengaktifkan atau menonaktifkan alokasi otomatis untuk sebuah service resource dari endpoint service.
Deskripsi operasi
Sebelum memodifikasi properti service resource, pastikan endpoint service berada dalam status Active. Anda dapat memanggil operasi GetVpcEndpointServiceAttribute untuk memeriksa status endpoint service tersebut.
Operasi UpdateVpcEndpointServiceResourceAttribute tidak mendukung modifikasi konkuren terhadap properti service resource yang termasuk dalam endpoint service yang sama.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
privatelink:UpdateVpcEndpointServiceResourceAttribute |
update |
*VpcEndpointService
*LoadBalancer
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah tempat Anda ingin memodifikasi service resource. Panggil operasi DescribeRegions untuk mendapatkan ID wilayah tersebut. |
cn-hangzhou |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Buat nilai parameter dari klien Anda untuk memastikan nilainya unik di antara permintaan yang berbeda. ClientToken hanya boleh berisi karakter ASCII. |
0c593ea1-3bea-11e9-b96b-88e9fe637760 |
| DryRun |
boolean |
No |
Menentukan apakah akan melakukan dry run. Nilai yang valid:
|
false |
| ServiceId |
string |
Yes |
ID endpoint service. |
epsrv-hp3vpx8yqxblby3i**** |
| ResourceId |
string |
Yes |
ID service resource. |
lb-hp32z1wp5peaoox2q**** |
| ZoneId |
string |
No |
Zona tempat service resource berada. Parameter ini wajib ditentukan jika service resource merupakan Application Load Balancer (ALB), Network Load Balancer (NLB), atau Gateway Load Balancer (GWLB). |
cn-hangzhou-i |
| AutoAllocatedEnabled |
boolean |
Yes |
Menentukan apakah akan mengaktifkan alokasi sumber daya otomatis. Nilai yang valid:
|
true |
| RegionId |
string |
Yes |
ID wilayah tempat Anda ingin memodifikasi service resource. Panggil operasi DescribeRegions untuk mendapatkan ID wilayah tersebut. |
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | EndpointServiceNotFound | The specified Service does not exist. | The specified Service does not exist. |
| 400 | EndpointServiceLocked | The specified Service is locked. | The specified Service is locked. |
| 400 | EndpointServiceOperationDenied | The specified operation of endpoint service is not allowed. | The specified operation of endpoint service is not allowed. |
| 400 | EndpointServiceResourceNotFound | The specified service resource is not found. | |
| 400 | ResourceAutoAllocateViolation | The specified endpoint service must have at least one automatically allocated resource in one zone. | The specified endpoint service must have at least one automatically allocated resource in one zone. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.