Class: AWSCDK::Connect::CfnUser::UserProficiencyProperty

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

Overview

A predefined attribute must be created before using UserProficiencies in the Cloudformation User template.

For more information, see Predefined attributes .

Proficiency of a user.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attribute_name:, attribute_value:, level:) ⇒ UserProficiencyProperty

Returns a new instance of UserProficiencyProperty.

Parameters:

  • attribute_name (String)

    The name of user’s proficiency.

  • attribute_value (String)

    The value of user’s proficiency.

  • level (Numeric)

    The level of the proficiency.



1119
1120
1121
1122
1123
1124
1125
1126
# File 'connect/cfn_user.rb', line 1119

def initialize(attribute_name:, attribute_value:, level:)
  @attribute_name = attribute_name
  Jsii::Type.check_type(@attribute_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "attributeName")
  @attribute_value = attribute_value
  Jsii::Type.check_type(@attribute_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "attributeValue")
  @level = level
  Jsii::Type.check_type(@level, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "level")
end

Instance Attribute Details

#attribute_nameString (readonly)

The name of user’s proficiency.

You must use a predefined attribute name that is present in the Amazon Connect instance.



1134
1135
1136
# File 'connect/cfn_user.rb', line 1134

def attribute_name
  @attribute_name
end

#attribute_valueString (readonly)

The value of user’s proficiency.

You must use a predefined attribute value that is present in the Amazon Connect instance.



1141
1142
1143
# File 'connect/cfn_user.rb', line 1141

def attribute_value
  @attribute_value
end

#levelNumeric (readonly)

The level of the proficiency.

The valid values are 1, 2, 3, 4 and 5.



1148
1149
1150
# File 'connect/cfn_user.rb', line 1148

def level
  @level
end

Class Method Details

.jsii_propertiesObject



1150
1151
1152
1153
1154
1155
1156
# File 'connect/cfn_user.rb', line 1150

def self.jsii_properties
  {
    :attribute_name => "attributeName",
    :attribute_value => "attributeValue",
    :level => "level",
  }
end

Instance Method Details

#to_jsiiObject



1158
1159
1160
1161
1162
1163
1164
1165
1166
# File 'connect/cfn_user.rb', line 1158

def to_jsii
  result = {}
  result.merge!({
    "attributeName" => @attribute_name,
    "attributeValue" => @attribute_value,
    "level" => @level,
  })
  result.compact
end