| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Redshift.ModifyClusterMaintenance
Description
Modifies the maintenance settings of a cluster.
Synopsis
- data ModifyClusterMaintenance = ModifyClusterMaintenance' {}
- newModifyClusterMaintenance :: Text -> ModifyClusterMaintenance
- modifyClusterMaintenance_deferMaintenance :: Lens' ModifyClusterMaintenance (Maybe Bool)
- modifyClusterMaintenance_deferMaintenanceDuration :: Lens' ModifyClusterMaintenance (Maybe Int)
- modifyClusterMaintenance_deferMaintenanceEndTime :: Lens' ModifyClusterMaintenance (Maybe UTCTime)
- modifyClusterMaintenance_deferMaintenanceIdentifier :: Lens' ModifyClusterMaintenance (Maybe Text)
- modifyClusterMaintenance_deferMaintenanceStartTime :: Lens' ModifyClusterMaintenance (Maybe UTCTime)
- modifyClusterMaintenance_clusterIdentifier :: Lens' ModifyClusterMaintenance Text
- data ModifyClusterMaintenanceResponse = ModifyClusterMaintenanceResponse' {
- cluster :: Maybe Cluster
- httpStatus :: Int
- newModifyClusterMaintenanceResponse :: Int -> ModifyClusterMaintenanceResponse
- modifyClusterMaintenanceResponse_cluster :: Lens' ModifyClusterMaintenanceResponse (Maybe Cluster)
- modifyClusterMaintenanceResponse_httpStatus :: Lens' ModifyClusterMaintenanceResponse Int
Creating a Request
data ModifyClusterMaintenance Source #
See: newModifyClusterMaintenance smart constructor.
Constructors
| ModifyClusterMaintenance' | |
Fields
| |
Instances
newModifyClusterMaintenance Source #
Arguments
| :: Text | |
| -> ModifyClusterMaintenance |
Create a value of ModifyClusterMaintenance with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:deferMaintenance:ModifyClusterMaintenance', modifyClusterMaintenance_deferMaintenance - A boolean indicating whether to enable the deferred maintenance window.
$sel:deferMaintenanceDuration:ModifyClusterMaintenance', modifyClusterMaintenance_deferMaintenanceDuration - An integer indicating the duration of the maintenance window in days. If
you specify a duration, you can't specify an end time. The duration
must be 45 days or less.
ModifyClusterMaintenance, modifyClusterMaintenance_deferMaintenanceEndTime - A timestamp indicating end time for the deferred maintenance window. If
you specify an end time, you can't specify a duration.
ModifyClusterMaintenance, modifyClusterMaintenance_deferMaintenanceIdentifier - A unique identifier for the deferred maintenance window.
ModifyClusterMaintenance, modifyClusterMaintenance_deferMaintenanceStartTime - A timestamp indicating the start time for the deferred maintenance
window.
ModifyClusterMaintenance, modifyClusterMaintenance_clusterIdentifier - A unique identifier for the cluster.
Request Lenses
modifyClusterMaintenance_deferMaintenance :: Lens' ModifyClusterMaintenance (Maybe Bool) Source #
A boolean indicating whether to enable the deferred maintenance window.
modifyClusterMaintenance_deferMaintenanceDuration :: Lens' ModifyClusterMaintenance (Maybe Int) Source #
An integer indicating the duration of the maintenance window in days. If you specify a duration, you can't specify an end time. The duration must be 45 days or less.
modifyClusterMaintenance_deferMaintenanceEndTime :: Lens' ModifyClusterMaintenance (Maybe UTCTime) Source #
A timestamp indicating end time for the deferred maintenance window. If you specify an end time, you can't specify a duration.
modifyClusterMaintenance_deferMaintenanceIdentifier :: Lens' ModifyClusterMaintenance (Maybe Text) Source #
A unique identifier for the deferred maintenance window.
modifyClusterMaintenance_deferMaintenanceStartTime :: Lens' ModifyClusterMaintenance (Maybe UTCTime) Source #
A timestamp indicating the start time for the deferred maintenance window.
modifyClusterMaintenance_clusterIdentifier :: Lens' ModifyClusterMaintenance Text Source #
A unique identifier for the cluster.
Destructuring the Response
data ModifyClusterMaintenanceResponse Source #
See: newModifyClusterMaintenanceResponse smart constructor.
Constructors
| ModifyClusterMaintenanceResponse' | |
Fields
| |
Instances
newModifyClusterMaintenanceResponse Source #
Create a value of ModifyClusterMaintenanceResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:cluster:ModifyClusterMaintenanceResponse', modifyClusterMaintenanceResponse_cluster - Undocumented member.
$sel:httpStatus:ModifyClusterMaintenanceResponse', modifyClusterMaintenanceResponse_httpStatus - The response's http status code.
Response Lenses
modifyClusterMaintenanceResponse_cluster :: Lens' ModifyClusterMaintenanceResponse (Maybe Cluster) Source #
Undocumented member.
modifyClusterMaintenanceResponse_httpStatus :: Lens' ModifyClusterMaintenanceResponse Int Source #
The response's http status code.