Skip to content

Commit f66c66d

Browse files
author
AWS
committed
Amazon Redshift Update: Amazon Redshift now supports operations to pause and resume a cluster on demand or on a schedule.
1 parent ad1009c commit f66c66d

File tree

2 files changed

+89
-4
lines changed

2 files changed

+89
-4
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"type": "feature",
3+
"category": "Amazon Redshift",
4+
"description": "Amazon Redshift now supports operations to pause and resume a cluster on demand or on a schedule."
5+
}

services/redshift/src/main/resources/codegen-resources/service-2.json

Lines changed: 84 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,8 @@
10691069
{"shape":"BucketNotFoundFault"},
10701070
{"shape":"InsufficientS3BucketPolicyFault"},
10711071
{"shape":"InvalidS3KeyPrefixFault"},
1072-
{"shape":"InvalidS3BucketNameFault"}
1072+
{"shape":"InvalidS3BucketNameFault"},
1073+
{"shape":"InvalidClusterStateFault"}
10731074
],
10741075
"documentation":"<p>Starts logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.</p>"
10751076
},
@@ -1218,7 +1219,8 @@
12181219
"resultWrapper":"ModifyClusterMaintenanceResult"
12191220
},
12201221
"errors":[
1221-
{"shape":"ClusterNotFoundFault"}
1222+
{"shape":"ClusterNotFoundFault"},
1223+
{"shape":"InvalidClusterStateFault"}
12221224
],
12231225
"documentation":"<p>Modifies the maintenance settings of a cluster.</p>"
12241226
},
@@ -1374,6 +1376,23 @@
13741376
],
13751377
"documentation":"<p>Modifies a snapshot schedule. Any schedule associated with a cluster is modified asynchronously.</p>"
13761378
},
1379+
"PauseCluster":{
1380+
"name":"PauseCluster",
1381+
"http":{
1382+
"method":"POST",
1383+
"requestUri":"/"
1384+
},
1385+
"input":{"shape":"PauseClusterMessage"},
1386+
"output":{
1387+
"shape":"PauseClusterResult",
1388+
"resultWrapper":"PauseClusterResult"
1389+
},
1390+
"errors":[
1391+
{"shape":"ClusterNotFoundFault"},
1392+
{"shape":"InvalidClusterStateFault"}
1393+
],
1394+
"documentation":"<p>Pauses a cluster.</p>"
1395+
},
13771396
"PurchaseReservedNodeOffering":{
13781397
"name":"PurchaseReservedNodeOffering",
13791398
"http":{
@@ -1513,6 +1532,23 @@
15131532
],
15141533
"documentation":"<p>Creates a new table from a table in an Amazon Redshift cluster snapshot. You must create the new table within the Amazon Redshift cluster that the snapshot was taken from.</p> <p>You cannot use <code>RestoreTableFromClusterSnapshot</code> to restore a table with the same name as an existing table in an Amazon Redshift cluster. That is, you cannot overwrite an existing table in a cluster with a restored table. If you want to replace your original table with a new, restored table, then rename or drop your original table before you call <code>RestoreTableFromClusterSnapshot</code>. When you have renamed your original table, then you can pass the original name of the table as the <code>NewTableName</code> parameter value in the call to <code>RestoreTableFromClusterSnapshot</code>. This way, you can replace the original table with the table created from the snapshot.</p>"
15151534
},
1535+
"ResumeCluster":{
1536+
"name":"ResumeCluster",
1537+
"http":{
1538+
"method":"POST",
1539+
"requestUri":"/"
1540+
},
1541+
"input":{"shape":"ResumeClusterMessage"},
1542+
"output":{
1543+
"shape":"ResumeClusterResult",
1544+
"resultWrapper":"ResumeClusterResult"
1545+
},
1546+
"errors":[
1547+
{"shape":"ClusterNotFoundFault"},
1548+
{"shape":"InvalidClusterStateFault"}
1549+
],
1550+
"documentation":"<p>Resumes a paused cluster.</p>"
1551+
},
15161552
"RevokeClusterSecurityGroupIngress":{
15171553
"name":"RevokeClusterSecurityGroupIngress",
15181554
"http":{
@@ -1941,7 +1977,7 @@
19411977
},
19421978
"ClusterStatus":{
19431979
"shape":"String",
1944-
"documentation":"<p> The current state of the cluster. Possible values are the following:</p> <ul> <li> <p> <code>available</code> </p> </li> <li> <p> <code>available, prep-for-resize</code> </p> </li> <li> <p> <code>available, resize-cleanup</code> </p> </li> <li> <p> <code>cancelling-resize</code> </p> </li> <li> <p> <code>creating</code> </p> </li> <li> <p> <code>deleting</code> </p> </li> <li> <p> <code>final-snapshot</code> </p> </li> <li> <p> <code>hardware-failure</code> </p> </li> <li> <p> <code>incompatible-hsm</code> </p> </li> <li> <p> <code>incompatible-network</code> </p> </li> <li> <p> <code>incompatible-parameters</code> </p> </li> <li> <p> <code>incompatible-restore</code> </p> </li> <li> <p> <code>modifying</code> </p> </li> <li> <p> <code>rebooting</code> </p> </li> <li> <p> <code>renaming</code> </p> </li> <li> <p> <code>resizing</code> </p> </li> <li> <p> <code>rotating-keys</code> </p> </li> <li> <p> <code>storage-full</code> </p> </li> <li> <p> <code>updating-hsm</code> </p> </li> </ul>"
1980+
"documentation":"<p> The current state of the cluster. Possible values are the following:</p> <ul> <li> <p> <code>available</code> </p> </li> <li> <p> <code>available, prep-for-resize</code> </p> </li> <li> <p> <code>available, resize-cleanup</code> </p> </li> <li> <p> <code>cancelling-resize</code> </p> </li> <li> <p> <code>creating</code> </p> </li> <li> <p> <code>deleting</code> </p> </li> <li> <p> <code>final-snapshot</code> </p> </li> <li> <p> <code>hardware-failure</code> </p> </li> <li> <p> <code>incompatible-hsm</code> </p> </li> <li> <p> <code>incompatible-network</code> </p> </li> <li> <p> <code>incompatible-parameters</code> </p> </li> <li> <p> <code>incompatible-restore</code> </p> </li> <li> <p> <code>modifying</code> </p> </li> <li> <p> <code>paused</code> </p> </li> <li> <p> <code>rebooting</code> </p> </li> <li> <p> <code>renaming</code> </p> </li> <li> <p> <code>resizing</code> </p> </li> <li> <p> <code>rotating-keys</code> </p> </li> <li> <p> <code>storage-full</code> </p> </li> <li> <p> <code>updating-hsm</code> </p> </li> </ul>"
19451981
},
19461982
"ClusterAvailabilityStatus":{
19471983
"shape":"String",
@@ -5929,6 +5965,22 @@
59295965
"locationName":"Parameter"
59305966
}
59315967
},
5968+
"PauseClusterMessage":{
5969+
"type":"structure",
5970+
"required":["ClusterIdentifier"],
5971+
"members":{
5972+
"ClusterIdentifier":{
5973+
"shape":"String",
5974+
"documentation":"<p>The identifier of the cluster to be paused.</p>"
5975+
}
5976+
}
5977+
},
5978+
"PauseClusterResult":{
5979+
"type":"structure",
5980+
"members":{
5981+
"Cluster":{"shape":"Cluster"}
5982+
}
5983+
},
59325984
"PendingActionsList":{
59335985
"type":"list",
59345986
"member":{"shape":"String"}
@@ -6621,6 +6673,22 @@
66216673
"TableRestoreStatus":{"shape":"TableRestoreStatus"}
66226674
}
66236675
},
6676+
"ResumeClusterMessage":{
6677+
"type":"structure",
6678+
"required":["ClusterIdentifier"],
6679+
"members":{
6680+
"ClusterIdentifier":{
6681+
"shape":"String",
6682+
"documentation":"<p>The identifier of the cluster to be resumed.</p>"
6683+
}
6684+
}
6685+
},
6686+
"ResumeClusterResult":{
6687+
"type":"structure",
6688+
"members":{
6689+
"Cluster":{"shape":"Cluster"}
6690+
}
6691+
},
66246692
"RevisionTarget":{
66256693
"type":"structure",
66266694
"members":{
@@ -6920,6 +6988,14 @@
69206988
"ResizeCluster":{
69216989
"shape":"ResizeClusterMessage",
69226990
"documentation":"<p>An action that runs a <code>ResizeCluster</code> API operation. </p>"
6991+
},
6992+
"PauseCluster":{
6993+
"shape":"PauseClusterMessage",
6994+
"documentation":"<p>An action that runs a <code>PauseCluster</code> API operation. </p>"
6995+
},
6996+
"ResumeCluster":{
6997+
"shape":"ResumeClusterMessage",
6998+
"documentation":"<p>An action that runs a <code>ResumeCluster</code> API operation. </p>"
69236999
}
69247000
},
69257001
"documentation":"<p>The action type that specifies an Amazon Redshift API operation that is supported by the Amazon Redshift scheduler. </p>"
@@ -6938,7 +7014,11 @@
69387014
},
69397015
"ScheduledActionTypeValues":{
69407016
"type":"string",
6941-
"enum":["ResizeCluster"]
7017+
"enum":[
7018+
"ResizeCluster",
7019+
"PauseCluster",
7020+
"ResumeCluster"
7021+
]
69427022
},
69437023
"ScheduledActionsMessage":{
69447024
"type":"structure",

0 commit comments

Comments
 (0)