Class: AWSCDK::Connect::CfnSecurityProfile::PrimaryAttributeValueProperty

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

Overview

A primary attribute value.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_type:, attribute_name:, values:) ⇒ PrimaryAttributeValueProperty

Returns a new instance of PrimaryAttributeValueProperty.

Parameters:

  • access_type (String)

    The value's access type.

  • attribute_name (String)

    The value's attribute name.

  • values (Array<String>)

    The value's values.



880
881
882
883
884
885
886
887
# File 'connect/cfn_security_profile.rb', line 880

def initialize(access_type:, attribute_name:, values:)
  @access_type = access_type
  Jsii::Type.check_type(@access_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessType")
  @attribute_name = attribute_name
  Jsii::Type.check_type(@attribute_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "attributeName")
  @values = values
  Jsii::Type.check_type(@values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "values")
end

Instance Attribute Details

#access_typeString (readonly)

The value's access type.



893
894
895
# File 'connect/cfn_security_profile.rb', line 893

def access_type
  @access_type
end

#attribute_nameString (readonly)

The value's attribute name.



898
899
900
# File 'connect/cfn_security_profile.rb', line 898

def attribute_name
  @attribute_name
end

#valuesArray<String> (readonly)

The value's values.



903
904
905
# File 'connect/cfn_security_profile.rb', line 903

def values
  @values
end

Class Method Details

.jsii_propertiesObject



905
906
907
908
909
910
911
# File 'connect/cfn_security_profile.rb', line 905

def self.jsii_properties
  {
    :access_type => "accessType",
    :attribute_name => "attributeName",
    :values => "values",
  }
end

Instance Method Details

#to_jsiiObject



913
914
915
916
917
918
919
920
921
# File 'connect/cfn_security_profile.rb', line 913

def to_jsii
  result = {}
  result.merge!({
    "accessType" => @access_type,
    "attributeName" => @attribute_name,
    "values" => @values,
  })
  result.compact
end