Class: AWSCDK::Connect::CfnUser::PhoneNumberConfigProperty

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

Overview

Phone Number configuration per channel.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channel:, phone_type:, phone_number: nil) ⇒ PhoneNumberConfigProperty

Returns a new instance of PhoneNumberConfigProperty.

Parameters:

  • channel (String)

    The channels that agents can handle in the Contact Control Panel (CCP).

  • phone_type (String)

    The phone type.

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

    The phone number for the user's desk phone.



900
901
902
903
904
905
906
907
# File 'connect/cfn_user.rb', line 900

def initialize(channel:, phone_type:, phone_number: nil)
  @channel = channel
  Jsii::Type.check_type(@channel, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "channel")
  @phone_type = phone_type
  Jsii::Type.check_type(@phone_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "phoneType")
  @phone_number = phone_number
  Jsii::Type.check_type(@phone_number, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "phoneNumber") unless @phone_number.nil?
end

Instance Attribute Details

#channelString (readonly)

The channels that agents can handle in the Contact Control Panel (CCP).



913
914
915
# File 'connect/cfn_user.rb', line 913

def channel
  @channel
end

#phone_numberString? (readonly)

The phone number for the user's desk phone.



923
924
925
# File 'connect/cfn_user.rb', line 923

def phone_number
  @phone_number
end

#phone_typeString (readonly)

The phone type.



918
919
920
# File 'connect/cfn_user.rb', line 918

def phone_type
  @phone_type
end

Class Method Details

.jsii_propertiesObject



925
926
927
928
929
930
931
# File 'connect/cfn_user.rb', line 925

def self.jsii_properties
  {
    :channel => "channel",
    :phone_type => "phoneType",
    :phone_number => "phoneNumber",
  }
end

Instance Method Details

#to_jsiiObject



933
934
935
936
937
938
939
940
941
# File 'connect/cfn_user.rb', line 933

def to_jsii
  result = {}
  result.merge!({
    "channel" => @channel,
    "phoneType" => @phone_type,
    "phoneNumber" => @phone_number,
  })
  result.compact
end