Class: AWSCDK::ConnectCampaignsv2::CfnCampaign::PreviewConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
connect_campaignsv2/cfn_campaign.rb

Overview

Contains preview outbound mode configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bandwidth_allocation:, timeout_config:, agent_actions: nil) ⇒ PreviewConfigProperty

Returns a new instance of PreviewConfigProperty.

Parameters:



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_actionsArray<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_allocationNumeric (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

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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