Class: AWSCDK::Connect::CfnRule::ReferenceProperty

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

Overview

Information about the reference when the referenceType is URL .

Otherwise, null. (Supports variable injection in the Value field.)

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, value:) ⇒ ReferenceProperty

Returns a new instance of ReferenceProperty.

Parameters:

  • type (String)

    The type of the reference. DATE must be of type Epoch timestamp.

  • value (String)

    A valid value for the reference.



918
919
920
921
922
923
# File 'connect/cfn_rule.rb', line 918

def initialize(type:, value:)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
end

Instance Attribute Details

#typeString (readonly)

The type of the reference. DATE must be of type Epoch timestamp.

Allowed values : URL | ATTACHMENT | NUMBER | STRING | DATE | EMAIL



931
932
933
# File 'connect/cfn_rule.rb', line 931

def type
  @type
end

#valueString (readonly)

A valid value for the reference.

For example, for a URL reference, a formatted URL that is displayed to an agent in the Contact Control Panel (CCP).



938
939
940
# File 'connect/cfn_rule.rb', line 938

def value
  @value
end

Class Method Details

.jsii_propertiesObject



940
941
942
943
944
945
# File 'connect/cfn_rule.rb', line 940

def self.jsii_properties
  {
    :type => "type",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



947
948
949
950
951
952
953
954
# File 'connect/cfn_rule.rb', line 947

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "value" => @value,
  })
  result.compact
end