You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::Redshift::Types::CreateScheduledActionMessage

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-redshift/lib/aws-sdk-redshift/types.rb

Overview

Note:

When making an API call, you may pass CreateScheduledActionMessage data as a hash:

{
  scheduled_action_name: "String", # required
  target_action: { # required
    resize_cluster: {
      cluster_identifier: "String", # required
      cluster_type: "String",
      node_type: "String",
      number_of_nodes: 1, # required
      classic: false,
    },
  },
  schedule: "String", # required
  iam_role: "String", # required
  scheduled_action_description: "String",
  start_time: Time.now,
  end_time: Time.now,
  enable: false,
}

Instance Attribute Summary collapse

Instance Attribute Details

#enableBoolean

If true, the schedule is enabled. If false, the scheduled action does not trigger. For more information about state of the scheduled action, see ScheduledAction.

Returns:

  • (Boolean)


2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
# File 'gems/aws-sdk-redshift/lib/aws-sdk-redshift/types.rb', line 2344

class CreateScheduledActionMessage < Struct.new(
  :scheduled_action_name,
  :target_action,
  :schedule,
  :iam_role,
  :scheduled_action_description,
  :start_time,
  :end_time,
  :enable)
  include Aws::Structure
end

#end_timeTime

The end time in UTC of the scheduled action. After this time, the scheduled action does not trigger. For more information about this parameter, see ScheduledAction.

Returns:

  • (Time)


2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
# File 'gems/aws-sdk-redshift/lib/aws-sdk-redshift/types.rb', line 2344

class CreateScheduledActionMessage < Struct.new(
  :scheduled_action_name,
  :target_action,
  :schedule,
  :iam_role,
  :scheduled_action_description,
  :start_time,
  :end_time,
  :enable)
  include Aws::Structure
end

#iam_roleString

The IAM role to assume to run the target action. For more information about this parameter, see ScheduledAction.

Returns:

  • (String)


2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
# File 'gems/aws-sdk-redshift/lib/aws-sdk-redshift/types.rb', line 2344

class CreateScheduledActionMessage < Struct.new(
  :scheduled_action_name,
  :target_action,
  :schedule,
  :iam_role,
  :scheduled_action_description,
  :start_time,
  :end_time,
  :enable)
  include Aws::Structure
end

#scheduleString

The schedule in at( ) or cron( ) format. For more information about this parameter, see ScheduledAction.

Returns:

  • (String)


2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
# File 'gems/aws-sdk-redshift/lib/aws-sdk-redshift/types.rb', line 2344

class CreateScheduledActionMessage < Struct.new(
  :scheduled_action_name,
  :target_action,
  :schedule,
  :iam_role,
  :scheduled_action_description,
  :start_time,
  :end_time,
  :enable)
  include Aws::Structure
end

#scheduled_action_descriptionString

The description of the scheduled action.

Returns:

  • (String)


2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
# File 'gems/aws-sdk-redshift/lib/aws-sdk-redshift/types.rb', line 2344

class CreateScheduledActionMessage < Struct.new(
  :scheduled_action_name,
  :target_action,
  :schedule,
  :iam_role,
  :scheduled_action_description,
  :start_time,
  :end_time,
  :enable)
  include Aws::Structure
end

#scheduled_action_nameString

The name of the scheduled action. The name must be unique within an account. For more information about this parameter, see ScheduledAction.

Returns:

  • (String)


2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
# File 'gems/aws-sdk-redshift/lib/aws-sdk-redshift/types.rb', line 2344

class CreateScheduledActionMessage < Struct.new(
  :scheduled_action_name,
  :target_action,
  :schedule,
  :iam_role,
  :scheduled_action_description,
  :start_time,
  :end_time,
  :enable)
  include Aws::Structure
end

#start_timeTime

The start time in UTC of the scheduled action. Before this time, the scheduled action does not trigger. For more information about this parameter, see ScheduledAction.

Returns:

  • (Time)


2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
# File 'gems/aws-sdk-redshift/lib/aws-sdk-redshift/types.rb', line 2344

class CreateScheduledActionMessage < Struct.new(
  :scheduled_action_name,
  :target_action,
  :schedule,
  :iam_role,
  :scheduled_action_description,
  :start_time,
  :end_time,
  :enable)
  include Aws::Structure
end

#target_actionTypes::ScheduledActionType

A JSON format string of the Amazon Redshift API operation with input parameters. For more information about this parameter, see ScheduledAction.



2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
# File 'gems/aws-sdk-redshift/lib/aws-sdk-redshift/types.rb', line 2344

class CreateScheduledActionMessage < Struct.new(
  :scheduled_action_name,
  :target_action,
  :schedule,
  :iam_role,
  :scheduled_action_description,
  :start_time,
  :end_time,
  :enable)
  include Aws::Structure
end