modify-cluster-maintenance
Description
Modifies the maintenance settings of a cluster.
See also: AWS API Documentation
Synopsis
modify-cluster-maintenance
--cluster-identifier <value>
[--defer-maintenance | --no-defer-maintenance]
[--defer-maintenance-identifier <value>]
[--defer-maintenance-start-time <value>]
[--defer-maintenance-end-time <value>]
[--defer-maintenance-duration <value>]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
Options
--cluster-identifier (string)
--defer-maintenance | --no-defer-maintenance (boolean)
--defer-maintenance-identifier (string)
--defer-maintenance-start-time (timestamp)
--defer-maintenance-end-time (timestamp)
--defer-maintenance-duration (integer)
--cli-input-json | --cli-input-yaml (string) Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml.
--generate-cli-skeleton (string) Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input, prints a sample input JSON that can be used as an argument for --cli-input-json. Similarly, if provided yaml-input it will print a sample input YAML that can be used with --cli-input-yaml. If provided with the value output, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.
Global Options
--debug (boolean)
Turn on debug logging.
--endpoint-url (string)
Override command’s default URL with the given URL.
--no-verify-ssl (boolean)
By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.
--no-paginate (boolean)
Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.
--output (string)
The formatting style for command output.
- json
- text
- table
- yaml
- yaml-stream
--query (string)
A JMESPath query to use in filtering the response data.
--profile (string)
Use a specific profile from your credential file.
--region (string)
The region to use. Overrides config/env settings.
--version (string)
Display the version of this tool.
--color (string)
Turn on/off color output.
- on
- off
- auto
--no-sign-request (boolean)
Do not sign requests. Credentials will not be loaded if this argument is provided.
--ca-bundle (string)
The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.
--cli-read-timeout (int)
The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.
--cli-connect-timeout (int)
The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.
--cli-binary-format (string)
The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob fileb:// will always be treated as binary and use the file contents directly regardless of the cli-binary-format setting. When using file:// the file contents will need to properly formatted for the configured cli-binary-format.
- base64
- raw-in-base64-out
--no-cli-pager (boolean)
Disable cli pager for output.
--cli-auto-prompt (boolean)
Automatically prompt for CLI input parameters.
--no-cli-auto-prompt (boolean)
Disable automatically prompt for CLI input parameters.
Examples
Note
To use the following examples, you must have the AWS CLI installed and configured. See the Getting started guide in the AWS CLI User Guide for more information.
Unless otherwise stated, all examples have unix-like quotation rules. These examples will need to be adapted to your terminal’s quoting rules. See Using quotation marks with strings in the AWS CLI User Guide .
To modify cluster maintenance
The following modify-cluster-maintenance example defers the maintenance of the specified cluster by 30 days.
aws redshift modify-cluster-maintenance \
--cluster-identifier mycluster \
--defer-maintenance \
--defer-maintenance-duration 30
Output:
{
"Cluster": {
"ClusterIdentifier": "mycluster",
"NodeType": "dc2.large",
"ClusterStatus": "available",
"ClusterAvailabilityStatus": "Available",
"MasterUsername": "adminuser",
"DBName": "dev",
"Endpoint": {
"Address": "mycluster.cmeaswqeuae.us-west-2.redshift.amazonaws.com",
"Port": 5439
},
"ClusterCreateTime": "2019-12-05T18:44:36.991Z",
"AutomatedSnapshotRetentionPeriod": 3,
"ManualSnapshotRetentionPeriod": -1,
"ClusterSecurityGroups": [],
"VpcSecurityGroups": [
{
"VpcSecurityGroupId": "sh-a1a123ab",
"Status": "active"
}
],
"ClusterParameterGroups": [
{
"ParameterGroupName": "default.redshift-1.0",
"ParameterApplyStatus": "in-sync"
}
],
"ClusterSubnetGroupName": "default",
"VpcId": "vpc-b1ael7t9",
"AvailabilityZone": "us-west-2f",
"PreferredMaintenanceWindow": "sat:16:00-sat:16:30",
"PendingModifiedValues": {
"NodeType": "dc2.large",
"NumberOfNodes": 2,
"ClusterType": "multi-node"
},
"ClusterVersion": "1.0",
"AllowVersionUpgrade": true,
"NumberOfNodes": 4,
"PubliclyAccessible": false,
"Encrypted": false,
"ClusterSnapshotCopyStatus": {
"DestinationRegion": "us-west-1",
"RetentionPeriod": 7,
"ManualSnapshotRetentionPeriod": -1
},
"Tags": [
{
"Key": "mytags",
"Value": "tag1"
}
],
"EnhancedVpcRouting": false,
"IamRoles": [],
"MaintenanceTrackName": "current",
"DeferredMaintenanceWindows": [
{
"DeferMaintenanceIdentifier": "dfm-mUdVIfFcT1B4SGhw6fyF",
"DeferMaintenanceStartTime": "2019-12-10T18:18:39.354Z",
"DeferMaintenanceEndTime": "2020-01-09T18:18:39.354Z"
}
],
"ExpectedNextSnapshotScheduleTime": "2019-12-11T04:42:55.631Z",
"ExpectedNextSnapshotScheduleTimeStatus": "OnTrack",
"NextMaintenanceWindowStartTime": "2020-01-11T16:00:00Z"
}
}
For more information, see Cluster Maintenance in the Amazon Redshift Cluster Management Guide.
Output
Cluster -> (structure)
Describes a cluster.
ClusterIdentifier -> (string)
NodeType -> (string)
ClusterStatus -> (string)
The current state of the cluster. Possible values are the following:
availableavailable, prep-for-resizeavailable, resize-cleanupcancelling-resizecreatingdeletingfinal-snapshothardware-failureincompatible-hsmincompatible-networkincompatible-parametersincompatible-restoremodifyingpausedrebootingrenamingresizingrotating-keysstorage-fullupdating-hsm
ClusterAvailabilityStatus -> (string)
The availability status of the cluster for queries. Possible values are the following:
- Available - The cluster is available for queries.
- Unavailable - The cluster is not available for queries.
- Maintenance - The cluster is intermittently available for queries due to maintenance activities.
- Modifying - The cluster is intermittently available for queries due to changes that modify the cluster.
- Failed - The cluster failed and is not available for queries.
ModifyStatus -> (string)
MasterUsername -> (string)
DBName -> (string)
dev dev was created by default.Endpoint -> (structure)
The connection endpoint.
Address -> (string)
Port -> (integer)
VpcEndpoints -> (list)
Describes a connection endpoint.
(structure)
The connection endpoint for connecting to an Amazon Redshift cluster through the proxy.
VpcEndpointId -> (string)
VpcId -> (string)
NetworkInterfaces -> (list)
One or more network interfaces of the endpoint. Also known as an interface endpoint.
(structure)
Describes a network interface.
NetworkInterfaceId -> (string)
SubnetId -> (string)
PrivateIpAddress -> (string)
AvailabilityZone -> (string)
Ipv6Address -> (string)
ClusterCreateTime -> (timestamp)
AutomatedSnapshotRetentionPeriod -> (integer)
ManualSnapshotRetentionPeriod -> (integer)
The default number of days to retain a manual snapshot. If the value is -1, the snapshot is retained indefinitely. This setting doesn’t change the retention period of existing snapshots.
The value must be either -1 or an integer between 1 and 3,653.
ClusterSecurityGroups -> (list)
A list of cluster security group that are associated with the cluster. Each security group is represented by an element that contains ClusterSecurityGroup.Name and ClusterSecurityGroup.Status subelements.
Cluster security groups are used when the cluster is not created in an Amazon Virtual Private Cloud (VPC). Clusters that are created in a VPC use VPC security groups, which are listed by the VpcSecurityGroups parameter.
(structure)
Describes a cluster security group.
ClusterSecurityGroupName -> (string)
Status -> (string)
VpcSecurityGroups -> (list)
A list of Amazon Virtual Private Cloud (Amazon VPC) security groups that are associated with the cluster. This parameter is returned only if the cluster is in a VPC.
(structure)
Describes the members of a VPC security group.
VpcSecurityGroupId -> (string)
Status -> (string)
ClusterParameterGroups -> (list)
The list of cluster parameter groups that are associated with this cluster. Each parameter group in the list is returned with its status.
(structure)
Describes the status of a parameter group.
ParameterGroupName -> (string)
ParameterApplyStatus -> (string)
ClusterParameterStatusList -> (list)
The list of parameter statuses.
For more information about parameters and parameter groups, go to Amazon Redshift Parameter Groups in the Amazon Redshift Cluster Management Guide .
(structure)
Describes the status of a parameter group.
ParameterName -> (string)
ParameterApplyStatus -> (string)
The status of the parameter that indicates whether the parameter is in sync with the database, waiting for a cluster reboot, or encountered an error when being applied.
The following are possible statuses and descriptions.
-
in-sync: The parameter value is in sync with the database. -
pending-reboot: The parameter value will be applied after the cluster reboots. -
applying: The parameter value is being applied to the database. -
invalid-parameter: Cannot apply the parameter value because it has an invalid value or syntax. -
apply-deferred: The parameter contains static property changes. The changes are deferred until the cluster reboots. -
apply-error: Cannot connect to the cluster. The parameter change will be applied after the cluster reboots. -
unknown-error: Cannot apply the parameter change right now. The change will be applied after the cluster reboots.
ParameterApplyErrorDescription -> (string)
ClusterSubnetGroupName -> (string)
VpcId -> (string)
AvailabilityZone -> (string)
PreferredMaintenanceWindow -> (string)
PendingModifiedValues -> (structure)
A value that, if present, indicates that changes to the cluster are pending. Specific pending changes are identified by subelements.
MasterUserPassword -> (string)
NodeType -> (string)
NumberOfNodes -> (integer)
ClusterType -> (string)
ClusterVersion -> (string)
AutomatedSnapshotRetentionPeriod -> (integer)
ClusterIdentifier -> (string)
PubliclyAccessible -> (boolean)
EnhancedVpcRouting -> (boolean)
An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see Enhanced VPC Routing in the Amazon Redshift Cluster Management Guide.
If this option is true , enhanced VPC routing is enabled.
Default: false
MaintenanceTrackName -> (string)
EncryptionType -> (string)
ClusterVersion -> (string)
AllowVersionUpgrade -> (boolean)
true , indicates that major version upgrades will be applied automatically to the cluster during the maintenance window.NumberOfNodes -> (integer)
PubliclyAccessible -> (boolean)
A boolean value that, if true , indicates that the cluster can be accessed from a public network.
Default: false
Encrypted -> (boolean)
true , indicates that data in the cluster is encrypted at rest.RestoreStatus -> (structure)
A value that describes the status of a cluster restore action. This parameter returns null if the cluster was not created by restoring a snapshot.
Status -> (string)
CurrentRestoreRateInMegaBytesPerSecond -> (double)
SnapshotSizeInMegaBytes -> (long)
ProgressInMegaBytes -> (long)
ElapsedTimeInSeconds -> (long)
EstimatedTimeToCompletionInSeconds -> (long)
DataTransferProgress -> (structure)
Status -> (string)
transferringdata .CurrentRateInMegaBytesPerSecond -> (double)
TotalDataInMegaBytes -> (long)
DataTransferredInMegaBytes -> (long)
EstimatedTimeToCompletionInSeconds -> (long)
ElapsedTimeInSeconds -> (long)
HsmStatus -> (structure)
A value that reports whether the Amazon Redshift cluster has finished applying any hardware security module (HSM) settings changes specified in a modify cluster command.
Values: active, applying
HsmClientCertificateIdentifier -> (string)
HsmConfigurationIdentifier -> (string)
Status -> (string)
Reports whether the Amazon Redshift cluster has finished applying any HSM settings changes specified in a modify cluster command.
Values: active, applying
ClusterSnapshotCopyStatus -> (structure)
A value that returns the destination region and retention period that are configured for cross-region snapshot copy.
DestinationRegion -> (string)
RetentionPeriod -> (long)
ManualSnapshotRetentionPeriod -> (integer)
The number of days that automated snapshots are retained in the destination region after they are copied from a source region. If the value is -1, the manual snapshot is retained indefinitely.
The value must be either -1 or an integer between 1 and 3,653.
SnapshotCopyGrantName -> (string)
ClusterPublicKey -> (string)
ClusterNodes -> (list)
The nodes in the cluster.
(structure)
The identifier of a node in a cluster.
NodeRole -> (string)
PrivateIPAddress -> (string)
PublicIPAddress -> (string)
ElasticIpStatus -> (structure)
The status of the elastic IP (EIP) address.
ElasticIp -> (string)
Status -> (string)
ClusterRevisionNumber -> (string)
Tags -> (list)
The list of tags for the cluster.
(structure)
A tag consisting of a name/value pair for a resource.
Key -> (string)
Value -> (string)
KmsKeyId -> (string)
EnhancedVpcRouting -> (boolean)
An option that specifies whether to create the cluster with enhanced VPC routing enabled. To create a cluster that uses enhanced VPC routing, the cluster must be in a VPC. For more information, see Enhanced VPC Routing in the Amazon Redshift Cluster Management Guide.
If this option is true , enhanced VPC routing is enabled.
Default: false
IamRoles -> (list)
A list of Identity and Access Management (IAM) roles that can be used by the cluster to access other Amazon Web Services services.
(structure)
An Identity and Access Management (IAM) role that can be used by the associated Amazon Redshift cluster to access other Amazon Web Services services.
IamRoleArn -> (string)
arn:aws:iam::123456789012:role/RedshiftCopyUnload .ApplyStatus -> (string)
A value that describes the status of the IAM role’s association with an Amazon Redshift cluster.
The following are possible statuses and descriptions.
-
in-sync: The role is available for use by the cluster. -
adding: The role is in the process of being associated with the cluster. -
removing: The role is in the process of being disassociated with the cluster.
PendingActions -> (list)
Cluster operations that are waiting to be started.
(string)
MaintenanceTrackName -> (string)
ElasticResizeNumberOfNodeOptions -> (string)
DeferredMaintenanceWindows -> (list)
Describes a group of DeferredMaintenanceWindow objects.
(structure)
Describes a deferred maintenance window
DeferMaintenanceIdentifier -> (string)
DeferMaintenanceStartTime -> (timestamp)
DeferMaintenanceEndTime -> (timestamp)
SnapshotScheduleIdentifier -> (string)
SnapshotScheduleState -> (string)
ExpectedNextSnapshotScheduleTime -> (timestamp)
ExpectedNextSnapshotScheduleTimeStatus -> (string)
The status of next expected snapshot for clusters having a valid snapshot schedule and backups enabled. Possible values are the following:
- OnTrack - The next snapshot is expected to be taken on time.
- Pending - The next snapshot is pending to be taken.
NextMaintenanceWindowStartTime -> (timestamp)
ResizeInfo -> (structure)
Returns the following:
- AllowCancelResize: a boolean value indicating if the resize operation can be cancelled.
- ResizeType: Returns ClassicResize
ResizeType -> (string)
ClassicResize .AllowCancelResize -> (boolean)
AvailabilityZoneRelocationStatus -> (string)
ClusterNamespaceArn -> (string)
TotalStorageCapacityInMegaBytes -> (long)
AquaConfiguration -> (structure)
This field is retired. Amazon Redshift automatically determines whether to use AQUA (Advanced Query Accelerator).
AquaStatus -> (string)
AquaConfigurationStatus -> (string)
DefaultIamRoleArn -> (string)
ReservedNodeExchangeStatus -> (structure)
The status of the reserved-node exchange request. Statuses include in-progress and requested.
ReservedNodeExchangeRequestId -> (string)
Status -> (string)
RequestTime -> (timestamp)
SourceReservedNodeId -> (string)
SourceReservedNodeType -> (string)
SourceReservedNodeCount -> (integer)
TargetReservedNodeOfferingId -> (string)
TargetReservedNodeType -> (string)
TargetReservedNodeCount -> (integer)
CustomDomainName -> (string)
CustomDomainCertificateArn -> (string)
CustomDomainCertificateExpiryDate -> (timestamp)
MasterPasswordSecretArn -> (string)
MasterPasswordSecretKmsKeyId -> (string)
IpAddressType -> (string)
ipv4 and dualstack .MultiAZ -> (string)
MultiAZSecondary -> (structure)
The secondary compute unit of a cluster, if Multi-AZ deployment is turned on.
AvailabilityZone -> (string)
ClusterNodes -> (list)
The nodes in the secondary compute unit.
(structure)
The identifier of a node in a cluster.
NodeRole -> (string)
PrivateIPAddress -> (string)
PublicIPAddress -> (string)
© Copyright 2025, Amazon Web Services. Created using Sphinx.