Class: AWSCDK::Connect::CfnHoursOfOperationProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnHoursOfOperationProps
- Defined in:
- connect/cfn_hours_of_operation_props.rb
Overview
Properties for defining a CfnHoursOfOperation.
Instance Attribute Summary collapse
-
#child_hours_of_operations ⇒ AWSCDK::IResolvable, ...
readonly
List of child hours of operations.
-
#config ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Connect::CfnHoursOfOperation::HoursOfOperationConfigProperty>
readonly
Configuration information for the hours of operation.
-
#description ⇒ String?
readonly
The description for the hours of operation.
-
#hours_of_operation_overrides ⇒ AWSCDK::IResolvable, ...
readonly
One or more hours of operation overrides assigned to an hour of operation.
-
#instance_arn ⇒ String, AWSCDK::Interfaces::AWSConnect::IInstanceRef
readonly
The Amazon Resource Name (ARN) of the instance.
-
#name ⇒ String
readonly
The name for the hours of operation.
-
#parent_hours_of_operations ⇒ AWSCDK::IResolvable, ...
readonly
List of parent hours of operations.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
The tags used to organize, track, or control access for this resource.
-
#time_zone ⇒ String
readonly
The time zone for the hours of operation.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(config:, instance_arn:, name:, time_zone:, child_hours_of_operations: nil, description: nil, hours_of_operation_overrides: nil, parent_hours_of_operations: nil, tags: nil) ⇒ CfnHoursOfOperationProps
constructor
A new instance of CfnHoursOfOperationProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(config:, instance_arn:, name:, time_zone:, child_hours_of_operations: nil, description: nil, hours_of_operation_overrides: nil, parent_hours_of_operations: nil, tags: nil) ⇒ CfnHoursOfOperationProps
Returns a new instance of CfnHoursOfOperationProps.
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'connect/cfn_hours_of_operation_props.rb', line 18 def initialize(config:, instance_arn:, name:, time_zone:, child_hours_of_operations: nil, description: nil, hours_of_operation_overrides: nil, parent_hours_of_operations: nil, tags: nil) @config = config Jsii::Type.check_type(@config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29ubmVjdC5DZm5Ib3Vyc09mT3BlcmF0aW9uLkhvdXJzT2ZPcGVyYXRpb25Db25maWdQcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "config") @instance_arn = instance_arn Jsii::Type.check_type(@instance_arn, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoic3RyaW5nIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19jb25uZWN0LklJbnN0YW5jZVJlZiJ9XX19")), "instanceArn") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @time_zone = time_zone Jsii::Type.check_type(@time_zone, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "timeZone") @child_hours_of_operations = child_hours_of_operations Jsii::Type.check_type(@child_hours_of_operations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29ubmVjdC5DZm5Ib3Vyc09mT3BlcmF0aW9uLkhvdXJzT2ZPcGVyYXRpb25zSWRlbnRpZmllclByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "childHoursOfOperations") unless @child_hours_of_operations.nil? @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @hours_of_operation_overrides = hours_of_operation_overrides Jsii::Type.check_type(@hours_of_operation_overrides, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29ubmVjdC5DZm5Ib3Vyc09mT3BlcmF0aW9uLkhvdXJzT2ZPcGVyYXRpb25PdmVycmlkZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "hoursOfOperationOverrides") unless @hours_of_operation_overrides.nil? @parent_hours_of_operations = parent_hours_of_operations Jsii::Type.check_type(@parent_hours_of_operations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY29ubmVjdC5DZm5Ib3Vyc09mT3BlcmF0aW9uLkhvdXJzT2ZPcGVyYXRpb25zSWRlbnRpZmllclByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "parentHoursOfOperations") unless @parent_hours_of_operations.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#child_hours_of_operations ⇒ AWSCDK::IResolvable, ... (readonly)
List of child hours of operations.
63 64 65 |
# File 'connect/cfn_hours_of_operation_props.rb', line 63 def child_hours_of_operations @child_hours_of_operations end |
#config ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Connect::CfnHoursOfOperation::HoursOfOperationConfigProperty> (readonly)
Configuration information for the hours of operation.
43 44 45 |
# File 'connect/cfn_hours_of_operation_props.rb', line 43 def config @config end |
#description ⇒ String? (readonly)
The description for the hours of operation.
68 69 70 |
# File 'connect/cfn_hours_of_operation_props.rb', line 68 def description @description end |
#hours_of_operation_overrides ⇒ AWSCDK::IResolvable, ... (readonly)
One or more hours of operation overrides assigned to an hour of operation.
73 74 75 |
# File 'connect/cfn_hours_of_operation_props.rb', line 73 def hours_of_operation_overrides @hours_of_operation_overrides end |
#instance_arn ⇒ String, AWSCDK::Interfaces::AWSConnect::IInstanceRef (readonly)
The Amazon Resource Name (ARN) of the instance.
48 49 50 |
# File 'connect/cfn_hours_of_operation_props.rb', line 48 def instance_arn @instance_arn end |
#name ⇒ String (readonly)
The name for the hours of operation.
53 54 55 |
# File 'connect/cfn_hours_of_operation_props.rb', line 53 def name @name end |
#parent_hours_of_operations ⇒ AWSCDK::IResolvable, ... (readonly)
List of parent hours of operations.
78 79 80 |
# File 'connect/cfn_hours_of_operation_props.rb', line 78 def parent_hours_of_operations @parent_hours_of_operations end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
The tags used to organize, track, or control access for this resource.
For example, { "Tags": "key2":"value2" }.
85 86 87 |
# File 'connect/cfn_hours_of_operation_props.rb', line 85 def @tags end |
#time_zone ⇒ String (readonly)
The time zone for the hours of operation.
58 59 60 |
# File 'connect/cfn_hours_of_operation_props.rb', line 58 def time_zone @time_zone end |
Class Method Details
.jsii_properties ⇒ Object
87 88 89 90 91 92 93 94 95 96 97 98 99 |
# File 'connect/cfn_hours_of_operation_props.rb', line 87 def self.jsii_properties { :config => "config", :instance_arn => "instanceArn", :name => "name", :time_zone => "timeZone", :child_hours_of_operations => "childHoursOfOperations", :description => "description", :hours_of_operation_overrides => "hoursOfOperationOverrides", :parent_hours_of_operations => "parentHoursOfOperations", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 |
# File 'connect/cfn_hours_of_operation_props.rb', line 101 def to_jsii result = {} result.merge!({ "config" => @config, "instanceArn" => @instance_arn, "name" => @name, "timeZone" => @time_zone, "childHoursOfOperations" => @child_hours_of_operations, "description" => @description, "hoursOfOperationOverrides" => @hours_of_operation_overrides, "parentHoursOfOperations" => @parent_hours_of_operations, "tags" => @tags, }) result.compact end |