PerformClusterActionRequest¶
- pydantic model openapi_client.models.perform_cluster_action_request.PerformClusterActionRequest¶
Request body for PUT /clusters/dwh (perform_cluster_action). Action is required. ActionArgs is required for schedule, snapshot, and maintenance actions; not required for pause_now, resume_now, or reboot.
- Fields:
- field action: StrictStr [Required] (alias 'Action')¶
Management action to perform on the DWH cluster. Provisioned Redshift supports all values below. Redshift Serverless only supports create_snapshot.
- Constraints:
strict = True
- field action_args: Optional[PerformClusterActionRequestActionArgs] = None (alias 'ActionArgs')¶
- to_str()¶
Returns the string representation of the model using alias
- Return type:
str
- to_json()¶
Returns the JSON representation of the model using alias
- Return type:
str
- classmethod from_json(json_str)¶
Create an instance of PerformClusterActionRequest from a JSON string
- Return type:
Optional[Self]
- to_dict()¶
Return the dictionary representation of the model using alias.
This has the following differences from calling pydantic’s self.model_dump(by_alias=True):
None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.
- Return type:
Dict[str,Any]
- classmethod from_dict(obj)¶
Create an instance of PerformClusterActionRequest from a dict
- Return type:
Optional[Self]