Class: Aws::RedshiftServerless::Types::Schedule

Inherits:
Struct
  • Object
show all
Includes:
Structure, Structure::Union
Defined in:
lib/aws-sdk-redshiftserverless/types.rb

Overview

Note:

Schedule is a union - when making an API calls you must set exactly one of the members.

Note:

Schedule is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of Schedule corresponding to the set member.

The schedule of when Amazon Redshift Serverless should run the scheduled action.

Direct Known Subclasses

At, Cron, Unknown

Defined Under Namespace

Classes: At, Cron, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#atTime

The timestamp of when Amazon Redshift Serverless should run the scheduled action. Timestamp is in UTC. Format of at expression is ‘yyyy-mm-ddThh:mm:ss`. For example, `2016-03-04T17:27:00`.

Returns:

  • (Time)


2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
# File 'lib/aws-sdk-redshiftserverless/types.rb', line 2629

class Schedule < Struct.new(
  :at,
  :cron,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class At < Schedule; end
  class Cron < Schedule; end
  class Unknown < Schedule; end
end

#cronString

The cron expression to use to schedule a recurring scheduled action. Schedule invocations must be separated by at least one hour. Times are in UTC.

Format of cron expressions is ‘(Minutes Hours Day-of-month Month Day-of-week Year)`. For example, `“(0 10 ? * MON *)”`. For more information, see [Cron Expressions] in the *Amazon CloudWatch Events User Guide*.

[1]: docs.aws.amazon.com/AmazonCloudWatch/latest/events/ScheduledEvents.html#CronExpressions

Returns:

  • (String)


2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
# File 'lib/aws-sdk-redshiftserverless/types.rb', line 2629

class Schedule < Struct.new(
  :at,
  :cron,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class At < Schedule; end
  class Cron < Schedule; end
  class Unknown < Schedule; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



2629
2630
2631
# File 'lib/aws-sdk-redshiftserverless/types.rb', line 2629

def unknown
  @unknown
end