Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Modifies the maintenance settings of a cluster.
Synopsis
- data ModifyClusterMaintenance = ModifyClusterMaintenance' {}
- newModifyClusterMaintenance :: Text -> ModifyClusterMaintenance
- modifyClusterMaintenance_deferMaintenanceEndTime :: Lens' ModifyClusterMaintenance (Maybe UTCTime)
- modifyClusterMaintenance_deferMaintenance :: Lens' ModifyClusterMaintenance (Maybe Bool)
- modifyClusterMaintenance_deferMaintenanceDuration :: Lens' ModifyClusterMaintenance (Maybe Int)
- modifyClusterMaintenance_deferMaintenanceStartTime :: Lens' ModifyClusterMaintenance (Maybe UTCTime)
- modifyClusterMaintenance_deferMaintenanceIdentifier :: Lens' ModifyClusterMaintenance (Maybe Text)
- 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.
ModifyClusterMaintenance' | |
|
Instances
newModifyClusterMaintenance Source #
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:deferMaintenanceEndTime: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.
$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.
$sel:deferMaintenanceStartTime:ModifyClusterMaintenance'
, modifyClusterMaintenance_deferMaintenanceStartTime
- A timestamp indicating the start time for the deferred maintenance
window.
$sel:deferMaintenanceIdentifier:ModifyClusterMaintenance'
, modifyClusterMaintenance_deferMaintenanceIdentifier
- A unique identifier for the deferred maintenance window.
$sel:clusterIdentifier:ModifyClusterMaintenance'
, modifyClusterMaintenance_clusterIdentifier
- A unique identifier for the cluster.
Request Lenses
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_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_deferMaintenanceStartTime :: Lens' ModifyClusterMaintenance (Maybe UTCTime) Source #
A timestamp indicating the start time for the deferred maintenance window.
modifyClusterMaintenance_deferMaintenanceIdentifier :: Lens' ModifyClusterMaintenance (Maybe Text) Source #
A unique identifier 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.
ModifyClusterMaintenanceResponse' | |
|
Instances
Eq ModifyClusterMaintenanceResponse Source # | |
Read ModifyClusterMaintenanceResponse Source # | |
Show ModifyClusterMaintenanceResponse Source # | |
Generic ModifyClusterMaintenanceResponse Source # | |
NFData ModifyClusterMaintenanceResponse Source # | |
Defined in Amazonka.Redshift.ModifyClusterMaintenance rnf :: ModifyClusterMaintenanceResponse -> () # | |
type Rep ModifyClusterMaintenanceResponse Source # | |
Defined in Amazonka.Redshift.ModifyClusterMaintenance type Rep ModifyClusterMaintenanceResponse = D1 ('MetaData "ModifyClusterMaintenanceResponse" "Amazonka.Redshift.ModifyClusterMaintenance" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "ModifyClusterMaintenanceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "cluster") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Cluster)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
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.