aws-sdk-redshift 1.33.0 → 1.34.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-redshift.rb +1 -1
- data/lib/aws-sdk-redshift/client.rb +324 -7
- data/lib/aws-sdk-redshift/client_api.rb +138 -0
- data/lib/aws-sdk-redshift/types.rb +450 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91c37aa7d6c11f1e4756ce97d558b7a2e54d7983
|
4
|
+
data.tar.gz: 705f45c2f949ebab1c3d009890755d8b316b7221
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e4e07c90cb6d4b0b5bf995f2778cd9160bba4ca31a8417e5f8d9a7a210ab6e6576155fdf06a35fd01a20b0f78f96b4954923d9baf08c454fa2059825a5d25a0
|
7
|
+
data.tar.gz: dff436b736574d46f24f6880e6e211985b57474ad3f66ef97630ccb5f543e3aa6f22789a8487e45af2fcfa3f4817fda285b220b28d3690ed927a24da6c569cdd
|
data/lib/aws-sdk-redshift.rb
CHANGED
@@ -1865,6 +1865,105 @@ module Aws::Redshift
|
|
1865
1865
|
req.send_request(options)
|
1866
1866
|
end
|
1867
1867
|
|
1868
|
+
# Creates a scheduled action. A scheduled action contains a schedule and
|
1869
|
+
# an Amazon Redshift API action. For example, you can create a schedule
|
1870
|
+
# of when to run the `ResizeCluster` API operation.
|
1871
|
+
#
|
1872
|
+
# @option params [required, String] :scheduled_action_name
|
1873
|
+
# The name of the scheduled action. The name must be unique within an
|
1874
|
+
# account. For more information about this parameter, see
|
1875
|
+
# ScheduledAction.
|
1876
|
+
#
|
1877
|
+
# @option params [required, Types::ScheduledActionType] :target_action
|
1878
|
+
# A JSON format string of the Amazon Redshift API operation with input
|
1879
|
+
# parameters. For more information about this parameter, see
|
1880
|
+
# ScheduledAction.
|
1881
|
+
#
|
1882
|
+
# @option params [required, String] :schedule
|
1883
|
+
# The schedule in `at( )` or `cron( )` format. For more information
|
1884
|
+
# about this parameter, see ScheduledAction.
|
1885
|
+
#
|
1886
|
+
# @option params [required, String] :iam_role
|
1887
|
+
# The IAM role to assume to run the target action. For more information
|
1888
|
+
# about this parameter, see ScheduledAction.
|
1889
|
+
#
|
1890
|
+
# @option params [String] :scheduled_action_description
|
1891
|
+
# The description of the scheduled action.
|
1892
|
+
#
|
1893
|
+
# @option params [Time,DateTime,Date,Integer,String] :start_time
|
1894
|
+
# The start time in UTC of the scheduled action. Before this time, the
|
1895
|
+
# scheduled action does not trigger. For more information about this
|
1896
|
+
# parameter, see ScheduledAction.
|
1897
|
+
#
|
1898
|
+
# @option params [Time,DateTime,Date,Integer,String] :end_time
|
1899
|
+
# The end time in UTC of the scheduled action. After this time, the
|
1900
|
+
# scheduled action does not trigger. For more information about this
|
1901
|
+
# parameter, see ScheduledAction.
|
1902
|
+
#
|
1903
|
+
# @option params [Boolean] :enable
|
1904
|
+
# If true, the schedule is enabled. If false, the scheduled action does
|
1905
|
+
# not trigger. For more information about `state` of the scheduled
|
1906
|
+
# action, see ScheduledAction.
|
1907
|
+
#
|
1908
|
+
# @return [Types::ScheduledAction] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1909
|
+
#
|
1910
|
+
# * {Types::ScheduledAction#scheduled_action_name #scheduled_action_name} => String
|
1911
|
+
# * {Types::ScheduledAction#target_action #target_action} => Types::ScheduledActionType
|
1912
|
+
# * {Types::ScheduledAction#schedule #schedule} => String
|
1913
|
+
# * {Types::ScheduledAction#iam_role #iam_role} => String
|
1914
|
+
# * {Types::ScheduledAction#scheduled_action_description #scheduled_action_description} => String
|
1915
|
+
# * {Types::ScheduledAction#state #state} => String
|
1916
|
+
# * {Types::ScheduledAction#next_invocations #next_invocations} => Array<Time>
|
1917
|
+
# * {Types::ScheduledAction#start_time #start_time} => Time
|
1918
|
+
# * {Types::ScheduledAction#end_time #end_time} => Time
|
1919
|
+
#
|
1920
|
+
# @example Request syntax with placeholder values
|
1921
|
+
#
|
1922
|
+
# resp = client.create_scheduled_action({
|
1923
|
+
# scheduled_action_name: "String", # required
|
1924
|
+
# target_action: { # required
|
1925
|
+
# resize_cluster: {
|
1926
|
+
# cluster_identifier: "String", # required
|
1927
|
+
# cluster_type: "String",
|
1928
|
+
# node_type: "String",
|
1929
|
+
# number_of_nodes: 1, # required
|
1930
|
+
# classic: false,
|
1931
|
+
# },
|
1932
|
+
# },
|
1933
|
+
# schedule: "String", # required
|
1934
|
+
# iam_role: "String", # required
|
1935
|
+
# scheduled_action_description: "String",
|
1936
|
+
# start_time: Time.now,
|
1937
|
+
# end_time: Time.now,
|
1938
|
+
# enable: false,
|
1939
|
+
# })
|
1940
|
+
#
|
1941
|
+
# @example Response structure
|
1942
|
+
#
|
1943
|
+
# resp.scheduled_action_name #=> String
|
1944
|
+
# resp.target_action.resize_cluster.cluster_identifier #=> String
|
1945
|
+
# resp.target_action.resize_cluster.cluster_type #=> String
|
1946
|
+
# resp.target_action.resize_cluster.node_type #=> String
|
1947
|
+
# resp.target_action.resize_cluster.number_of_nodes #=> Integer
|
1948
|
+
# resp.target_action.resize_cluster.classic #=> Boolean
|
1949
|
+
# resp.schedule #=> String
|
1950
|
+
# resp.iam_role #=> String
|
1951
|
+
# resp.scheduled_action_description #=> String
|
1952
|
+
# resp.state #=> String, one of "ACTIVE", "DISABLED"
|
1953
|
+
# resp.next_invocations #=> Array
|
1954
|
+
# resp.next_invocations[0] #=> Time
|
1955
|
+
# resp.start_time #=> Time
|
1956
|
+
# resp.end_time #=> Time
|
1957
|
+
#
|
1958
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateScheduledAction AWS API Documentation
|
1959
|
+
#
|
1960
|
+
# @overload create_scheduled_action(params = {})
|
1961
|
+
# @param [Hash] params ({})
|
1962
|
+
def create_scheduled_action(params = {}, options = {})
|
1963
|
+
req = build_request(:create_scheduled_action, params)
|
1964
|
+
req.send_request(options)
|
1965
|
+
end
|
1966
|
+
|
1868
1967
|
# Creates a snapshot copy grant that permits Amazon Redshift to use a
|
1869
1968
|
# customer master key (CMK) from AWS Key Management Service (AWS KMS) to
|
1870
1969
|
# encrypt copied snapshots in a destination region.
|
@@ -2483,6 +2582,28 @@ module Aws::Redshift
|
|
2483
2582
|
req.send_request(options)
|
2484
2583
|
end
|
2485
2584
|
|
2585
|
+
# Deletes a scheduled action.
|
2586
|
+
#
|
2587
|
+
# @option params [required, String] :scheduled_action_name
|
2588
|
+
# The name of the scheduled action to delete.
|
2589
|
+
#
|
2590
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
2591
|
+
#
|
2592
|
+
# @example Request syntax with placeholder values
|
2593
|
+
#
|
2594
|
+
# resp = client.delete_scheduled_action({
|
2595
|
+
# scheduled_action_name: "String", # required
|
2596
|
+
# })
|
2597
|
+
#
|
2598
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteScheduledAction AWS API Documentation
|
2599
|
+
#
|
2600
|
+
# @overload delete_scheduled_action(params = {})
|
2601
|
+
# @param [Hash] params ({})
|
2602
|
+
def delete_scheduled_action(params = {}, options = {})
|
2603
|
+
req = build_request(:delete_scheduled_action, params)
|
2604
|
+
req.send_request(options)
|
2605
|
+
end
|
2606
|
+
|
2486
2607
|
# Deletes the specified snapshot copy grant.
|
2487
2608
|
#
|
2488
2609
|
# @option params [required, String] :snapshot_copy_grant_name
|
@@ -3896,7 +4017,7 @@ module Aws::Redshift
|
|
3896
4017
|
#
|
3897
4018
|
# resp = client.describe_events({
|
3898
4019
|
# source_identifier: "String",
|
3899
|
-
# source_type: "cluster", # accepts cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot
|
4020
|
+
# source_type: "cluster", # accepts cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot, scheduled-action
|
3900
4021
|
# start_time: Time.now,
|
3901
4022
|
# end_time: Time.now,
|
3902
4023
|
# duration: 1,
|
@@ -3909,7 +4030,7 @@ module Aws::Redshift
|
|
3909
4030
|
# resp.marker #=> String
|
3910
4031
|
# resp.events #=> Array
|
3911
4032
|
# resp.events[0].source_identifier #=> String
|
3912
|
-
# resp.events[0].source_type #=> String, one of "cluster", "cluster-parameter-group", "cluster-security-group", "cluster-snapshot"
|
4033
|
+
# resp.events[0].source_type #=> String, one of "cluster", "cluster-parameter-group", "cluster-security-group", "cluster-snapshot", "scheduled-action"
|
3913
4034
|
# resp.events[0].message #=> String
|
3914
4035
|
# resp.events[0].event_categories #=> Array
|
3915
4036
|
# resp.events[0].event_categories[0] #=> String
|
@@ -4158,8 +4279,15 @@ module Aws::Redshift
|
|
4158
4279
|
# number of nodes, and disk usage for the specified action type.
|
4159
4280
|
#
|
4160
4281
|
# @option params [required, String] :action_type
|
4161
|
-
# The action type to evaluate for possible node configurations.
|
4162
|
-
#
|
4282
|
+
# The action type to evaluate for possible node configurations. Specify
|
4283
|
+
# "restore-cluster" to get configuration combinations based on an
|
4284
|
+
# existing snapshot. Specify "recommend-node-config" to get
|
4285
|
+
# configuration recommendations based on an existing cluster or
|
4286
|
+
# snapshot.
|
4287
|
+
#
|
4288
|
+
# @option params [String] :cluster_identifier
|
4289
|
+
# The identifier of the cluster to evaluate for possible node
|
4290
|
+
# configurations.
|
4163
4291
|
#
|
4164
4292
|
# @option params [String] :snapshot_identifier
|
4165
4293
|
# The identifier of the snapshot to evaluate for possible node
|
@@ -4201,12 +4329,13 @@ module Aws::Redshift
|
|
4201
4329
|
# @example Request syntax with placeholder values
|
4202
4330
|
#
|
4203
4331
|
# resp = client.describe_node_configuration_options({
|
4204
|
-
# action_type: "restore-cluster", # required, accepts restore-cluster
|
4332
|
+
# action_type: "restore-cluster", # required, accepts restore-cluster, recommend-node-config
|
4333
|
+
# cluster_identifier: "String",
|
4205
4334
|
# snapshot_identifier: "String",
|
4206
4335
|
# owner_account: "String",
|
4207
4336
|
# filters: [
|
4208
4337
|
# {
|
4209
|
-
# name: "NodeType", # accepts NodeType, NumberOfNodes, EstimatedDiskUtilizationPercent
|
4338
|
+
# name: "NodeType", # accepts NodeType, NumberOfNodes, EstimatedDiskUtilizationPercent, Mode
|
4210
4339
|
# operator: "eq", # accepts eq, lt, gt, le, ge, in, between
|
4211
4340
|
# values: ["String"],
|
4212
4341
|
# },
|
@@ -4221,6 +4350,7 @@ module Aws::Redshift
|
|
4221
4350
|
# resp.node_configuration_option_list[0].node_type #=> String
|
4222
4351
|
# resp.node_configuration_option_list[0].number_of_nodes #=> Integer
|
4223
4352
|
# resp.node_configuration_option_list[0].estimated_disk_utilization_percent #=> Float
|
4353
|
+
# resp.node_configuration_option_list[0].mode #=> String, one of "standard", "high-performance"
|
4224
4354
|
# resp.marker #=> String
|
4225
4355
|
#
|
4226
4356
|
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeNodeConfigurationOptions AWS API Documentation
|
@@ -4528,6 +4658,102 @@ module Aws::Redshift
|
|
4528
4658
|
req.send_request(options)
|
4529
4659
|
end
|
4530
4660
|
|
4661
|
+
# Describes properties of scheduled actions.
|
4662
|
+
#
|
4663
|
+
# @option params [String] :scheduled_action_name
|
4664
|
+
# The name of the scheduled action to retrieve.
|
4665
|
+
#
|
4666
|
+
# @option params [String] :target_action_type
|
4667
|
+
# The type of the scheduled actions to retrieve.
|
4668
|
+
#
|
4669
|
+
# @option params [Time,DateTime,Date,Integer,String] :start_time
|
4670
|
+
# The start time in UTC of the scheduled actions to retrieve. Only
|
4671
|
+
# active scheduled actions that have invocations after this time are
|
4672
|
+
# retrieved.
|
4673
|
+
#
|
4674
|
+
# @option params [Time,DateTime,Date,Integer,String] :end_time
|
4675
|
+
# The end time in UTC of the scheduled action to retrieve. Only active
|
4676
|
+
# scheduled actions that have invocations before this time are
|
4677
|
+
# retrieved.
|
4678
|
+
#
|
4679
|
+
# @option params [Boolean] :active
|
4680
|
+
# If true, retrieve only active scheduled actions. If false, retrieve
|
4681
|
+
# only disabled scheduled actions.
|
4682
|
+
#
|
4683
|
+
# @option params [Array<Types::ScheduledActionFilter>] :filters
|
4684
|
+
# List of scheduled action filters.
|
4685
|
+
#
|
4686
|
+
# @option params [String] :marker
|
4687
|
+
# An optional parameter that specifies the starting point to return a
|
4688
|
+
# set of response records. When the results of a
|
4689
|
+
# DescribeScheduledActions request exceed the value specified in
|
4690
|
+
# `MaxRecords`, AWS returns a value in the `Marker` field of the
|
4691
|
+
# response. You can retrieve the next set of response records by
|
4692
|
+
# providing the returned marker value in the `Marker` parameter and
|
4693
|
+
# retrying the request.
|
4694
|
+
#
|
4695
|
+
# @option params [Integer] :max_records
|
4696
|
+
# The maximum number of response records to return in each call. If the
|
4697
|
+
# number of remaining response records exceeds the specified
|
4698
|
+
# `MaxRecords` value, a value is returned in a `marker` field of the
|
4699
|
+
# response. You can retrieve the next set of records by retrying the
|
4700
|
+
# command with the returned marker value.
|
4701
|
+
#
|
4702
|
+
# Default: `100`
|
4703
|
+
#
|
4704
|
+
# Constraints: minimum 20, maximum 100.
|
4705
|
+
#
|
4706
|
+
# @return [Types::ScheduledActionsMessage] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
4707
|
+
#
|
4708
|
+
# * {Types::ScheduledActionsMessage#marker #marker} => String
|
4709
|
+
# * {Types::ScheduledActionsMessage#scheduled_actions #scheduled_actions} => Array<Types::ScheduledAction>
|
4710
|
+
#
|
4711
|
+
# @example Request syntax with placeholder values
|
4712
|
+
#
|
4713
|
+
# resp = client.describe_scheduled_actions({
|
4714
|
+
# scheduled_action_name: "String",
|
4715
|
+
# target_action_type: "ResizeCluster", # accepts ResizeCluster
|
4716
|
+
# start_time: Time.now,
|
4717
|
+
# end_time: Time.now,
|
4718
|
+
# active: false,
|
4719
|
+
# filters: [
|
4720
|
+
# {
|
4721
|
+
# name: "cluster-identifier", # required, accepts cluster-identifier, iam-role
|
4722
|
+
# values: ["String"], # required
|
4723
|
+
# },
|
4724
|
+
# ],
|
4725
|
+
# marker: "String",
|
4726
|
+
# max_records: 1,
|
4727
|
+
# })
|
4728
|
+
#
|
4729
|
+
# @example Response structure
|
4730
|
+
#
|
4731
|
+
# resp.marker #=> String
|
4732
|
+
# resp.scheduled_actions #=> Array
|
4733
|
+
# resp.scheduled_actions[0].scheduled_action_name #=> String
|
4734
|
+
# resp.scheduled_actions[0].target_action.resize_cluster.cluster_identifier #=> String
|
4735
|
+
# resp.scheduled_actions[0].target_action.resize_cluster.cluster_type #=> String
|
4736
|
+
# resp.scheduled_actions[0].target_action.resize_cluster.node_type #=> String
|
4737
|
+
# resp.scheduled_actions[0].target_action.resize_cluster.number_of_nodes #=> Integer
|
4738
|
+
# resp.scheduled_actions[0].target_action.resize_cluster.classic #=> Boolean
|
4739
|
+
# resp.scheduled_actions[0].schedule #=> String
|
4740
|
+
# resp.scheduled_actions[0].iam_role #=> String
|
4741
|
+
# resp.scheduled_actions[0].scheduled_action_description #=> String
|
4742
|
+
# resp.scheduled_actions[0].state #=> String, one of "ACTIVE", "DISABLED"
|
4743
|
+
# resp.scheduled_actions[0].next_invocations #=> Array
|
4744
|
+
# resp.scheduled_actions[0].next_invocations[0] #=> Time
|
4745
|
+
# resp.scheduled_actions[0].start_time #=> Time
|
4746
|
+
# resp.scheduled_actions[0].end_time #=> Time
|
4747
|
+
#
|
4748
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeScheduledActions AWS API Documentation
|
4749
|
+
#
|
4750
|
+
# @overload describe_scheduled_actions(params = {})
|
4751
|
+
# @param [Hash] params ({})
|
4752
|
+
def describe_scheduled_actions(params = {}, options = {})
|
4753
|
+
req = build_request(:describe_scheduled_actions, params)
|
4754
|
+
req.send_request(options)
|
4755
|
+
end
|
4756
|
+
|
4531
4757
|
# Returns a list of snapshot copy grants owned by the AWS account in the
|
4532
4758
|
# destination region.
|
4533
4759
|
#
|
@@ -6667,6 +6893,97 @@ module Aws::Redshift
|
|
6667
6893
|
req.send_request(options)
|
6668
6894
|
end
|
6669
6895
|
|
6896
|
+
# Modify a scheduled action.
|
6897
|
+
#
|
6898
|
+
# @option params [required, String] :scheduled_action_name
|
6899
|
+
# The name of the scheduled action to modify.
|
6900
|
+
#
|
6901
|
+
# @option params [Types::ScheduledActionType] :target_action
|
6902
|
+
# A modified JSON format of the scheduled action. For more information
|
6903
|
+
# about this parameter, see ScheduledAction.
|
6904
|
+
#
|
6905
|
+
# @option params [String] :schedule
|
6906
|
+
# A modified schedule in either `at( )` or `cron( )` format. For more
|
6907
|
+
# information about this parameter, see ScheduledAction.
|
6908
|
+
#
|
6909
|
+
# @option params [String] :iam_role
|
6910
|
+
# A different IAM role to assume to run the target action. For more
|
6911
|
+
# information about this parameter, see ScheduledAction.
|
6912
|
+
#
|
6913
|
+
# @option params [String] :scheduled_action_description
|
6914
|
+
# A modified description of the scheduled action.
|
6915
|
+
#
|
6916
|
+
# @option params [Time,DateTime,Date,Integer,String] :start_time
|
6917
|
+
# A modified start time of the scheduled action. For more information
|
6918
|
+
# about this parameter, see ScheduledAction.
|
6919
|
+
#
|
6920
|
+
# @option params [Time,DateTime,Date,Integer,String] :end_time
|
6921
|
+
# A modified end time of the scheduled action. For more information
|
6922
|
+
# about this parameter, see ScheduledAction.
|
6923
|
+
#
|
6924
|
+
# @option params [Boolean] :enable
|
6925
|
+
# A modified enable flag of the scheduled action. If true, the scheduled
|
6926
|
+
# action is active. If false, the scheduled action is disabled.
|
6927
|
+
#
|
6928
|
+
# @return [Types::ScheduledAction] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
6929
|
+
#
|
6930
|
+
# * {Types::ScheduledAction#scheduled_action_name #scheduled_action_name} => String
|
6931
|
+
# * {Types::ScheduledAction#target_action #target_action} => Types::ScheduledActionType
|
6932
|
+
# * {Types::ScheduledAction#schedule #schedule} => String
|
6933
|
+
# * {Types::ScheduledAction#iam_role #iam_role} => String
|
6934
|
+
# * {Types::ScheduledAction#scheduled_action_description #scheduled_action_description} => String
|
6935
|
+
# * {Types::ScheduledAction#state #state} => String
|
6936
|
+
# * {Types::ScheduledAction#next_invocations #next_invocations} => Array<Time>
|
6937
|
+
# * {Types::ScheduledAction#start_time #start_time} => Time
|
6938
|
+
# * {Types::ScheduledAction#end_time #end_time} => Time
|
6939
|
+
#
|
6940
|
+
# @example Request syntax with placeholder values
|
6941
|
+
#
|
6942
|
+
# resp = client.modify_scheduled_action({
|
6943
|
+
# scheduled_action_name: "String", # required
|
6944
|
+
# target_action: {
|
6945
|
+
# resize_cluster: {
|
6946
|
+
# cluster_identifier: "String", # required
|
6947
|
+
# cluster_type: "String",
|
6948
|
+
# node_type: "String",
|
6949
|
+
# number_of_nodes: 1, # required
|
6950
|
+
# classic: false,
|
6951
|
+
# },
|
6952
|
+
# },
|
6953
|
+
# schedule: "String",
|
6954
|
+
# iam_role: "String",
|
6955
|
+
# scheduled_action_description: "String",
|
6956
|
+
# start_time: Time.now,
|
6957
|
+
# end_time: Time.now,
|
6958
|
+
# enable: false,
|
6959
|
+
# })
|
6960
|
+
#
|
6961
|
+
# @example Response structure
|
6962
|
+
#
|
6963
|
+
# resp.scheduled_action_name #=> String
|
6964
|
+
# resp.target_action.resize_cluster.cluster_identifier #=> String
|
6965
|
+
# resp.target_action.resize_cluster.cluster_type #=> String
|
6966
|
+
# resp.target_action.resize_cluster.node_type #=> String
|
6967
|
+
# resp.target_action.resize_cluster.number_of_nodes #=> Integer
|
6968
|
+
# resp.target_action.resize_cluster.classic #=> Boolean
|
6969
|
+
# resp.schedule #=> String
|
6970
|
+
# resp.iam_role #=> String
|
6971
|
+
# resp.scheduled_action_description #=> String
|
6972
|
+
# resp.state #=> String, one of "ACTIVE", "DISABLED"
|
6973
|
+
# resp.next_invocations #=> Array
|
6974
|
+
# resp.next_invocations[0] #=> Time
|
6975
|
+
# resp.start_time #=> Time
|
6976
|
+
# resp.end_time #=> Time
|
6977
|
+
#
|
6978
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyScheduledAction AWS API Documentation
|
6979
|
+
#
|
6980
|
+
# @overload modify_scheduled_action(params = {})
|
6981
|
+
# @param [Hash] params ({})
|
6982
|
+
def modify_scheduled_action(params = {}, options = {})
|
6983
|
+
req = build_request(:modify_scheduled_action, params)
|
6984
|
+
req.send_request(options)
|
6985
|
+
end
|
6986
|
+
|
6670
6987
|
# Modifies the number of days to retain snapshots in the destination AWS
|
6671
6988
|
# Region after they are copied from the source AWS Region. By default,
|
6672
6989
|
# this operation only changes the retention period of copied automated
|
@@ -8065,7 +8382,7 @@ module Aws::Redshift
|
|
8065
8382
|
params: params,
|
8066
8383
|
config: config)
|
8067
8384
|
context[:gem_name] = 'aws-sdk-redshift'
|
8068
|
-
context[:gem_version] = '1.
|
8385
|
+
context[:gem_version] = '1.34.0'
|
8069
8386
|
Seahorse::Client::Request.new(handlers, context)
|
8070
8387
|
end
|
8071
8388
|
|
@@ -114,6 +114,7 @@ module Aws::Redshift
|
|
114
114
|
CreateHsmClientCertificateResult = Shapes::StructureShape.new(name: 'CreateHsmClientCertificateResult')
|
115
115
|
CreateHsmConfigurationMessage = Shapes::StructureShape.new(name: 'CreateHsmConfigurationMessage')
|
116
116
|
CreateHsmConfigurationResult = Shapes::StructureShape.new(name: 'CreateHsmConfigurationResult')
|
117
|
+
CreateScheduledActionMessage = Shapes::StructureShape.new(name: 'CreateScheduledActionMessage')
|
117
118
|
CreateSnapshotCopyGrantMessage = Shapes::StructureShape.new(name: 'CreateSnapshotCopyGrantMessage')
|
118
119
|
CreateSnapshotCopyGrantResult = Shapes::StructureShape.new(name: 'CreateSnapshotCopyGrantResult')
|
119
120
|
CreateSnapshotScheduleMessage = Shapes::StructureShape.new(name: 'CreateSnapshotScheduleMessage')
|
@@ -135,6 +136,7 @@ module Aws::Redshift
|
|
135
136
|
DeleteEventSubscriptionMessage = Shapes::StructureShape.new(name: 'DeleteEventSubscriptionMessage')
|
136
137
|
DeleteHsmClientCertificateMessage = Shapes::StructureShape.new(name: 'DeleteHsmClientCertificateMessage')
|
137
138
|
DeleteHsmConfigurationMessage = Shapes::StructureShape.new(name: 'DeleteHsmConfigurationMessage')
|
139
|
+
DeleteScheduledActionMessage = Shapes::StructureShape.new(name: 'DeleteScheduledActionMessage')
|
138
140
|
DeleteSnapshotCopyGrantMessage = Shapes::StructureShape.new(name: 'DeleteSnapshotCopyGrantMessage')
|
139
141
|
DeleteSnapshotScheduleMessage = Shapes::StructureShape.new(name: 'DeleteSnapshotScheduleMessage')
|
140
142
|
DeleteTagsMessage = Shapes::StructureShape.new(name: 'DeleteTagsMessage')
|
@@ -163,6 +165,7 @@ module Aws::Redshift
|
|
163
165
|
DescribeReservedNodeOfferingsMessage = Shapes::StructureShape.new(name: 'DescribeReservedNodeOfferingsMessage')
|
164
166
|
DescribeReservedNodesMessage = Shapes::StructureShape.new(name: 'DescribeReservedNodesMessage')
|
165
167
|
DescribeResizeMessage = Shapes::StructureShape.new(name: 'DescribeResizeMessage')
|
168
|
+
DescribeScheduledActionsMessage = Shapes::StructureShape.new(name: 'DescribeScheduledActionsMessage')
|
166
169
|
DescribeSnapshotCopyGrantsMessage = Shapes::StructureShape.new(name: 'DescribeSnapshotCopyGrantsMessage')
|
167
170
|
DescribeSnapshotSchedulesMessage = Shapes::StructureShape.new(name: 'DescribeSnapshotSchedulesMessage')
|
168
171
|
DescribeSnapshotSchedulesOutputMessage = Shapes::StructureShape.new(name: 'DescribeSnapshotSchedulesOutputMessage')
|
@@ -239,6 +242,7 @@ module Aws::Redshift
|
|
239
242
|
InvalidS3BucketNameFault = Shapes::StructureShape.new(name: 'InvalidS3BucketNameFault')
|
240
243
|
InvalidS3KeyPrefixFault = Shapes::StructureShape.new(name: 'InvalidS3KeyPrefixFault')
|
241
244
|
InvalidScheduleFault = Shapes::StructureShape.new(name: 'InvalidScheduleFault')
|
245
|
+
InvalidScheduledActionFault = Shapes::StructureShape.new(name: 'InvalidScheduledActionFault')
|
242
246
|
InvalidSnapshotCopyGrantStateFault = Shapes::StructureShape.new(name: 'InvalidSnapshotCopyGrantStateFault')
|
243
247
|
InvalidSubnet = Shapes::StructureShape.new(name: 'InvalidSubnet')
|
244
248
|
InvalidSubscriptionStateFault = Shapes::StructureShape.new(name: 'InvalidSubscriptionStateFault')
|
@@ -250,6 +254,7 @@ module Aws::Redshift
|
|
250
254
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
251
255
|
LongOptional = Shapes::IntegerShape.new(name: 'LongOptional')
|
252
256
|
MaintenanceTrack = Shapes::StructureShape.new(name: 'MaintenanceTrack')
|
257
|
+
Mode = Shapes::StringShape.new(name: 'Mode')
|
253
258
|
ModifyClusterDbRevisionMessage = Shapes::StructureShape.new(name: 'ModifyClusterDbRevisionMessage')
|
254
259
|
ModifyClusterDbRevisionResult = Shapes::StructureShape.new(name: 'ModifyClusterDbRevisionResult')
|
255
260
|
ModifyClusterIamRolesMessage = Shapes::StructureShape.new(name: 'ModifyClusterIamRolesMessage')
|
@@ -266,6 +271,7 @@ module Aws::Redshift
|
|
266
271
|
ModifyClusterSubnetGroupResult = Shapes::StructureShape.new(name: 'ModifyClusterSubnetGroupResult')
|
267
272
|
ModifyEventSubscriptionMessage = Shapes::StructureShape.new(name: 'ModifyEventSubscriptionMessage')
|
268
273
|
ModifyEventSubscriptionResult = Shapes::StructureShape.new(name: 'ModifyEventSubscriptionResult')
|
274
|
+
ModifyScheduledActionMessage = Shapes::StructureShape.new(name: 'ModifyScheduledActionMessage')
|
269
275
|
ModifySnapshotCopyRetentionPeriodMessage = Shapes::StructureShape.new(name: 'ModifySnapshotCopyRetentionPeriodMessage')
|
270
276
|
ModifySnapshotCopyRetentionPeriodResult = Shapes::StructureShape.new(name: 'ModifySnapshotCopyRetentionPeriodResult')
|
271
277
|
ModifySnapshotScheduleMessage = Shapes::StructureShape.new(name: 'ModifySnapshotScheduleMessage')
|
@@ -332,6 +338,20 @@ module Aws::Redshift
|
|
332
338
|
ScheduleDefinitionList = Shapes::ListShape.new(name: 'ScheduleDefinitionList')
|
333
339
|
ScheduleDefinitionTypeUnsupportedFault = Shapes::StructureShape.new(name: 'ScheduleDefinitionTypeUnsupportedFault')
|
334
340
|
ScheduleState = Shapes::StringShape.new(name: 'ScheduleState')
|
341
|
+
ScheduledAction = Shapes::StructureShape.new(name: 'ScheduledAction')
|
342
|
+
ScheduledActionAlreadyExistsFault = Shapes::StructureShape.new(name: 'ScheduledActionAlreadyExistsFault')
|
343
|
+
ScheduledActionFilter = Shapes::StructureShape.new(name: 'ScheduledActionFilter')
|
344
|
+
ScheduledActionFilterList = Shapes::ListShape.new(name: 'ScheduledActionFilterList')
|
345
|
+
ScheduledActionFilterName = Shapes::StringShape.new(name: 'ScheduledActionFilterName')
|
346
|
+
ScheduledActionList = Shapes::ListShape.new(name: 'ScheduledActionList')
|
347
|
+
ScheduledActionNotFoundFault = Shapes::StructureShape.new(name: 'ScheduledActionNotFoundFault')
|
348
|
+
ScheduledActionQuotaExceededFault = Shapes::StructureShape.new(name: 'ScheduledActionQuotaExceededFault')
|
349
|
+
ScheduledActionState = Shapes::StringShape.new(name: 'ScheduledActionState')
|
350
|
+
ScheduledActionTimeList = Shapes::ListShape.new(name: 'ScheduledActionTimeList')
|
351
|
+
ScheduledActionType = Shapes::StructureShape.new(name: 'ScheduledActionType')
|
352
|
+
ScheduledActionTypeUnsupportedFault = Shapes::StructureShape.new(name: 'ScheduledActionTypeUnsupportedFault')
|
353
|
+
ScheduledActionTypeValues = Shapes::StringShape.new(name: 'ScheduledActionTypeValues')
|
354
|
+
ScheduledActionsMessage = Shapes::StructureShape.new(name: 'ScheduledActionsMessage')
|
335
355
|
ScheduledSnapshotTimeList = Shapes::ListShape.new(name: 'ScheduledSnapshotTimeList')
|
336
356
|
SensitiveString = Shapes::StringShape.new(name: 'SensitiveString')
|
337
357
|
Snapshot = Shapes::StructureShape.new(name: 'Snapshot')
|
@@ -762,6 +782,16 @@ module Aws::Redshift
|
|
762
782
|
CreateHsmConfigurationResult.add_member(:hsm_configuration, Shapes::ShapeRef.new(shape: HsmConfiguration, location_name: "HsmConfiguration"))
|
763
783
|
CreateHsmConfigurationResult.struct_class = Types::CreateHsmConfigurationResult
|
764
784
|
|
785
|
+
CreateScheduledActionMessage.add_member(:scheduled_action_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ScheduledActionName"))
|
786
|
+
CreateScheduledActionMessage.add_member(:target_action, Shapes::ShapeRef.new(shape: ScheduledActionType, required: true, location_name: "TargetAction"))
|
787
|
+
CreateScheduledActionMessage.add_member(:schedule, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Schedule"))
|
788
|
+
CreateScheduledActionMessage.add_member(:iam_role, Shapes::ShapeRef.new(shape: String, required: true, location_name: "IamRole"))
|
789
|
+
CreateScheduledActionMessage.add_member(:scheduled_action_description, Shapes::ShapeRef.new(shape: String, location_name: "ScheduledActionDescription"))
|
790
|
+
CreateScheduledActionMessage.add_member(:start_time, Shapes::ShapeRef.new(shape: TStamp, location_name: "StartTime"))
|
791
|
+
CreateScheduledActionMessage.add_member(:end_time, Shapes::ShapeRef.new(shape: TStamp, location_name: "EndTime"))
|
792
|
+
CreateScheduledActionMessage.add_member(:enable, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "Enable"))
|
793
|
+
CreateScheduledActionMessage.struct_class = Types::CreateScheduledActionMessage
|
794
|
+
|
765
795
|
CreateSnapshotCopyGrantMessage.add_member(:snapshot_copy_grant_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "SnapshotCopyGrantName"))
|
766
796
|
CreateSnapshotCopyGrantMessage.add_member(:kms_key_id, Shapes::ShapeRef.new(shape: String, location_name: "KmsKeyId"))
|
767
797
|
CreateSnapshotCopyGrantMessage.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
@@ -844,6 +874,9 @@ module Aws::Redshift
|
|
844
874
|
DeleteHsmConfigurationMessage.add_member(:hsm_configuration_identifier, Shapes::ShapeRef.new(shape: String, required: true, location_name: "HsmConfigurationIdentifier"))
|
845
875
|
DeleteHsmConfigurationMessage.struct_class = Types::DeleteHsmConfigurationMessage
|
846
876
|
|
877
|
+
DeleteScheduledActionMessage.add_member(:scheduled_action_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ScheduledActionName"))
|
878
|
+
DeleteScheduledActionMessage.struct_class = Types::DeleteScheduledActionMessage
|
879
|
+
|
847
880
|
DeleteSnapshotCopyGrantMessage.add_member(:snapshot_copy_grant_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "SnapshotCopyGrantName"))
|
848
881
|
DeleteSnapshotCopyGrantMessage.struct_class = Types::DeleteSnapshotCopyGrantMessage
|
849
882
|
|
@@ -966,6 +999,7 @@ module Aws::Redshift
|
|
966
999
|
DescribeLoggingStatusMessage.struct_class = Types::DescribeLoggingStatusMessage
|
967
1000
|
|
968
1001
|
DescribeNodeConfigurationOptionsMessage.add_member(:action_type, Shapes::ShapeRef.new(shape: ActionType, required: true, location_name: "ActionType"))
|
1002
|
+
DescribeNodeConfigurationOptionsMessage.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: String, location_name: "ClusterIdentifier"))
|
969
1003
|
DescribeNodeConfigurationOptionsMessage.add_member(:snapshot_identifier, Shapes::ShapeRef.new(shape: String, location_name: "SnapshotIdentifier"))
|
970
1004
|
DescribeNodeConfigurationOptionsMessage.add_member(:owner_account, Shapes::ShapeRef.new(shape: String, location_name: "OwnerAccount"))
|
971
1005
|
DescribeNodeConfigurationOptionsMessage.add_member(:filters, Shapes::ShapeRef.new(shape: NodeConfigurationOptionsFilterList, location_name: "Filter"))
|
@@ -992,6 +1026,16 @@ module Aws::Redshift
|
|
992
1026
|
DescribeResizeMessage.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ClusterIdentifier"))
|
993
1027
|
DescribeResizeMessage.struct_class = Types::DescribeResizeMessage
|
994
1028
|
|
1029
|
+
DescribeScheduledActionsMessage.add_member(:scheduled_action_name, Shapes::ShapeRef.new(shape: String, location_name: "ScheduledActionName"))
|
1030
|
+
DescribeScheduledActionsMessage.add_member(:target_action_type, Shapes::ShapeRef.new(shape: ScheduledActionTypeValues, location_name: "TargetActionType"))
|
1031
|
+
DescribeScheduledActionsMessage.add_member(:start_time, Shapes::ShapeRef.new(shape: TStamp, location_name: "StartTime"))
|
1032
|
+
DescribeScheduledActionsMessage.add_member(:end_time, Shapes::ShapeRef.new(shape: TStamp, location_name: "EndTime"))
|
1033
|
+
DescribeScheduledActionsMessage.add_member(:active, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "Active"))
|
1034
|
+
DescribeScheduledActionsMessage.add_member(:filters, Shapes::ShapeRef.new(shape: ScheduledActionFilterList, location_name: "Filters"))
|
1035
|
+
DescribeScheduledActionsMessage.add_member(:marker, Shapes::ShapeRef.new(shape: String, location_name: "Marker"))
|
1036
|
+
DescribeScheduledActionsMessage.add_member(:max_records, Shapes::ShapeRef.new(shape: IntegerOptional, location_name: "MaxRecords"))
|
1037
|
+
DescribeScheduledActionsMessage.struct_class = Types::DescribeScheduledActionsMessage
|
1038
|
+
|
995
1039
|
DescribeSnapshotCopyGrantsMessage.add_member(:snapshot_copy_grant_name, Shapes::ShapeRef.new(shape: String, location_name: "SnapshotCopyGrantName"))
|
996
1040
|
DescribeSnapshotCopyGrantsMessage.add_member(:max_records, Shapes::ShapeRef.new(shape: IntegerOptional, location_name: "MaxRecords"))
|
997
1041
|
DescribeSnapshotCopyGrantsMessage.add_member(:marker, Shapes::ShapeRef.new(shape: String, location_name: "Marker"))
|
@@ -1284,6 +1328,16 @@ module Aws::Redshift
|
|
1284
1328
|
ModifyEventSubscriptionResult.add_member(:event_subscription, Shapes::ShapeRef.new(shape: EventSubscription, location_name: "EventSubscription"))
|
1285
1329
|
ModifyEventSubscriptionResult.struct_class = Types::ModifyEventSubscriptionResult
|
1286
1330
|
|
1331
|
+
ModifyScheduledActionMessage.add_member(:scheduled_action_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ScheduledActionName"))
|
1332
|
+
ModifyScheduledActionMessage.add_member(:target_action, Shapes::ShapeRef.new(shape: ScheduledActionType, location_name: "TargetAction"))
|
1333
|
+
ModifyScheduledActionMessage.add_member(:schedule, Shapes::ShapeRef.new(shape: String, location_name: "Schedule"))
|
1334
|
+
ModifyScheduledActionMessage.add_member(:iam_role, Shapes::ShapeRef.new(shape: String, location_name: "IamRole"))
|
1335
|
+
ModifyScheduledActionMessage.add_member(:scheduled_action_description, Shapes::ShapeRef.new(shape: String, location_name: "ScheduledActionDescription"))
|
1336
|
+
ModifyScheduledActionMessage.add_member(:start_time, Shapes::ShapeRef.new(shape: TStamp, location_name: "StartTime"))
|
1337
|
+
ModifyScheduledActionMessage.add_member(:end_time, Shapes::ShapeRef.new(shape: TStamp, location_name: "EndTime"))
|
1338
|
+
ModifyScheduledActionMessage.add_member(:enable, Shapes::ShapeRef.new(shape: BooleanOptional, location_name: "Enable"))
|
1339
|
+
ModifyScheduledActionMessage.struct_class = Types::ModifyScheduledActionMessage
|
1340
|
+
|
1287
1341
|
ModifySnapshotCopyRetentionPeriodMessage.add_member(:cluster_identifier, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ClusterIdentifier"))
|
1288
1342
|
ModifySnapshotCopyRetentionPeriodMessage.add_member(:retention_period, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "RetentionPeriod"))
|
1289
1343
|
ModifySnapshotCopyRetentionPeriodMessage.add_member(:manual, Shapes::ShapeRef.new(shape: Boolean, location_name: "Manual"))
|
@@ -1299,6 +1353,7 @@ module Aws::Redshift
|
|
1299
1353
|
NodeConfigurationOption.add_member(:node_type, Shapes::ShapeRef.new(shape: String, location_name: "NodeType"))
|
1300
1354
|
NodeConfigurationOption.add_member(:number_of_nodes, Shapes::ShapeRef.new(shape: Integer, location_name: "NumberOfNodes"))
|
1301
1355
|
NodeConfigurationOption.add_member(:estimated_disk_utilization_percent, Shapes::ShapeRef.new(shape: DoubleOptional, location_name: "EstimatedDiskUtilizationPercent"))
|
1356
|
+
NodeConfigurationOption.add_member(:mode, Shapes::ShapeRef.new(shape: Mode, location_name: "Mode"))
|
1302
1357
|
NodeConfigurationOption.struct_class = Types::NodeConfigurationOption
|
1303
1358
|
|
1304
1359
|
NodeConfigurationOptionList.member = Shapes::ShapeRef.new(shape: NodeConfigurationOption, location_name: "NodeConfigurationOption")
|
@@ -1536,6 +1591,34 @@ module Aws::Redshift
|
|
1536
1591
|
|
1537
1592
|
ScheduleDefinitionList.member = Shapes::ShapeRef.new(shape: String, location_name: "ScheduleDefinition")
|
1538
1593
|
|
1594
|
+
ScheduledAction.add_member(:scheduled_action_name, Shapes::ShapeRef.new(shape: String, location_name: "ScheduledActionName"))
|
1595
|
+
ScheduledAction.add_member(:target_action, Shapes::ShapeRef.new(shape: ScheduledActionType, location_name: "TargetAction"))
|
1596
|
+
ScheduledAction.add_member(:schedule, Shapes::ShapeRef.new(shape: String, location_name: "Schedule"))
|
1597
|
+
ScheduledAction.add_member(:iam_role, Shapes::ShapeRef.new(shape: String, location_name: "IamRole"))
|
1598
|
+
ScheduledAction.add_member(:scheduled_action_description, Shapes::ShapeRef.new(shape: String, location_name: "ScheduledActionDescription"))
|
1599
|
+
ScheduledAction.add_member(:state, Shapes::ShapeRef.new(shape: ScheduledActionState, location_name: "State"))
|
1600
|
+
ScheduledAction.add_member(:next_invocations, Shapes::ShapeRef.new(shape: ScheduledActionTimeList, location_name: "NextInvocations"))
|
1601
|
+
ScheduledAction.add_member(:start_time, Shapes::ShapeRef.new(shape: TStamp, location_name: "StartTime"))
|
1602
|
+
ScheduledAction.add_member(:end_time, Shapes::ShapeRef.new(shape: TStamp, location_name: "EndTime"))
|
1603
|
+
ScheduledAction.struct_class = Types::ScheduledAction
|
1604
|
+
|
1605
|
+
ScheduledActionFilter.add_member(:name, Shapes::ShapeRef.new(shape: ScheduledActionFilterName, required: true, location_name: "Name"))
|
1606
|
+
ScheduledActionFilter.add_member(:values, Shapes::ShapeRef.new(shape: ValueStringList, required: true, location_name: "Values"))
|
1607
|
+
ScheduledActionFilter.struct_class = Types::ScheduledActionFilter
|
1608
|
+
|
1609
|
+
ScheduledActionFilterList.member = Shapes::ShapeRef.new(shape: ScheduledActionFilter, location_name: "ScheduledActionFilter")
|
1610
|
+
|
1611
|
+
ScheduledActionList.member = Shapes::ShapeRef.new(shape: ScheduledAction, location_name: "ScheduledAction")
|
1612
|
+
|
1613
|
+
ScheduledActionTimeList.member = Shapes::ShapeRef.new(shape: TStamp, location_name: "ScheduledActionTime")
|
1614
|
+
|
1615
|
+
ScheduledActionType.add_member(:resize_cluster, Shapes::ShapeRef.new(shape: ResizeClusterMessage, location_name: "ResizeCluster"))
|
1616
|
+
ScheduledActionType.struct_class = Types::ScheduledActionType
|
1617
|
+
|
1618
|
+
ScheduledActionsMessage.add_member(:marker, Shapes::ShapeRef.new(shape: String, location_name: "Marker"))
|
1619
|
+
ScheduledActionsMessage.add_member(:scheduled_actions, Shapes::ShapeRef.new(shape: ScheduledActionList, location_name: "ScheduledActions"))
|
1620
|
+
ScheduledActionsMessage.struct_class = Types::ScheduledActionsMessage
|
1621
|
+
|
1539
1622
|
ScheduledSnapshotTimeList.member = Shapes::ShapeRef.new(shape: TStamp, location_name: "SnapshotTime")
|
1540
1623
|
|
1541
1624
|
Snapshot.add_member(:snapshot_identifier, Shapes::ShapeRef.new(shape: String, location_name: "SnapshotIdentifier"))
|
@@ -1930,6 +2013,20 @@ module Aws::Redshift
|
|
1930
2013
|
o.errors << Shapes::ShapeRef.new(shape: InvalidTagFault)
|
1931
2014
|
end)
|
1932
2015
|
|
2016
|
+
api.add_operation(:create_scheduled_action, Seahorse::Model::Operation.new.tap do |o|
|
2017
|
+
o.name = "CreateScheduledAction"
|
2018
|
+
o.http_method = "POST"
|
2019
|
+
o.http_request_uri = "/"
|
2020
|
+
o.input = Shapes::ShapeRef.new(shape: CreateScheduledActionMessage)
|
2021
|
+
o.output = Shapes::ShapeRef.new(shape: ScheduledAction)
|
2022
|
+
o.errors << Shapes::ShapeRef.new(shape: ScheduledActionAlreadyExistsFault)
|
2023
|
+
o.errors << Shapes::ShapeRef.new(shape: ScheduledActionQuotaExceededFault)
|
2024
|
+
o.errors << Shapes::ShapeRef.new(shape: ScheduledActionTypeUnsupportedFault)
|
2025
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidScheduleFault)
|
2026
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidScheduledActionFault)
|
2027
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedOperation)
|
2028
|
+
end)
|
2029
|
+
|
1933
2030
|
api.add_operation(:create_snapshot_copy_grant, Seahorse::Model::Operation.new.tap do |o|
|
1934
2031
|
o.name = "CreateSnapshotCopyGrant"
|
1935
2032
|
o.http_method = "POST"
|
@@ -2052,6 +2149,16 @@ module Aws::Redshift
|
|
2052
2149
|
o.errors << Shapes::ShapeRef.new(shape: HsmConfigurationNotFoundFault)
|
2053
2150
|
end)
|
2054
2151
|
|
2152
|
+
api.add_operation(:delete_scheduled_action, Seahorse::Model::Operation.new.tap do |o|
|
2153
|
+
o.name = "DeleteScheduledAction"
|
2154
|
+
o.http_method = "POST"
|
2155
|
+
o.http_request_uri = "/"
|
2156
|
+
o.input = Shapes::ShapeRef.new(shape: DeleteScheduledActionMessage)
|
2157
|
+
o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
|
2158
|
+
o.errors << Shapes::ShapeRef.new(shape: ScheduledActionNotFoundFault)
|
2159
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedOperation)
|
2160
|
+
end)
|
2161
|
+
|
2055
2162
|
api.add_operation(:delete_snapshot_copy_grant, Seahorse::Model::Operation.new.tap do |o|
|
2056
2163
|
o.name = "DeleteSnapshotCopyGrant"
|
2057
2164
|
o.http_method = "POST"
|
@@ -2321,6 +2428,8 @@ module Aws::Redshift
|
|
2321
2428
|
o.output = Shapes::ShapeRef.new(shape: NodeConfigurationOptionsMessage)
|
2322
2429
|
o.errors << Shapes::ShapeRef.new(shape: ClusterSnapshotNotFoundFault)
|
2323
2430
|
o.errors << Shapes::ShapeRef.new(shape: InvalidClusterSnapshotStateFault)
|
2431
|
+
o.errors << Shapes::ShapeRef.new(shape: ClusterNotFoundFault)
|
2432
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessToSnapshotDeniedFault)
|
2324
2433
|
o[:pager] = Aws::Pager.new(
|
2325
2434
|
limit_key: "max_records",
|
2326
2435
|
tokens: {
|
@@ -2386,6 +2495,22 @@ module Aws::Redshift
|
|
2386
2495
|
o.errors << Shapes::ShapeRef.new(shape: ResizeNotFoundFault)
|
2387
2496
|
end)
|
2388
2497
|
|
2498
|
+
api.add_operation(:describe_scheduled_actions, Seahorse::Model::Operation.new.tap do |o|
|
2499
|
+
o.name = "DescribeScheduledActions"
|
2500
|
+
o.http_method = "POST"
|
2501
|
+
o.http_request_uri = "/"
|
2502
|
+
o.input = Shapes::ShapeRef.new(shape: DescribeScheduledActionsMessage)
|
2503
|
+
o.output = Shapes::ShapeRef.new(shape: ScheduledActionsMessage)
|
2504
|
+
o.errors << Shapes::ShapeRef.new(shape: ScheduledActionNotFoundFault)
|
2505
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedOperation)
|
2506
|
+
o[:pager] = Aws::Pager.new(
|
2507
|
+
limit_key: "max_records",
|
2508
|
+
tokens: {
|
2509
|
+
"marker" => "marker"
|
2510
|
+
}
|
2511
|
+
)
|
2512
|
+
end)
|
2513
|
+
|
2389
2514
|
api.add_operation(:describe_snapshot_copy_grants, Seahorse::Model::Operation.new.tap do |o|
|
2390
2515
|
o.name = "DescribeSnapshotCopyGrants"
|
2391
2516
|
o.http_method = "POST"
|
@@ -2629,6 +2754,19 @@ module Aws::Redshift
|
|
2629
2754
|
o.errors << Shapes::ShapeRef.new(shape: InvalidSubscriptionStateFault)
|
2630
2755
|
end)
|
2631
2756
|
|
2757
|
+
api.add_operation(:modify_scheduled_action, Seahorse::Model::Operation.new.tap do |o|
|
2758
|
+
o.name = "ModifyScheduledAction"
|
2759
|
+
o.http_method = "POST"
|
2760
|
+
o.http_request_uri = "/"
|
2761
|
+
o.input = Shapes::ShapeRef.new(shape: ModifyScheduledActionMessage)
|
2762
|
+
o.output = Shapes::ShapeRef.new(shape: ScheduledAction)
|
2763
|
+
o.errors << Shapes::ShapeRef.new(shape: ScheduledActionNotFoundFault)
|
2764
|
+
o.errors << Shapes::ShapeRef.new(shape: ScheduledActionTypeUnsupportedFault)
|
2765
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidScheduleFault)
|
2766
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidScheduledActionFault)
|
2767
|
+
o.errors << Shapes::ShapeRef.new(shape: UnauthorizedOperation)
|
2768
|
+
end)
|
2769
|
+
|
2632
2770
|
api.add_operation(:modify_snapshot_copy_retention_period, Seahorse::Model::Operation.new.tap do |o|
|
2633
2771
|
o.name = "ModifySnapshotCopyRetentionPeriod"
|
2634
2772
|
o.http_method = "POST"
|
@@ -2274,6 +2274,86 @@ module Aws::Redshift
|
|
2274
2274
|
include Aws::Structure
|
2275
2275
|
end
|
2276
2276
|
|
2277
|
+
# @note When making an API call, you may pass CreateScheduledActionMessage
|
2278
|
+
# data as a hash:
|
2279
|
+
#
|
2280
|
+
# {
|
2281
|
+
# scheduled_action_name: "String", # required
|
2282
|
+
# target_action: { # required
|
2283
|
+
# resize_cluster: {
|
2284
|
+
# cluster_identifier: "String", # required
|
2285
|
+
# cluster_type: "String",
|
2286
|
+
# node_type: "String",
|
2287
|
+
# number_of_nodes: 1, # required
|
2288
|
+
# classic: false,
|
2289
|
+
# },
|
2290
|
+
# },
|
2291
|
+
# schedule: "String", # required
|
2292
|
+
# iam_role: "String", # required
|
2293
|
+
# scheduled_action_description: "String",
|
2294
|
+
# start_time: Time.now,
|
2295
|
+
# end_time: Time.now,
|
2296
|
+
# enable: false,
|
2297
|
+
# }
|
2298
|
+
#
|
2299
|
+
# @!attribute [rw] scheduled_action_name
|
2300
|
+
# The name of the scheduled action. The name must be unique within an
|
2301
|
+
# account. For more information about this parameter, see
|
2302
|
+
# ScheduledAction.
|
2303
|
+
# @return [String]
|
2304
|
+
#
|
2305
|
+
# @!attribute [rw] target_action
|
2306
|
+
# A JSON format string of the Amazon Redshift API operation with input
|
2307
|
+
# parameters. For more information about this parameter, see
|
2308
|
+
# ScheduledAction.
|
2309
|
+
# @return [Types::ScheduledActionType]
|
2310
|
+
#
|
2311
|
+
# @!attribute [rw] schedule
|
2312
|
+
# The schedule in `at( )` or `cron( )` format. For more information
|
2313
|
+
# about this parameter, see ScheduledAction.
|
2314
|
+
# @return [String]
|
2315
|
+
#
|
2316
|
+
# @!attribute [rw] iam_role
|
2317
|
+
# The IAM role to assume to run the target action. For more
|
2318
|
+
# information about this parameter, see ScheduledAction.
|
2319
|
+
# @return [String]
|
2320
|
+
#
|
2321
|
+
# @!attribute [rw] scheduled_action_description
|
2322
|
+
# The description of the scheduled action.
|
2323
|
+
# @return [String]
|
2324
|
+
#
|
2325
|
+
# @!attribute [rw] start_time
|
2326
|
+
# The start time in UTC of the scheduled action. Before this time, the
|
2327
|
+
# scheduled action does not trigger. For more information about this
|
2328
|
+
# parameter, see ScheduledAction.
|
2329
|
+
# @return [Time]
|
2330
|
+
#
|
2331
|
+
# @!attribute [rw] end_time
|
2332
|
+
# The end time in UTC of the scheduled action. After this time, the
|
2333
|
+
# scheduled action does not trigger. For more information about this
|
2334
|
+
# parameter, see ScheduledAction.
|
2335
|
+
# @return [Time]
|
2336
|
+
#
|
2337
|
+
# @!attribute [rw] enable
|
2338
|
+
# If true, the schedule is enabled. If false, the scheduled action
|
2339
|
+
# does not trigger. For more information about `state` of the
|
2340
|
+
# scheduled action, see ScheduledAction.
|
2341
|
+
# @return [Boolean]
|
2342
|
+
#
|
2343
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/CreateScheduledActionMessage AWS API Documentation
|
2344
|
+
#
|
2345
|
+
class CreateScheduledActionMessage < Struct.new(
|
2346
|
+
:scheduled_action_name,
|
2347
|
+
:target_action,
|
2348
|
+
:schedule,
|
2349
|
+
:iam_role,
|
2350
|
+
:scheduled_action_description,
|
2351
|
+
:start_time,
|
2352
|
+
:end_time,
|
2353
|
+
:enable)
|
2354
|
+
include Aws::Structure
|
2355
|
+
end
|
2356
|
+
|
2277
2357
|
# The result of the `CreateSnapshotCopyGrant` action.
|
2278
2358
|
#
|
2279
2359
|
# @note When making an API call, you may pass CreateSnapshotCopyGrantMessage
|
@@ -2794,6 +2874,24 @@ module Aws::Redshift
|
|
2794
2874
|
include Aws::Structure
|
2795
2875
|
end
|
2796
2876
|
|
2877
|
+
# @note When making an API call, you may pass DeleteScheduledActionMessage
|
2878
|
+
# data as a hash:
|
2879
|
+
#
|
2880
|
+
# {
|
2881
|
+
# scheduled_action_name: "String", # required
|
2882
|
+
# }
|
2883
|
+
#
|
2884
|
+
# @!attribute [rw] scheduled_action_name
|
2885
|
+
# The name of the scheduled action to delete.
|
2886
|
+
# @return [String]
|
2887
|
+
#
|
2888
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DeleteScheduledActionMessage AWS API Documentation
|
2889
|
+
#
|
2890
|
+
class DeleteScheduledActionMessage < Struct.new(
|
2891
|
+
:scheduled_action_name)
|
2892
|
+
include Aws::Structure
|
2893
|
+
end
|
2894
|
+
|
2797
2895
|
# The result of the `DeleteSnapshotCopyGrant` action.
|
2798
2896
|
#
|
2799
2897
|
# @note When making an API call, you may pass DeleteSnapshotCopyGrantMessage
|
@@ -3679,7 +3777,7 @@ module Aws::Redshift
|
|
3679
3777
|
#
|
3680
3778
|
# {
|
3681
3779
|
# source_identifier: "String",
|
3682
|
-
# source_type: "cluster", # accepts cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot
|
3780
|
+
# source_type: "cluster", # accepts cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot, scheduled-action
|
3683
3781
|
# start_time: Time.now,
|
3684
3782
|
# end_time: Time.now,
|
3685
3783
|
# duration: 1,
|
@@ -3962,12 +4060,13 @@ module Aws::Redshift
|
|
3962
4060
|
# data as a hash:
|
3963
4061
|
#
|
3964
4062
|
# {
|
3965
|
-
# action_type: "restore-cluster", # required, accepts restore-cluster
|
4063
|
+
# action_type: "restore-cluster", # required, accepts restore-cluster, recommend-node-config
|
4064
|
+
# cluster_identifier: "String",
|
3966
4065
|
# snapshot_identifier: "String",
|
3967
4066
|
# owner_account: "String",
|
3968
4067
|
# filters: [
|
3969
4068
|
# {
|
3970
|
-
# name: "NodeType", # accepts NodeType, NumberOfNodes, EstimatedDiskUtilizationPercent
|
4069
|
+
# name: "NodeType", # accepts NodeType, NumberOfNodes, EstimatedDiskUtilizationPercent, Mode
|
3971
4070
|
# operator: "eq", # accepts eq, lt, gt, le, ge, in, between
|
3972
4071
|
# values: ["String"],
|
3973
4072
|
# },
|
@@ -3978,7 +4077,15 @@ module Aws::Redshift
|
|
3978
4077
|
#
|
3979
4078
|
# @!attribute [rw] action_type
|
3980
4079
|
# The action type to evaluate for possible node configurations.
|
3981
|
-
#
|
4080
|
+
# Specify "restore-cluster" to get configuration combinations based
|
4081
|
+
# on an existing snapshot. Specify "recommend-node-config" to get
|
4082
|
+
# configuration recommendations based on an existing cluster or
|
4083
|
+
# snapshot.
|
4084
|
+
# @return [String]
|
4085
|
+
#
|
4086
|
+
# @!attribute [rw] cluster_identifier
|
4087
|
+
# The identifier of the cluster to evaluate for possible node
|
4088
|
+
# configurations.
|
3982
4089
|
# @return [String]
|
3983
4090
|
#
|
3984
4091
|
# @!attribute [rw] snapshot_identifier
|
@@ -4022,6 +4129,7 @@ module Aws::Redshift
|
|
4022
4129
|
#
|
4023
4130
|
class DescribeNodeConfigurationOptionsMessage < Struct.new(
|
4024
4131
|
:action_type,
|
4132
|
+
:cluster_identifier,
|
4025
4133
|
:snapshot_identifier,
|
4026
4134
|
:owner_account,
|
4027
4135
|
:filters,
|
@@ -4196,6 +4304,90 @@ module Aws::Redshift
|
|
4196
4304
|
include Aws::Structure
|
4197
4305
|
end
|
4198
4306
|
|
4307
|
+
# @note When making an API call, you may pass DescribeScheduledActionsMessage
|
4308
|
+
# data as a hash:
|
4309
|
+
#
|
4310
|
+
# {
|
4311
|
+
# scheduled_action_name: "String",
|
4312
|
+
# target_action_type: "ResizeCluster", # accepts ResizeCluster
|
4313
|
+
# start_time: Time.now,
|
4314
|
+
# end_time: Time.now,
|
4315
|
+
# active: false,
|
4316
|
+
# filters: [
|
4317
|
+
# {
|
4318
|
+
# name: "cluster-identifier", # required, accepts cluster-identifier, iam-role
|
4319
|
+
# values: ["String"], # required
|
4320
|
+
# },
|
4321
|
+
# ],
|
4322
|
+
# marker: "String",
|
4323
|
+
# max_records: 1,
|
4324
|
+
# }
|
4325
|
+
#
|
4326
|
+
# @!attribute [rw] scheduled_action_name
|
4327
|
+
# The name of the scheduled action to retrieve.
|
4328
|
+
# @return [String]
|
4329
|
+
#
|
4330
|
+
# @!attribute [rw] target_action_type
|
4331
|
+
# The type of the scheduled actions to retrieve.
|
4332
|
+
# @return [String]
|
4333
|
+
#
|
4334
|
+
# @!attribute [rw] start_time
|
4335
|
+
# The start time in UTC of the scheduled actions to retrieve. Only
|
4336
|
+
# active scheduled actions that have invocations after this time are
|
4337
|
+
# retrieved.
|
4338
|
+
# @return [Time]
|
4339
|
+
#
|
4340
|
+
# @!attribute [rw] end_time
|
4341
|
+
# The end time in UTC of the scheduled action to retrieve. Only active
|
4342
|
+
# scheduled actions that have invocations before this time are
|
4343
|
+
# retrieved.
|
4344
|
+
# @return [Time]
|
4345
|
+
#
|
4346
|
+
# @!attribute [rw] active
|
4347
|
+
# If true, retrieve only active scheduled actions. If false, retrieve
|
4348
|
+
# only disabled scheduled actions.
|
4349
|
+
# @return [Boolean]
|
4350
|
+
#
|
4351
|
+
# @!attribute [rw] filters
|
4352
|
+
# List of scheduled action filters.
|
4353
|
+
# @return [Array<Types::ScheduledActionFilter>]
|
4354
|
+
#
|
4355
|
+
# @!attribute [rw] marker
|
4356
|
+
# An optional parameter that specifies the starting point to return a
|
4357
|
+
# set of response records. When the results of a
|
4358
|
+
# DescribeScheduledActions request exceed the value specified in
|
4359
|
+
# `MaxRecords`, AWS returns a value in the `Marker` field of the
|
4360
|
+
# response. You can retrieve the next set of response records by
|
4361
|
+
# providing the returned marker value in the `Marker` parameter and
|
4362
|
+
# retrying the request.
|
4363
|
+
# @return [String]
|
4364
|
+
#
|
4365
|
+
# @!attribute [rw] max_records
|
4366
|
+
# The maximum number of response records to return in each call. If
|
4367
|
+
# the number of remaining response records exceeds the specified
|
4368
|
+
# `MaxRecords` value, a value is returned in a `marker` field of the
|
4369
|
+
# response. You can retrieve the next set of records by retrying the
|
4370
|
+
# command with the returned marker value.
|
4371
|
+
#
|
4372
|
+
# Default: `100`
|
4373
|
+
#
|
4374
|
+
# Constraints: minimum 20, maximum 100.
|
4375
|
+
# @return [Integer]
|
4376
|
+
#
|
4377
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/DescribeScheduledActionsMessage AWS API Documentation
|
4378
|
+
#
|
4379
|
+
class DescribeScheduledActionsMessage < Struct.new(
|
4380
|
+
:scheduled_action_name,
|
4381
|
+
:target_action_type,
|
4382
|
+
:start_time,
|
4383
|
+
:end_time,
|
4384
|
+
:active,
|
4385
|
+
:filters,
|
4386
|
+
:marker,
|
4387
|
+
:max_records)
|
4388
|
+
include Aws::Structure
|
4389
|
+
end
|
4390
|
+
|
4199
4391
|
# The result of the `DescribeSnapshotCopyGrants` action.
|
4200
4392
|
#
|
4201
4393
|
# @note When making an API call, you may pass DescribeSnapshotCopyGrantsMessage
|
@@ -6136,6 +6328,81 @@ module Aws::Redshift
|
|
6136
6328
|
include Aws::Structure
|
6137
6329
|
end
|
6138
6330
|
|
6331
|
+
# @note When making an API call, you may pass ModifyScheduledActionMessage
|
6332
|
+
# data as a hash:
|
6333
|
+
#
|
6334
|
+
# {
|
6335
|
+
# scheduled_action_name: "String", # required
|
6336
|
+
# target_action: {
|
6337
|
+
# resize_cluster: {
|
6338
|
+
# cluster_identifier: "String", # required
|
6339
|
+
# cluster_type: "String",
|
6340
|
+
# node_type: "String",
|
6341
|
+
# number_of_nodes: 1, # required
|
6342
|
+
# classic: false,
|
6343
|
+
# },
|
6344
|
+
# },
|
6345
|
+
# schedule: "String",
|
6346
|
+
# iam_role: "String",
|
6347
|
+
# scheduled_action_description: "String",
|
6348
|
+
# start_time: Time.now,
|
6349
|
+
# end_time: Time.now,
|
6350
|
+
# enable: false,
|
6351
|
+
# }
|
6352
|
+
#
|
6353
|
+
# @!attribute [rw] scheduled_action_name
|
6354
|
+
# The name of the scheduled action to modify.
|
6355
|
+
# @return [String]
|
6356
|
+
#
|
6357
|
+
# @!attribute [rw] target_action
|
6358
|
+
# A modified JSON format of the scheduled action. For more information
|
6359
|
+
# about this parameter, see ScheduledAction.
|
6360
|
+
# @return [Types::ScheduledActionType]
|
6361
|
+
#
|
6362
|
+
# @!attribute [rw] schedule
|
6363
|
+
# A modified schedule in either `at( )` or `cron( )` format. For more
|
6364
|
+
# information about this parameter, see ScheduledAction.
|
6365
|
+
# @return [String]
|
6366
|
+
#
|
6367
|
+
# @!attribute [rw] iam_role
|
6368
|
+
# A different IAM role to assume to run the target action. For more
|
6369
|
+
# information about this parameter, see ScheduledAction.
|
6370
|
+
# @return [String]
|
6371
|
+
#
|
6372
|
+
# @!attribute [rw] scheduled_action_description
|
6373
|
+
# A modified description of the scheduled action.
|
6374
|
+
# @return [String]
|
6375
|
+
#
|
6376
|
+
# @!attribute [rw] start_time
|
6377
|
+
# A modified start time of the scheduled action. For more information
|
6378
|
+
# about this parameter, see ScheduledAction.
|
6379
|
+
# @return [Time]
|
6380
|
+
#
|
6381
|
+
# @!attribute [rw] end_time
|
6382
|
+
# A modified end time of the scheduled action. For more information
|
6383
|
+
# about this parameter, see ScheduledAction.
|
6384
|
+
# @return [Time]
|
6385
|
+
#
|
6386
|
+
# @!attribute [rw] enable
|
6387
|
+
# A modified enable flag of the scheduled action. If true, the
|
6388
|
+
# scheduled action is active. If false, the scheduled action is
|
6389
|
+
# disabled.
|
6390
|
+
# @return [Boolean]
|
6391
|
+
#
|
6392
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ModifyScheduledActionMessage AWS API Documentation
|
6393
|
+
#
|
6394
|
+
class ModifyScheduledActionMessage < Struct.new(
|
6395
|
+
:scheduled_action_name,
|
6396
|
+
:target_action,
|
6397
|
+
:schedule,
|
6398
|
+
:iam_role,
|
6399
|
+
:scheduled_action_description,
|
6400
|
+
:start_time,
|
6401
|
+
:end_time,
|
6402
|
+
:enable)
|
6403
|
+
include Aws::Structure
|
6404
|
+
end
|
6405
|
+
|
6139
6406
|
# @note When making an API call, you may pass ModifySnapshotCopyRetentionPeriodMessage
|
6140
6407
|
# data as a hash:
|
6141
6408
|
#
|
@@ -6244,12 +6511,17 @@ module Aws::Redshift
|
|
6244
6511
|
# The estimated disk utilizaton percentage.
|
6245
6512
|
# @return [Float]
|
6246
6513
|
#
|
6514
|
+
# @!attribute [rw] mode
|
6515
|
+
# The category of the node configuration recommendation.
|
6516
|
+
# @return [String]
|
6517
|
+
#
|
6247
6518
|
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/NodeConfigurationOption AWS API Documentation
|
6248
6519
|
#
|
6249
6520
|
class NodeConfigurationOption < Struct.new(
|
6250
6521
|
:node_type,
|
6251
6522
|
:number_of_nodes,
|
6252
|
-
:estimated_disk_utilization_percent
|
6523
|
+
:estimated_disk_utilization_percent,
|
6524
|
+
:mode)
|
6253
6525
|
include Aws::Structure
|
6254
6526
|
end
|
6255
6527
|
|
@@ -6259,7 +6531,7 @@ module Aws::Redshift
|
|
6259
6531
|
# data as a hash:
|
6260
6532
|
#
|
6261
6533
|
# {
|
6262
|
-
# name: "NodeType", # accepts NodeType, NumberOfNodes, EstimatedDiskUtilizationPercent
|
6534
|
+
# name: "NodeType", # accepts NodeType, NumberOfNodes, EstimatedDiskUtilizationPercent, Mode
|
6263
6535
|
# operator: "eq", # accepts eq, lt, gt, le, ge, in, between
|
6264
6536
|
# values: ["String"],
|
6265
6537
|
# }
|
@@ -7381,26 +7653,32 @@ module Aws::Redshift
|
|
7381
7653
|
#
|
7382
7654
|
# @!attribute [rw] current_restore_rate_in_mega_bytes_per_second
|
7383
7655
|
# The number of megabytes per second being transferred from the backup
|
7384
|
-
# storage. Returns the average rate for a completed backup.
|
7656
|
+
# storage. Returns the average rate for a completed backup. This field
|
7657
|
+
# is only updated when you restore to DC2 and DS2 node types.
|
7385
7658
|
# @return [Float]
|
7386
7659
|
#
|
7387
7660
|
# @!attribute [rw] snapshot_size_in_mega_bytes
|
7388
7661
|
# The size of the set of snapshot data used to restore the cluster.
|
7662
|
+
# This field is only updated when you restore to DC2 and DS2 node
|
7663
|
+
# types.
|
7389
7664
|
# @return [Integer]
|
7390
7665
|
#
|
7391
7666
|
# @!attribute [rw] progress_in_mega_bytes
|
7392
7667
|
# The number of megabytes that have been transferred from snapshot
|
7393
|
-
# storage.
|
7668
|
+
# storage. This field is only updated when you restore to DC2 and DS2
|
7669
|
+
# node types.
|
7394
7670
|
# @return [Integer]
|
7395
7671
|
#
|
7396
7672
|
# @!attribute [rw] elapsed_time_in_seconds
|
7397
7673
|
# The amount of time an in-progress restore has been running, or the
|
7398
|
-
# amount of time it took a completed restore to finish.
|
7674
|
+
# amount of time it took a completed restore to finish. This field is
|
7675
|
+
# only updated when you restore to DC2 and DS2 node types.
|
7399
7676
|
# @return [Integer]
|
7400
7677
|
#
|
7401
7678
|
# @!attribute [rw] estimated_time_to_completion_in_seconds
|
7402
7679
|
# The estimate of the time remaining before the restore will complete.
|
7403
|
-
# Returns 0 for a completed restore.
|
7680
|
+
# Returns 0 for a completed restore. This field is only updated when
|
7681
|
+
# you restore to DC2 and DS2 node types.
|
7404
7682
|
# @return [Integer]
|
7405
7683
|
#
|
7406
7684
|
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/RestoreStatus AWS API Documentation
|
@@ -7656,6 +7934,168 @@ module Aws::Redshift
|
|
7656
7934
|
include Aws::Structure
|
7657
7935
|
end
|
7658
7936
|
|
7937
|
+
# Describes a scheduled action. You can use a scheduled action to
|
7938
|
+
# trigger some Amazon Redshift API operations on a schedule. For
|
7939
|
+
# information about which API operations can be scheduled, see
|
7940
|
+
# ScheduledActionType.
|
7941
|
+
#
|
7942
|
+
# @!attribute [rw] scheduled_action_name
|
7943
|
+
# The name of the scheduled action.
|
7944
|
+
# @return [String]
|
7945
|
+
#
|
7946
|
+
# @!attribute [rw] target_action
|
7947
|
+
# A JSON format string of the Amazon Redshift API operation with input
|
7948
|
+
# parameters.
|
7949
|
+
#
|
7950
|
+
# "`\{"ResizeCluster":\{"NodeType":"ds2.8xlarge","ClusterIdentifier":"my-test-cluster","NumberOfNodes":3\}\}`".
|
7951
|
+
# @return [Types::ScheduledActionType]
|
7952
|
+
#
|
7953
|
+
# @!attribute [rw] schedule
|
7954
|
+
# The schedule for a one-time (at format) or recurring (cron format)
|
7955
|
+
# scheduled action. Schedule invocations must be separated by at least
|
7956
|
+
# one hour.
|
7957
|
+
#
|
7958
|
+
# Format of at expressions is "`at(yyyy-mm-ddThh:mm:ss)`". For
|
7959
|
+
# example, "`at(2016-03-04T17:27:00)`".
|
7960
|
+
#
|
7961
|
+
# Format of cron expressions is "`cron(Minutes Hours Day-of-month
|
7962
|
+
# Month Day-of-week Year)`". For example, "`cron(0, 10, *, *, MON,
|
7963
|
+
# *)`". For more information, see [Cron Expressions][1] in the
|
7964
|
+
# *Amazon CloudWatch Events User Guide*.
|
7965
|
+
#
|
7966
|
+
#
|
7967
|
+
#
|
7968
|
+
# [1]: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions
|
7969
|
+
# @return [String]
|
7970
|
+
#
|
7971
|
+
# @!attribute [rw] iam_role
|
7972
|
+
# The IAM role to assume to run the scheduled action. This IAM role
|
7973
|
+
# must have permission to run the Amazon Redshift API operation in the
|
7974
|
+
# scheduled action. This IAM role must allow the Amazon Redshift
|
7975
|
+
# scheduler (Principal scheduler.redshift.amazonaws.com) to assume
|
7976
|
+
# permissions on your behalf. For more information about the IAM role
|
7977
|
+
# to use with the Amazon Redshift scheduler, see [Using Identity-Based
|
7978
|
+
# Policies for Amazon Redshift][1] in the *Amazon Redshift Cluster
|
7979
|
+
# Management Guide*.
|
7980
|
+
#
|
7981
|
+
#
|
7982
|
+
#
|
7983
|
+
# [1]: https://docs.aws.amazon.com/redshift/latest/mgmt/redshift-iam-access-control-identity-based.html
|
7984
|
+
# @return [String]
|
7985
|
+
#
|
7986
|
+
# @!attribute [rw] scheduled_action_description
|
7987
|
+
# The description of the scheduled action.
|
7988
|
+
# @return [String]
|
7989
|
+
#
|
7990
|
+
# @!attribute [rw] state
|
7991
|
+
# The state of the scheduled action. For example, `DISABLED`.
|
7992
|
+
# @return [String]
|
7993
|
+
#
|
7994
|
+
# @!attribute [rw] next_invocations
|
7995
|
+
# List of times when the scheduled action will run.
|
7996
|
+
# @return [Array<Time>]
|
7997
|
+
#
|
7998
|
+
# @!attribute [rw] start_time
|
7999
|
+
# The start time in UTC when the schedule is active. Before this time,
|
8000
|
+
# the scheduled action does not trigger.
|
8001
|
+
# @return [Time]
|
8002
|
+
#
|
8003
|
+
# @!attribute [rw] end_time
|
8004
|
+
# The end time in UTC when the schedule is no longer active. After
|
8005
|
+
# this time, the scheduled action does not trigger.
|
8006
|
+
# @return [Time]
|
8007
|
+
#
|
8008
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ScheduledAction AWS API Documentation
|
8009
|
+
#
|
8010
|
+
class ScheduledAction < Struct.new(
|
8011
|
+
:scheduled_action_name,
|
8012
|
+
:target_action,
|
8013
|
+
:schedule,
|
8014
|
+
:iam_role,
|
8015
|
+
:scheduled_action_description,
|
8016
|
+
:state,
|
8017
|
+
:next_invocations,
|
8018
|
+
:start_time,
|
8019
|
+
:end_time)
|
8020
|
+
include Aws::Structure
|
8021
|
+
end
|
8022
|
+
|
8023
|
+
# A set of elements to filter the returned scheduled actions.
|
8024
|
+
#
|
8025
|
+
# @note When making an API call, you may pass ScheduledActionFilter
|
8026
|
+
# data as a hash:
|
8027
|
+
#
|
8028
|
+
# {
|
8029
|
+
# name: "cluster-identifier", # required, accepts cluster-identifier, iam-role
|
8030
|
+
# values: ["String"], # required
|
8031
|
+
# }
|
8032
|
+
#
|
8033
|
+
# @!attribute [rw] name
|
8034
|
+
# The type of element to filter.
|
8035
|
+
# @return [String]
|
8036
|
+
#
|
8037
|
+
# @!attribute [rw] values
|
8038
|
+
# List of values. Compare if the value (of type defined by `Name`)
|
8039
|
+
# equals an item in the list of scheduled actions.
|
8040
|
+
# @return [Array<String>]
|
8041
|
+
#
|
8042
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ScheduledActionFilter AWS API Documentation
|
8043
|
+
#
|
8044
|
+
class ScheduledActionFilter < Struct.new(
|
8045
|
+
:name,
|
8046
|
+
:values)
|
8047
|
+
include Aws::Structure
|
8048
|
+
end
|
8049
|
+
|
8050
|
+
# The action type that specifies an Amazon Redshift API operation that
|
8051
|
+
# is supported by the Amazon Redshift scheduler.
|
8052
|
+
#
|
8053
|
+
# @note When making an API call, you may pass ScheduledActionType
|
8054
|
+
# data as a hash:
|
8055
|
+
#
|
8056
|
+
# {
|
8057
|
+
# resize_cluster: {
|
8058
|
+
# cluster_identifier: "String", # required
|
8059
|
+
# cluster_type: "String",
|
8060
|
+
# node_type: "String",
|
8061
|
+
# number_of_nodes: 1, # required
|
8062
|
+
# classic: false,
|
8063
|
+
# },
|
8064
|
+
# }
|
8065
|
+
#
|
8066
|
+
# @!attribute [rw] resize_cluster
|
8067
|
+
# An action that runs a `ResizeCluster` API operation.
|
8068
|
+
# @return [Types::ResizeClusterMessage]
|
8069
|
+
#
|
8070
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ScheduledActionType AWS API Documentation
|
8071
|
+
#
|
8072
|
+
class ScheduledActionType < Struct.new(
|
8073
|
+
:resize_cluster)
|
8074
|
+
include Aws::Structure
|
8075
|
+
end
|
8076
|
+
|
8077
|
+
# @!attribute [rw] marker
|
8078
|
+
# An optional parameter that specifies the starting point to return a
|
8079
|
+
# set of response records. When the results of a
|
8080
|
+
# DescribeScheduledActions request exceed the value specified in
|
8081
|
+
# `MaxRecords`, AWS returns a value in the `Marker` field of the
|
8082
|
+
# response. You can retrieve the next set of response records by
|
8083
|
+
# providing the returned marker value in the `Marker` parameter and
|
8084
|
+
# retrying the request.
|
8085
|
+
# @return [String]
|
8086
|
+
#
|
8087
|
+
# @!attribute [rw] scheduled_actions
|
8088
|
+
# List of retrieved scheduled actions.
|
8089
|
+
# @return [Array<Types::ScheduledAction>]
|
8090
|
+
#
|
8091
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/redshift-2012-12-01/ScheduledActionsMessage AWS API Documentation
|
8092
|
+
#
|
8093
|
+
class ScheduledActionsMessage < Struct.new(
|
8094
|
+
:marker,
|
8095
|
+
:scheduled_actions)
|
8096
|
+
include Aws::Structure
|
8097
|
+
end
|
8098
|
+
|
7659
8099
|
# Describes a snapshot.
|
7660
8100
|
#
|
7661
8101
|
# @!attribute [rw] snapshot_identifier
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-redshift
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.34.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|