Class: AWSCDK::Connect::CfnContactFlowModuleAliasProps

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

Overview

Properties for defining a CfnContactFlowModuleAlias.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(contact_flow_module_id:, contact_flow_module_version:, name:, description: nil) ⇒ CfnContactFlowModuleAliasProps

Returns a new instance of CfnContactFlowModuleAliasProps.

Parameters:

  • contact_flow_module_id (String)

    The identifier of the contact flow module (ARN) this alias is tied to.

  • contact_flow_module_version (Numeric)

    The version number of the contact flow module this alias points to.

  • name (String)

    The name of the alias.

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

    The description of the alias.



13
14
15
16
17
18
19
20
21
22
# File 'connect/cfn_contact_flow_module_alias_props.rb', line 13

def initialize(contact_flow_module_id:, contact_flow_module_version:, name:, description: nil)
  @contact_flow_module_id = contact_flow_module_id
  Jsii::Type.check_type(@contact_flow_module_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "contactFlowModuleId")
  @contact_flow_module_version = contact_flow_module_version
  Jsii::Type.check_type(@contact_flow_module_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "contactFlowModuleVersion")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
end

Instance Attribute Details

#contact_flow_module_idString (readonly)

The identifier of the contact flow module (ARN) this alias is tied to.



28
29
30
# File 'connect/cfn_contact_flow_module_alias_props.rb', line 28

def contact_flow_module_id
  @contact_flow_module_id
end

#contact_flow_module_versionNumeric (readonly)

The version number of the contact flow module this alias points to.



33
34
35
# File 'connect/cfn_contact_flow_module_alias_props.rb', line 33

def contact_flow_module_version
  @contact_flow_module_version
end

#descriptionString? (readonly)

The description of the alias.



43
44
45
# File 'connect/cfn_contact_flow_module_alias_props.rb', line 43

def description
  @description
end

#nameString (readonly)

The name of the alias.



38
39
40
# File 'connect/cfn_contact_flow_module_alias_props.rb', line 38

def name
  @name
end

Class Method Details

.jsii_propertiesObject



45
46
47
48
49
50
51
52
# File 'connect/cfn_contact_flow_module_alias_props.rb', line 45

def self.jsii_properties
  {
    :contact_flow_module_id => "contactFlowModuleId",
    :contact_flow_module_version => "contactFlowModuleVersion",
    :name => "name",
    :description => "description",
  }
end

Instance Method Details

#to_jsiiObject



54
55
56
57
58
59
60
61
62
63
# File 'connect/cfn_contact_flow_module_alias_props.rb', line 54

def to_jsii
  result = {}
  result.merge!({
    "contactFlowModuleId" => @contact_flow_module_id,
    "contactFlowModuleVersion" => @contact_flow_module_version,
    "name" => @name,
    "description" => @description,
  })
  result.compact
end