Class: AWSCDK::Connect::CfnHoursOfOperation::RecurrencePatternProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect/cfn_hours_of_operation.rb

Overview

Pattern for recurring hours of operation overrides.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(by_month: nil, by_month_day: nil, by_weekday_occurrence: nil, frequency: nil, interval: nil) ⇒ RecurrencePatternProperty

Returns a new instance of RecurrencePatternProperty.

Parameters:

  • by_month (Array<Numeric>, AWSCDK::IResolvable, nil) (defaults to: nil)

    List of months (1-12) for recurrence pattern.

  • by_month_day (Array<Numeric>, AWSCDK::IResolvable, nil) (defaults to: nil)

    List of month days (-1 to 31) for recurrence pattern.

  • by_weekday_occurrence (Array<Numeric>, AWSCDK::IResolvable, nil) (defaults to: nil)
  • frequency (String, nil) (defaults to: nil)

    The frequency of recurrence for hours of operation overrides.

  • interval (Numeric, nil) (defaults to: nil)


996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
# File 'connect/cfn_hours_of_operation.rb', line 996

def initialize(by_month: nil, by_month_day: nil, by_weekday_occurrence: nil, frequency: nil, interval: nil)
  @by_month = by_month
  Jsii::Type.check_type(@by_month, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siY29sbGVjdGlvbiI6eyJlbGVtZW50dHlwZSI6eyJwcmltaXRpdmUiOiJudW1iZXIifSwia2luZCI6ImFycmF5In19LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "byMonth") unless @by_month.nil?
  @by_month_day = by_month_day
  Jsii::Type.check_type(@by_month_day, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siY29sbGVjdGlvbiI6eyJlbGVtZW50dHlwZSI6eyJwcmltaXRpdmUiOiJudW1iZXIifSwia2luZCI6ImFycmF5In19LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "byMonthDay") unless @by_month_day.nil?
  @by_weekday_occurrence = by_weekday_occurrence
  Jsii::Type.check_type(@by_weekday_occurrence, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siY29sbGVjdGlvbiI6eyJlbGVtZW50dHlwZSI6eyJwcmltaXRpdmUiOiJudW1iZXIifSwia2luZCI6ImFycmF5In19LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "byWeekdayOccurrence") unless @by_weekday_occurrence.nil?
  @frequency = frequency
  Jsii::Type.check_type(@frequency, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "frequency") unless @frequency.nil?
  @interval = interval
  Jsii::Type.check_type(@interval, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "interval") unless @interval.nil?
end

Instance Attribute Details

#by_monthArray<Numeric>, ... (readonly)

List of months (1-12) for recurrence pattern.



1013
1014
1015
# File 'connect/cfn_hours_of_operation.rb', line 1013

def by_month
  @by_month
end

#by_month_dayArray<Numeric>, ... (readonly)

List of month days (-1 to 31) for recurrence pattern.



1018
1019
1020
# File 'connect/cfn_hours_of_operation.rb', line 1018

def by_month_day
  @by_month_day
end

#by_weekday_occurrenceArray<Numeric>, ... (readonly)



1021
1022
1023
# File 'connect/cfn_hours_of_operation.rb', line 1021

def by_weekday_occurrence
  @by_weekday_occurrence
end

#frequencyString? (readonly)

The frequency of recurrence for hours of operation overrides.



1026
1027
1028
# File 'connect/cfn_hours_of_operation.rb', line 1026

def frequency
  @frequency
end

#intervalNumeric? (readonly)



1029
1030
1031
# File 'connect/cfn_hours_of_operation.rb', line 1029

def interval
  @interval
end

Class Method Details

.jsii_propertiesObject



1031
1032
1033
1034
1035
1036
1037
1038
1039
# File 'connect/cfn_hours_of_operation.rb', line 1031

def self.jsii_properties
  {
    :by_month => "byMonth",
    :by_month_day => "byMonthDay",
    :by_weekday_occurrence => "byWeekdayOccurrence",
    :frequency => "frequency",
    :interval => "interval",
  }
end

Instance Method Details

#to_jsiiObject



1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
# File 'connect/cfn_hours_of_operation.rb', line 1041

def to_jsii
  result = {}
  result.merge!({
    "byMonth" => @by_month,
    "byMonthDay" => @by_month_day,
    "byWeekdayOccurrence" => @by_weekday_occurrence,
    "frequency" => @frequency,
    "interval" => @interval,
  })
  result.compact
end