Redshift / Client / modify_cluster
modify_cluster#
- Redshift.Client.modify_cluster(**kwargs)#
Modifies the settings for a cluster.
You can also change node type and the number of nodes to scale up or down the cluster. When resizing a cluster, you must specify both the number of nodes and the node type even if one of the parameters does not change.
You can add another security or parameter group, or change the admin user password. Resetting a cluster password or modifying the security groups associated with a cluster do not need a reboot. However, modifying a parameter group requires a reboot for parameters to take effect. For more information about managing clusters, go to Amazon Redshift Clusters in the Amazon Redshift Cluster Management Guide.
See also: AWS API Documentation
Request Syntax
response = client.modify_cluster( ClusterIdentifier='string', ClusterType='string', NodeType='string', NumberOfNodes=123, ClusterSecurityGroups=[ 'string', ], VpcSecurityGroupIds=[ 'string', ], MasterUserPassword='string', ClusterParameterGroupName='string', AutomatedSnapshotRetentionPeriod=123, ManualSnapshotRetentionPeriod=123, PreferredMaintenanceWindow='string', ClusterVersion='string', AllowVersionUpgrade=True|False, HsmClientCertificateIdentifier='string', HsmConfigurationIdentifier='string', NewClusterIdentifier='string', PubliclyAccessible=True|False, ElasticIp='string', EnhancedVpcRouting=True|False, MaintenanceTrackName='string', Encrypted=True|False, KmsKeyId='string', AvailabilityZoneRelocation=True|False, AvailabilityZone='string', Port=123, ManageMasterPassword=True|False, MasterPasswordSecretKmsKeyId='string', IpAddressType='string' )
- Parameters:
ClusterIdentifier (string) –
[REQUIRED]
The unique identifier of the cluster to be modified.
Example:
examplecluster
ClusterType (string) –
The new cluster type.
When you submit your cluster resize request, your existing cluster goes into a read-only mode. After Amazon Redshift provisions a new cluster based on your resize requirements, there will be outage for a period while the old cluster is deleted and your connection is switched to the new cluster. You can use DescribeResize to track the progress of the resize request.
Valid Values:
multi-node | single-node
NodeType (string) –
The new node type of the cluster. If you specify a new node type, you must also specify the number of nodes parameter.
For more information about resizing clusters, go to Resizing Clusters in Amazon Redshift in the Amazon Redshift Cluster Management Guide.
Valid Values:
ds2.xlarge
|ds2.8xlarge
|dc1.large
|dc1.8xlarge
|dc2.large
|dc2.8xlarge
|ra3.xlplus
|ra3.4xlarge
|ra3.16xlarge
NumberOfNodes (integer) –
The new number of nodes of the cluster. If you specify a new number of nodes, you must also specify the node type parameter.
For more information about resizing clusters, go to Resizing Clusters in Amazon Redshift in the Amazon Redshift Cluster Management Guide.
Valid Values: Integer greater than
0
.ClusterSecurityGroups (list) –
A list of cluster security groups to be authorized on this cluster. This change is asynchronously applied as soon as possible.
Security groups currently associated with the cluster, and not in the list of groups to apply, will be revoked from the cluster.
Constraints:
Must be 1 to 255 alphanumeric characters or hyphens
First character must be a letter
Cannot end with a hyphen or contain two consecutive hyphens
(string) –
VpcSecurityGroupIds (list) –
A list of virtual private cloud (VPC) security groups to be associated with the cluster. This change is asynchronously applied as soon as possible.
(string) –
MasterUserPassword (string) –
The new password for the cluster admin user. This change is asynchronously applied as soon as possible. Between the time of the request and the completion of the request, the
MasterUserPassword
element exists in thePendingModifiedValues
element of the operation response.You can’t use
MasterUserPassword
ifManageMasterPassword
istrue
.Note
Operations never return the password, so this operation provides a way to regain access to the admin user account for a cluster if the password is lost.
Default: Uses existing setting.
Constraints:
Must be between 8 and 64 characters in length.
Must contain at least one uppercase letter.
Must contain at least one lowercase letter.
Must contain one number.
Can be any printable ASCII character (ASCII code 33-126) except
'
(single quote),"
(double quote),\
,/
, or@
.
ClusterParameterGroupName (string) –
The name of the cluster parameter group to apply to this cluster. This change is applied only after the cluster is rebooted. To reboot a cluster use RebootCluster.
Default: Uses existing setting.
Constraints: The cluster parameter group must be in the same parameter group family that matches the cluster version.
AutomatedSnapshotRetentionPeriod (integer) –
The number of days that automated snapshots are retained. If the value is 0, automated snapshots are disabled. Even if automated snapshots are disabled, you can still create manual snapshots when you want with CreateClusterSnapshot.
If you decrease the automated snapshot retention period from its current value, existing automated snapshots that fall outside of the new retention period will be immediately deleted.
You can’t disable automated snapshots for RA3 node types. Set the automated retention period from 1-35 days.
Default: Uses existing setting.
Constraints: Must be a value from 0 to 35.
ManualSnapshotRetentionPeriod (integer) –
The default for number of days that a newly created manual snapshot is retained. If the value is -1, the manual snapshot is retained indefinitely. This value doesn’t retroactively change the retention periods of existing manual snapshots.
The value must be either -1 or an integer between 1 and 3,653.
The default value is -1.
PreferredMaintenanceWindow (string) –
The weekly time range (in UTC) during which system maintenance can occur, if necessary. If system maintenance is necessary during the window, it may result in an outage.
This maintenance window change is made immediately. If the new maintenance window indicates the current time, there must be at least 120 minutes between the current time and end of the window in order to ensure that pending changes are applied.
Default: Uses existing setting.
Format: ddd:hh24:mi-ddd:hh24:mi, for example
wed:07:30-wed:08:00
.Valid Days: Mon | Tue | Wed | Thu | Fri | Sat | Sun
Constraints: Must be at least 30 minutes.
ClusterVersion (string) –
The new version number of the Amazon Redshift engine to upgrade to.
For major version upgrades, if a non-default cluster parameter group is currently in use, a new cluster parameter group in the cluster parameter group family for the new version must be specified. The new cluster parameter group can be the default for that cluster parameter group family. For more information about parameters and parameter groups, go to Amazon Redshift Parameter Groups in the Amazon Redshift Cluster Management Guide.
Example:
1.0
AllowVersionUpgrade (boolean) –
If
true
, major version upgrades will be applied automatically to the cluster during the maintenance window.Default:
false
HsmClientCertificateIdentifier (string) – Specifies the name of the HSM client certificate the Amazon Redshift cluster uses to retrieve the data encryption keys stored in an HSM.
HsmConfigurationIdentifier (string) – Specifies the name of the HSM configuration that contains the information the Amazon Redshift cluster can use to retrieve and store keys in an HSM.
NewClusterIdentifier (string) –
The new identifier for the cluster.
Constraints:
Must contain from 1 to 63 alphanumeric characters or hyphens.
Alphabetic characters must be lowercase.
First character must be a letter.
Cannot end with a hyphen or contain two consecutive hyphens.
Must be unique for all clusters within an Amazon Web Services account.
Example:
examplecluster
PubliclyAccessible (boolean) – If
true
, the cluster can be accessed from a public network. Only clusters in VPCs can be set to be publicly available.ElasticIp (string) –
The Elastic IP (EIP) address for the cluster.
Constraints: The cluster must be provisioned in EC2-VPC and publicly-accessible through an Internet gateway. For more information about provisioning clusters in EC2-VPC, go to Supported Platforms to Launch Your Cluster in the Amazon Redshift Cluster Management Guide.
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) – The name for the maintenance track that you want to assign for the cluster. This name change is asynchronous. The new track name stays in the
PendingModifiedValues
for the cluster until the next maintenance window. When the maintenance track changes, the cluster is switched to the latest cluster release available for the maintenance track. At this point, the maintenance track name is applied.Encrypted (boolean) –
Indicates whether the cluster is encrypted. If the value is encrypted (true) and you provide a value for the
KmsKeyId
parameter, we encrypt the cluster with the providedKmsKeyId
. If you don’t provide aKmsKeyId
, we encrypt with the default key.If the value is not encrypted (false), then the cluster is decrypted.
KmsKeyId (string) – The Key Management Service (KMS) key ID of the encryption key that you want to use to encrypt data in the cluster.
AvailabilityZoneRelocation (boolean) – The option to enable relocation for an Amazon Redshift cluster between Availability Zones after the cluster modification is complete.
AvailabilityZone (string) – The option to initiate relocation for an Amazon Redshift cluster to the target Availability Zone.
Port (integer) – The option to change the port of an Amazon Redshift cluster.
ManageMasterPassword (boolean) – If
true
, Amazon Redshift uses Secrets Manager to manage this cluster’s admin credentials. You can’t useMasterUserPassword
ifManageMasterPassword
is true. IfManageMasterPassword
is false or not set, Amazon Redshift usesMasterUserPassword
for the admin user account’s password.MasterPasswordSecretKmsKeyId (string) – The ID of the Key Management Service (KMS) key used to encrypt and store the cluster’s admin credentials secret. You can only use this parameter if
ManageMasterPassword
is true.IpAddressType (string) – The IP address types that the cluster supports. Possible values are
ipv4
anddualstack
.
- Return type:
dict
- Returns:
Response Syntax
{ 'Cluster': { 'ClusterIdentifier': 'string', 'NodeType': 'string', 'ClusterStatus': 'string', 'ClusterAvailabilityStatus': 'string', 'ModifyStatus': 'string', 'MasterUsername': 'string', 'DBName': 'string', 'Endpoint': { 'Address': 'string', 'Port': 123, 'VpcEndpoints': [ { 'VpcEndpointId': 'string', 'VpcId': 'string', 'NetworkInterfaces': [ { 'NetworkInterfaceId': 'string', 'SubnetId': 'string', 'PrivateIpAddress': 'string', 'AvailabilityZone': 'string', 'Ipv6Address': 'string' }, ] }, ] }, 'ClusterCreateTime': datetime(2015, 1, 1), 'AutomatedSnapshotRetentionPeriod': 123, 'ManualSnapshotRetentionPeriod': 123, 'ClusterSecurityGroups': [ { 'ClusterSecurityGroupName': 'string', 'Status': 'string' }, ], 'VpcSecurityGroups': [ { 'VpcSecurityGroupId': 'string', 'Status': 'string' }, ], 'ClusterParameterGroups': [ { 'ParameterGroupName': 'string', 'ParameterApplyStatus': 'string', 'ClusterParameterStatusList': [ { 'ParameterName': 'string', 'ParameterApplyStatus': 'string', 'ParameterApplyErrorDescription': 'string' }, ] }, ], 'ClusterSubnetGroupName': 'string', 'VpcId': 'string', 'AvailabilityZone': 'string', 'PreferredMaintenanceWindow': 'string', 'PendingModifiedValues': { 'MasterUserPassword': 'string', 'NodeType': 'string', 'NumberOfNodes': 123, 'ClusterType': 'string', 'ClusterVersion': 'string', 'AutomatedSnapshotRetentionPeriod': 123, 'ClusterIdentifier': 'string', 'PubliclyAccessible': True|False, 'EnhancedVpcRouting': True|False, 'MaintenanceTrackName': 'string', 'EncryptionType': 'string' }, 'ClusterVersion': 'string', 'AllowVersionUpgrade': True|False, 'NumberOfNodes': 123, 'PubliclyAccessible': True|False, 'Encrypted': True|False, 'RestoreStatus': { 'Status': 'string', 'CurrentRestoreRateInMegaBytesPerSecond': 123.0, 'SnapshotSizeInMegaBytes': 123, 'ProgressInMegaBytes': 123, 'ElapsedTimeInSeconds': 123, 'EstimatedTimeToCompletionInSeconds': 123 }, 'DataTransferProgress': { 'Status': 'string', 'CurrentRateInMegaBytesPerSecond': 123.0, 'TotalDataInMegaBytes': 123, 'DataTransferredInMegaBytes': 123, 'EstimatedTimeToCompletionInSeconds': 123, 'ElapsedTimeInSeconds': 123 }, 'HsmStatus': { 'HsmClientCertificateIdentifier': 'string', 'HsmConfigurationIdentifier': 'string', 'Status': 'string' }, 'ClusterSnapshotCopyStatus': { 'DestinationRegion': 'string', 'RetentionPeriod': 123, 'ManualSnapshotRetentionPeriod': 123, 'SnapshotCopyGrantName': 'string' }, 'ClusterPublicKey': 'string', 'ClusterNodes': [ { 'NodeRole': 'string', 'PrivateIPAddress': 'string', 'PublicIPAddress': 'string' }, ], 'ElasticIpStatus': { 'ElasticIp': 'string', 'Status': 'string' }, 'ClusterRevisionNumber': 'string', 'Tags': [ { 'Key': 'string', 'Value': 'string' }, ], 'KmsKeyId': 'string', 'EnhancedVpcRouting': True|False, 'IamRoles': [ { 'IamRoleArn': 'string', 'ApplyStatus': 'string' }, ], 'PendingActions': [ 'string', ], 'MaintenanceTrackName': 'string', 'ElasticResizeNumberOfNodeOptions': 'string', 'DeferredMaintenanceWindows': [ { 'DeferMaintenanceIdentifier': 'string', 'DeferMaintenanceStartTime': datetime(2015, 1, 1), 'DeferMaintenanceEndTime': datetime(2015, 1, 1) }, ], 'SnapshotScheduleIdentifier': 'string', 'SnapshotScheduleState': 'MODIFYING'|'ACTIVE'|'FAILED', 'ExpectedNextSnapshotScheduleTime': datetime(2015, 1, 1), 'ExpectedNextSnapshotScheduleTimeStatus': 'string', 'NextMaintenanceWindowStartTime': datetime(2015, 1, 1), 'ResizeInfo': { 'ResizeType': 'string', 'AllowCancelResize': True|False }, 'AvailabilityZoneRelocationStatus': 'string', 'ClusterNamespaceArn': 'string', 'TotalStorageCapacityInMegaBytes': 123, 'AquaConfiguration': { 'AquaStatus': 'enabled'|'disabled'|'applying', 'AquaConfigurationStatus': 'enabled'|'disabled'|'auto' }, 'DefaultIamRoleArn': 'string', 'ReservedNodeExchangeStatus': { 'ReservedNodeExchangeRequestId': 'string', 'Status': 'REQUESTED'|'PENDING'|'IN_PROGRESS'|'RETRYING'|'SUCCEEDED'|'FAILED', 'RequestTime': datetime(2015, 1, 1), 'SourceReservedNodeId': 'string', 'SourceReservedNodeType': 'string', 'SourceReservedNodeCount': 123, 'TargetReservedNodeOfferingId': 'string', 'TargetReservedNodeType': 'string', 'TargetReservedNodeCount': 123 }, 'CustomDomainName': 'string', 'CustomDomainCertificateArn': 'string', 'CustomDomainCertificateExpiryDate': datetime(2015, 1, 1), 'MasterPasswordSecretArn': 'string', 'MasterPasswordSecretKmsKeyId': 'string', 'IpAddressType': 'string' } }
Response Structure
(dict) –
Cluster (dict) –
Describes a cluster.
ClusterIdentifier (string) –
The unique identifier of the cluster.
NodeType (string) –
The node type for the nodes in the cluster.
ClusterStatus (string) –
The current state of the cluster. Possible values are the following:
available
available, prep-for-resize
available, resize-cleanup
cancelling-resize
creating
deleting
final-snapshot
hardware-failure
incompatible-hsm
incompatible-network
incompatible-parameters
incompatible-restore
modifying
paused
rebooting
renaming
resizing
rotating-keys
storage-full
updating-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) –
The status of a modify operation, if any, initiated for the cluster.
MasterUsername (string) –
The admin user name for the cluster. This name is used to connect to the database that is specified in the DBName parameter.
DBName (string) –
The name of the initial database that was created when the cluster was created. This same name is returned for the life of the cluster. If an initial database was not specified, a database named ``dev``dev was created by default.
Endpoint (dict) –
The connection endpoint.
Address (string) –
The DNS address of the Cluster.
Port (integer) –
The port that the database engine is listening on.
VpcEndpoints (list) –
Describes a connection endpoint.
(dict) –
The connection endpoint for connecting to an Amazon Redshift cluster through the proxy.
VpcEndpointId (string) –
The connection endpoint ID for connecting an Amazon Redshift cluster through the proxy.
VpcId (string) –
The VPC identifier that the endpoint is associated.
NetworkInterfaces (list) –
One or more network interfaces of the endpoint. Also known as an interface endpoint.
(dict) –
Describes a network interface.
NetworkInterfaceId (string) –
The network interface identifier.
SubnetId (string) –
The subnet identifier.
PrivateIpAddress (string) –
The IPv4 address of the network interface within the subnet.
AvailabilityZone (string) –
The Availability Zone.
Ipv6Address (string) –
The IPv6 address of the network interface within the subnet.
ClusterCreateTime (datetime) –
The date and time that the cluster was created.
AutomatedSnapshotRetentionPeriod (integer) –
The number of days that automatic cluster snapshots are retained.
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
andClusterSecurityGroup.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.
(dict) –
Describes a cluster security group.
ClusterSecurityGroupName (string) –
The name of the cluster security group.
Status (string) –
The status of the cluster security group.
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.
(dict) –
Describes the members of a VPC security group.
VpcSecurityGroupId (string) –
The identifier of the VPC security group.
Status (string) –
The status of the VPC security group.
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.
(dict) –
Describes the status of a parameter group.
ParameterGroupName (string) –
The name of the cluster parameter group.
ParameterApplyStatus (string) –
The status of parameter updates.
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.
(dict) –
Describes the status of a parameter group.
ParameterName (string) –
The name of the parameter.
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) –
The error that prevented the parameter from being applied to the database.
ClusterSubnetGroupName (string) –
The name of the subnet group that is associated with the cluster. This parameter is valid only when the cluster is in a VPC.
VpcId (string) –
The identifier of the VPC the cluster is in, if the cluster is in a VPC.
AvailabilityZone (string) –
The name of the Availability Zone in which the cluster is located.
PreferredMaintenanceWindow (string) –
The weekly time range, in Universal Coordinated Time (UTC), during which system maintenance can occur.
PendingModifiedValues (dict) –
A value that, if present, indicates that changes to the cluster are pending. Specific pending changes are identified by subelements.
MasterUserPassword (string) –
The pending or in-progress change of the admin user password for the cluster.
NodeType (string) –
The pending or in-progress change of the cluster’s node type.
NumberOfNodes (integer) –
The pending or in-progress change of the number of nodes in the cluster.
ClusterType (string) –
The pending or in-progress change of the cluster type.
ClusterVersion (string) –
The pending or in-progress change of the service version.
AutomatedSnapshotRetentionPeriod (integer) –
The pending or in-progress change of the automated snapshot retention period.
ClusterIdentifier (string) –
The pending or in-progress change of the new identifier for the cluster.
PubliclyAccessible (boolean) –
The pending or in-progress change of the ability to connect to the cluster from the public network.
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) –
The name of the maintenance track that the cluster will change to during the next maintenance window.
EncryptionType (string) –
The encryption type for a cluster. Possible values are: KMS and None.
ClusterVersion (string) –
The version ID of the Amazon Redshift engine that is running on the cluster.
AllowVersionUpgrade (boolean) –
A boolean value that, if
true
, indicates that major version upgrades will be applied automatically to the cluster during the maintenance window.NumberOfNodes (integer) –
The number of compute nodes in the cluster.
PubliclyAccessible (boolean) –
A boolean value that, if
true
, indicates that the cluster can be accessed from a public network.Encrypted (boolean) –
A boolean value that, if
true
, indicates that data in the cluster is encrypted at rest.RestoreStatus (dict) –
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) –
The status of the restore action. Returns starting, restoring, completed, or failed.
CurrentRestoreRateInMegaBytesPerSecond (float) –
The number of megabytes per second being transferred from the backup storage. Returns the average rate for a completed backup. This field is only updated when you restore to DC2 and DS2 node types.
SnapshotSizeInMegaBytes (integer) –
The size of the set of snapshot data used to restore the cluster. This field is only updated when you restore to DC2 and DS2 node types.
ProgressInMegaBytes (integer) –
The number of megabytes that have been transferred from snapshot storage. This field is only updated when you restore to DC2 and DS2 node types.
ElapsedTimeInSeconds (integer) –
The amount of time an in-progress restore has been running, or the amount of time it took a completed restore to finish. This field is only updated when you restore to DC2 and DS2 node types.
EstimatedTimeToCompletionInSeconds (integer) –
The estimate of the time remaining before the restore will complete. Returns 0 for a completed restore. This field is only updated when you restore to DC2 and DS2 node types.
DataTransferProgress (dict) –
Status (string) –
Describes the status of the cluster. While the transfer is in progress the status is
transferringdata
.CurrentRateInMegaBytesPerSecond (float) –
Describes the data transfer rate in MB’s per second.
TotalDataInMegaBytes (integer) –
Describes the total amount of data to be transfered in megabytes.
DataTransferredInMegaBytes (integer) –
Describes the total amount of data that has been transfered in MB’s.
EstimatedTimeToCompletionInSeconds (integer) –
Describes the estimated number of seconds remaining to complete the transfer.
ElapsedTimeInSeconds (integer) –
Describes the number of seconds that have elapsed during the data transfer.
HsmStatus (dict) –
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) –
Specifies the name of the HSM client certificate the Amazon Redshift cluster uses to retrieve the data encryption keys stored in an HSM.
HsmConfigurationIdentifier (string) –
Specifies the name of the HSM configuration that contains the information the Amazon Redshift cluster can use to retrieve and store keys in an HSM.
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 (dict) –
A value that returns the destination region and retention period that are configured for cross-region snapshot copy.
DestinationRegion (string) –
The destination region that snapshots are automatically copied to when cross-region snapshot copy is enabled.
RetentionPeriod (integer) –
The number of days that automated snapshots are retained in the destination region after they are copied from a source region.
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) –
The name of the snapshot copy grant.
ClusterPublicKey (string) –
The public key for the cluster.
ClusterNodes (list) –
The nodes in the cluster.
(dict) –
The identifier of a node in a cluster.
NodeRole (string) –
Whether the node is a leader node or a compute node.
PrivateIPAddress (string) –
The private IP address of a node within a cluster.
PublicIPAddress (string) –
The public IP address of a node within a cluster.
ElasticIpStatus (dict) –
The status of the elastic IP (EIP) address.
ElasticIp (string) –
The elastic IP (EIP) address for the cluster.
Status (string) –
The status of the elastic IP (EIP) address.
ClusterRevisionNumber (string) –
The specific revision number of the database in the cluster.
Tags (list) –
The list of tags for the cluster.
(dict) –
A tag consisting of a name/value pair for a resource.
Key (string) –
The key, or name, for the resource tag.
Value (string) –
The value for the resource tag.
KmsKeyId (string) –
The Key Management Service (KMS) key ID of the encryption key used to encrypt data in the cluster.
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.
(dict) –
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) –
The Amazon Resource Name (ARN) of the IAM role, for example,
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) –
The name of the maintenance track for the cluster.
ElasticResizeNumberOfNodeOptions (string) –
The number of nodes that you can resize the cluster to with the elastic resize method.
DeferredMaintenanceWindows (list) –
Describes a group of
DeferredMaintenanceWindow
objects.(dict) –
Describes a deferred maintenance window
DeferMaintenanceIdentifier (string) –
A unique identifier for the maintenance window.
DeferMaintenanceStartTime (datetime) –
A timestamp for the beginning of the time period when we defer maintenance.
DeferMaintenanceEndTime (datetime) –
A timestamp for the end of the time period when we defer maintenance.
SnapshotScheduleIdentifier (string) –
A unique identifier for the cluster snapshot schedule.
SnapshotScheduleState (string) –
The current state of the cluster snapshot schedule.
ExpectedNextSnapshotScheduleTime (datetime) –
The date and time when the next snapshot is expected to be taken for clusters with a valid snapshot schedule and backups enabled.
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 (datetime) –
The date and time in UTC when system maintenance can begin.
ResizeInfo (dict) –
Returns the following:
AllowCancelResize: a boolean value indicating if the resize operation can be cancelled.
ResizeType: Returns ClassicResize
ResizeType (string) –
Returns the value
ClassicResize
.AllowCancelResize (boolean) –
A boolean value indicating if the resize operation can be cancelled.
AvailabilityZoneRelocationStatus (string) –
Describes the status of the Availability Zone relocation operation.
ClusterNamespaceArn (string) –
The namespace Amazon Resource Name (ARN) of the cluster.
TotalStorageCapacityInMegaBytes (integer) –
The total storage capacity of the cluster in megabytes.
AquaConfiguration (dict) –
This field is retired. Amazon Redshift automatically determines whether to use AQUA (Advanced Query Accelerator).
AquaStatus (string) –
This field is retired. Amazon Redshift automatically determines whether to use AQUA (Advanced Query Accelerator).
AquaConfigurationStatus (string) –
This field is retired. Amazon Redshift automatically determines whether to use AQUA (Advanced Query Accelerator).
DefaultIamRoleArn (string) –
The Amazon Resource Name (ARN) for the IAM role set as default for the cluster.
ReservedNodeExchangeStatus (dict) –
The status of the reserved-node exchange request. Statuses include in-progress and requested.
ReservedNodeExchangeRequestId (string) –
The identifier of the reserved-node exchange request.
Status (string) –
The status of the reserved-node exchange request. Statuses include in-progress and requested.
RequestTime (datetime) –
A date and time that indicate when the reserved-node exchange was requested.
SourceReservedNodeId (string) –
The identifier of the source reserved node.
SourceReservedNodeType (string) –
The source reserved-node type, for example ds2.xlarge.
SourceReservedNodeCount (integer) –
The source reserved-node count in the cluster.
TargetReservedNodeOfferingId (string) –
The identifier of the target reserved node offering.
TargetReservedNodeType (string) –
The node type of the target reserved node, for example ra3.4xlarge.
TargetReservedNodeCount (integer) –
The count of target reserved nodes in the cluster.
CustomDomainName (string) –
The custom domain name associated with the cluster.
CustomDomainCertificateArn (string) –
The certificate Amazon Resource Name (ARN) for the custom domain name.
CustomDomainCertificateExpiryDate (datetime) –
The expiration date for the certificate associated with the custom domain name.
MasterPasswordSecretArn (string) –
The Amazon Resource Name (ARN) for the cluster’s admin user credentials secret.
MasterPasswordSecretKmsKeyId (string) –
The ID of the Key Management Service (KMS) key used to encrypt and store the cluster’s admin credentials secret.
IpAddressType (string) –
The IP address type for the cluster. Possible values are
ipv4
anddualstack
.
Exceptions
Redshift.Client.exceptions.InvalidClusterStateFault
Redshift.Client.exceptions.InvalidClusterSecurityGroupStateFault
Redshift.Client.exceptions.ClusterNotFoundFault
Redshift.Client.exceptions.NumberOfNodesQuotaExceededFault
Redshift.Client.exceptions.NumberOfNodesPerClusterLimitExceededFault
Redshift.Client.exceptions.ClusterSecurityGroupNotFoundFault
Redshift.Client.exceptions.ClusterParameterGroupNotFoundFault
Redshift.Client.exceptions.InsufficientClusterCapacityFault
Redshift.Client.exceptions.UnsupportedOptionFault
Redshift.Client.exceptions.UnauthorizedOperation
Redshift.Client.exceptions.HsmClientCertificateNotFoundFault
Redshift.Client.exceptions.HsmConfigurationNotFoundFault
Redshift.Client.exceptions.ClusterAlreadyExistsFault
Redshift.Client.exceptions.LimitExceededFault
Redshift.Client.exceptions.DependentServiceRequestThrottlingFault
Redshift.Client.exceptions.InvalidElasticIpFault
Redshift.Client.exceptions.TableLimitExceededFault
Redshift.Client.exceptions.InvalidClusterTrackFault
Redshift.Client.exceptions.InvalidRetentionPeriodFault
Redshift.Client.exceptions.UnsupportedOperationFault
Redshift.Client.exceptions.CustomCnameAssociationFault
Redshift.Client.exceptions.Ipv6CidrBlockNotFoundFault