Class: AWSCDK::ConnectCampaignsv2::CfnCampaign::PreviewConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ConnectCampaignsv2::CfnCampaign::PreviewConfigProperty
- Defined in:
- connect_campaignsv2/cfn_campaign.rb
Overview
Contains preview outbound mode configuration.
Instance Attribute Summary collapse
-
#agent_actions ⇒ Array<String>?
readonly
Agent actions for the preview outbound mode.
-
#bandwidth_allocation ⇒ Numeric
readonly
Bandwidth allocation for the preview outbound mode.
-
#timeout_config ⇒ AWSCDK::IResolvable, AWSCDK::ConnectCampaignsv2::CfnCampaign::TimeoutConfigProperty
readonly
Countdown timer configuration for preview outbound mode.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bandwidth_allocation:, timeout_config:, agent_actions: nil) ⇒ PreviewConfigProperty
constructor
A new instance of PreviewConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bandwidth_allocation:, timeout_config:, agent_actions: nil) ⇒ PreviewConfigProperty
Returns a new instance of PreviewConfigProperty.
1346 1347 1348 1349 1350 1351 1352 1353 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1346 def initialize(bandwidth_allocation:, timeout_config:, agent_actions: nil) @bandwidth_allocation = bandwidth_allocation Jsii::Type.check_type(@bandwidth_allocation, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "bandwidthAllocation") @timeout_config = timeout_config.is_a?(Hash) ? ::AWSCDK::ConnectCampaignsv2::CfnCampaign::TimeoutConfigProperty.new(**timeout_config.transform_keys(&:to_sym)) : timeout_config Jsii::Type.check_type(@timeout_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jb25uZWN0Y2FtcGFpZ25zdjIuQ2ZuQ2FtcGFpZ24uVGltZW91dENvbmZpZ1Byb3BlcnR5In1dfX0=")), "timeoutConfig") @agent_actions = agent_actions Jsii::Type.check_type(@agent_actions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "agentActions") unless @agent_actions.nil? end |
Instance Attribute Details
#agent_actions ⇒ Array<String>? (readonly)
Agent actions for the preview outbound mode.
1369 1370 1371 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1369 def agent_actions @agent_actions end |
#bandwidth_allocation ⇒ Numeric (readonly)
Bandwidth allocation for the preview outbound mode.
1359 1360 1361 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1359 def bandwidth_allocation @bandwidth_allocation end |
#timeout_config ⇒ AWSCDK::IResolvable, AWSCDK::ConnectCampaignsv2::CfnCampaign::TimeoutConfigProperty (readonly)
Countdown timer configuration for preview outbound mode.
1364 1365 1366 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1364 def timeout_config @timeout_config end |
Class Method Details
.jsii_properties ⇒ Object
1371 1372 1373 1374 1375 1376 1377 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1371 def self.jsii_properties { :bandwidth_allocation => "bandwidthAllocation", :timeout_config => "timeoutConfig", :agent_actions => "agentActions", } end |
Instance Method Details
#to_jsii ⇒ Object
1379 1380 1381 1382 1383 1384 1385 1386 1387 |
# File 'connect_campaignsv2/cfn_campaign.rb', line 1379 def to_jsii result = {} result.merge!({ "bandwidthAllocation" => @bandwidth_allocation, "timeoutConfig" => @timeout_config, "agentActions" => @agent_actions, }) result.compact end |