Class: AWSCDK::Connect::CfnUser::UserProficiencyProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Connect::CfnUser::UserProficiencyProperty
- Defined in:
- connect/cfn_user.rb
Overview
A predefined attribute must be created before using
UserProficienciesin the Cloudformation User template.
For more information, see Predefined attributes .
Proficiency of a user.
Instance Attribute Summary collapse
-
#attribute_name ⇒ String
readonly
The name of user’s proficiency.
-
#attribute_value ⇒ String
readonly
The value of user’s proficiency.
-
#level ⇒ Numeric
readonly
The level of the proficiency.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attribute_name:, attribute_value:, level:) ⇒ UserProficiencyProperty
constructor
A new instance of UserProficiencyProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(attribute_name:, attribute_value:, level:) ⇒ UserProficiencyProperty
Returns a new instance of UserProficiencyProperty.
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_name ⇒ String (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_value ⇒ String (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 |
#level ⇒ Numeric (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_properties ⇒ Object
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_jsii ⇒ Object
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 |