pub enum CreateBasinIntent {
CreateOnly {
config: BasinConfig,
request_token: Option<RequestToken>,
},
CreateOrReconfigure {
reconfiguration: BasinReconfiguration,
},
}Expand description
Basin creation operation intent.
Separates POST-style create-only requests, which carry a complete creation config and optional idempotency token, from PUT-style create-or-reconfigure requests, which carry only a reconfiguration patch.
Variants§
CreateOnly
Create a new basin.
HTTP POST semantics: idempotent if a request token is provided and the basin was previously created using the same token and config.
Fields
config: BasinConfigComplete basin configuration for a new basin.
request_token: Option<RequestToken>Optional request token used to make create retries idempotent.
CreateOrReconfigure
Create a new basin or reconfigure it if it already exists.
HTTP PUT semantics: always idempotent. When the basin already exists, unspecified fields in the reconfiguration preserve the existing config.
Fields
reconfiguration: BasinReconfigurationBasin reconfiguration patch to apply on create-or-reconfigure.