API ini digunakan untuk memeriksa apakah instance utama RDS PostgreSQL memenuhi prasyarat untuk membuat instance analitik DuckDB. Untuk kondisi yang tidak terpenuhi, alasan kegagalan dikembalikan beserta solusi atau nilai target yang direkomendasikan.
Deskripsi operasi
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
rds:PrecheckDuckDBDependency |
get |
*DBInstance
|
None | None |
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
ID instance utama. |
pgm-2zegy5pdkg58**** |
| TargetMode |
string |
No |
readOnly |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Rincian parameter respons. |
||
| FailedCheckItems |
array<object> |
Item-item yang tidak memenuhi persyaratan untuk membuat instance analitik DuckDB. |
|
|
object |
|||
| AllowAutoModify |
boolean |
Menunjukkan apakah perbaikan satu klik didukung.
Penting Ketika versi utama instance database tidak memenuhi persyaratan, peningkatan manual diperlukan. Valid values:
|
false |
| CurrentValue |
string |
Nilai item pemeriksaan saat ini. |
15.0 |
| Name |
string |
Nama item pemeriksaan. |
MajorVersion |
| RequiredValue |
string |
Nilai target (atau rentang target) dari item pemeriksaan. |
17.0 |
| Type |
string |
Item pemeriksaan. Nilai yang valid:
Valid values:
|
Parameter |
| Result |
boolean |
Menunjukkan apakah pemeriksaan prasyarat untuk membuat instance analitik DuckDB lulus. Nilai yang valid:
Valid values:
|
false |
Contoh
Respons sukses
JSONformat
{
"FailedCheckItems": [
{
"AllowAutoModify": true,
"CurrentValue": "15.0",
"Name": "MajorVersion",
"RequiredValue": "17.0",
"Type": "Parameter"
}
],
"Result": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. | |
| 400 | ReadonlyInstanceNotSupport | The operation is not permitted due to type of the instance. | |
| 400 | InvalidEngineVersion | The specified EngineVersion is invalid. | |
| 400 | MissingParameter.MinorVersionTag | You must specify the parameter MinorVersionTag. | |
| 400 | Workbench.InternalFailure | ECS workbench returns an internal failure. Please check password expiration policy and / or other issues. | |
| 400 | DuckDBOperationConflictBetweenPrimaryAndReadOnlyInstance | Current instance is already attached to another duckdb instance, operation is conflict. | |
| 500 | InternalFailure | The request processing has failed due to some unknown error, exception or failure. | |
| 403 | ReadOnlyInstanceNotSupport | Read-only instance does not support this operation. | |
| 403 | DBInstanceStatusNotActive | The status of the current instance is not active. | |
| 403 | IncorrectDBInstanceType | The database instance type does not support the operation. | |
| 403 | GroupReplicationNotSupport.InvalidEngineVersion | Group Replication requires the instance engine version to be 8.0. | |
| 403 | IncorrectDBInstance | The current DB instance does not support this operation. | |
| 403 | IncorrectDBInstanceState | Current DB instance state does not support this operation. | |
| 404 | IncorrectDBInstanceLockMode | Current DB instance lock mode does not support this operation. | |
| 404 | InvalidDBInstance.NotFound | The specified instance does not exist or is not supported. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.