Class: AWSCDK::Connect::CfnHoursOfOperation::HoursOfOperationOverrideProperty

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

Overview

Information about the hours of operations override.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(effective_from:, effective_till:, override_config:, override_name:, hours_of_operation_override_id: nil, override_description: nil, override_type: nil, recurrence_config: nil) ⇒ HoursOfOperationOverrideProperty

Returns a new instance of HoursOfOperationOverrideProperty.

Parameters:

  • effective_from (String)

    The date from which the hours of operation override would be effective.

  • effective_till (String)

    The date until the hours of operation override is effective.

  • override_config (AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Connect::CfnHoursOfOperation::HoursOfOperationOverrideConfigProperty>)

    Configuration information for the hours of operation override: day, start time, and end time.

  • override_name (String)

    The name of the hours of operation override.

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

    The identifier for the hours of operation override.

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

    The description of the hours of operation override.

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

    The type of hours of operation override.

  • recurrence_config (AWSCDK::IResolvable, AWSCDK::Connect::CfnHoursOfOperation::RecurrenceConfigProperty, nil) (defaults to: nil)

    Configuration for recurring hours of operation overrides.



734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
# File 'connect/cfn_hours_of_operation.rb', line 734

def initialize(effective_from:, effective_till:, override_config:, override_name:, hours_of_operation_override_id: nil, override_description: nil, override_type: nil, recurrence_config: nil)
  @effective_from = effective_from
  Jsii::Type.check_type(@effective_from, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "effectiveFrom")
  @effective_till = effective_till
  Jsii::Type.check_type(@effective_till, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "effectiveTill")
  @override_config = override_config
  Jsii::Type.check_type(@override_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29ubmVjdC5DZm5Ib3Vyc09mT3BlcmF0aW9uLkhvdXJzT2ZPcGVyYXRpb25PdmVycmlkZUNvbmZpZ1Byb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "overrideConfig")
  @override_name = override_name
  Jsii::Type.check_type(@override_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "overrideName")
  @hours_of_operation_override_id = hours_of_operation_override_id
  Jsii::Type.check_type(@hours_of_operation_override_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "hoursOfOperationOverrideId") unless @hours_of_operation_override_id.nil?
  @override_description = override_description
  Jsii::Type.check_type(@override_description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "overrideDescription") unless @override_description.nil?
  @override_type = override_type
  Jsii::Type.check_type(@override_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "overrideType") unless @override_type.nil?
  @recurrence_config = recurrence_config.is_a?(Hash) ? ::AWSCDK::Connect::CfnHoursOfOperation::RecurrenceConfigProperty.new(**recurrence_config.transform_keys(&:to_sym)) : recurrence_config
  Jsii::Type.check_type(@recurrence_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0LkNmbkhvdXJzT2ZPcGVyYXRpb24uUmVjdXJyZW5jZUNvbmZpZ1Byb3BlcnR5In1dfX0=")), "recurrenceConfig") unless @recurrence_config.nil?
end

Instance Attribute Details

#effective_fromString (readonly)

The date from which the hours of operation override would be effective.



757
758
759
# File 'connect/cfn_hours_of_operation.rb', line 757

def effective_from
  @effective_from
end

#effective_tillString (readonly)

The date until the hours of operation override is effective.



762
763
764
# File 'connect/cfn_hours_of_operation.rb', line 762

def effective_till
  @effective_till
end

#hours_of_operation_override_idString? (readonly)

The identifier for the hours of operation override.



777
778
779
# File 'connect/cfn_hours_of_operation.rb', line 777

def hours_of_operation_override_id
  @hours_of_operation_override_id
end

#override_descriptionString? (readonly)

The description of the hours of operation override.



782
783
784
# File 'connect/cfn_hours_of_operation.rb', line 782

def override_description
  @override_description
end

#override_nameString (readonly)

The name of the hours of operation override.



772
773
774
# File 'connect/cfn_hours_of_operation.rb', line 772

def override_name
  @override_name
end

#override_typeString? (readonly)

The type of hours of operation override.



787
788
789
# File 'connect/cfn_hours_of_operation.rb', line 787

def override_type
  @override_type
end

#recurrence_configAWSCDK::IResolvable, ... (readonly)

Configuration for recurring hours of operation overrides.



792
793
794
# File 'connect/cfn_hours_of_operation.rb', line 792

def recurrence_config
  @recurrence_config
end

Class Method Details

.jsii_propertiesObject



794
795
796
797
798
799
800
801
802
803
804
805
# File 'connect/cfn_hours_of_operation.rb', line 794

def self.jsii_properties
  {
    :effective_from => "effectiveFrom",
    :effective_till => "effectiveTill",
    :override_config => "overrideConfig",
    :override_name => "overrideName",
    :hours_of_operation_override_id => "hoursOfOperationOverrideId",
    :override_description => "overrideDescription",
    :override_type => "overrideType",
    :recurrence_config => "recurrenceConfig",
  }
end

Instance Method Details

#to_jsiiObject



807
808
809
810
811
812
813
814
815
816
817
818
819
820
# File 'connect/cfn_hours_of_operation.rb', line 807

def to_jsii
  result = {}
  result.merge!({
    "effectiveFrom" => @effective_from,
    "effectiveTill" => @effective_till,
    "overrideConfig" => @override_config,
    "overrideName" => @override_name,
    "hoursOfOperationOverrideId" => @hours_of_operation_override_id,
    "overrideDescription" => @override_description,
    "overrideType" => @override_type,
    "recurrenceConfig" => @recurrence_config,
  })
  result.compact
end