Class: AWSCDK::QuickSight::CfnRefreshSchedule::RefreshOnDayProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
quick_sight/cfn_refresh_schedule.rb

Overview

The day that you want yout dataset to refresh.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(day_of_month: nil, day_of_week: nil) ⇒ RefreshOnDayProperty

Returns a new instance of RefreshOnDayProperty.

Parameters:

  • day_of_month (String, nil) (defaults to: nil)

    The day of the month that you want your dataset to refresh.

  • day_of_week (String, nil) (defaults to: nil)

    The day of the week that you want to schedule the refresh on.



535
536
537
538
539
540
# File 'quick_sight/cfn_refresh_schedule.rb', line 535

def initialize(day_of_month: nil, day_of_week: nil)
  @day_of_month = day_of_month
  Jsii::Type.check_type(@day_of_month, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dayOfMonth") unless @day_of_month.nil?
  @day_of_week = day_of_week
  Jsii::Type.check_type(@day_of_week, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dayOfWeek") unless @day_of_week.nil?
end

Instance Attribute Details

#day_of_monthString? (readonly)

The day of the month that you want your dataset to refresh.

This value is required for monthly refresh intervals.



548
549
550
# File 'quick_sight/cfn_refresh_schedule.rb', line 548

def day_of_month
  @day_of_month
end

#day_of_weekString? (readonly)

The day of the week that you want to schedule the refresh on.

This value is required for weekly and monthly refresh intervals.



555
556
557
# File 'quick_sight/cfn_refresh_schedule.rb', line 555

def day_of_week
  @day_of_week
end

Class Method Details

.jsii_propertiesObject



557
558
559
560
561
562
# File 'quick_sight/cfn_refresh_schedule.rb', line 557

def self.jsii_properties
  {
    :day_of_month => "dayOfMonth",
    :day_of_week => "dayOfWeek",
  }
end

Instance Method Details

#to_jsiiObject



564
565
566
567
568
569
570
571
# File 'quick_sight/cfn_refresh_schedule.rb', line 564

def to_jsii
  result = {}
  result.merge!({
    "dayOfMonth" => @day_of_month,
    "dayOfWeek" => @day_of_week,
  })
  result.compact
end