Class: AWSCDK::Connect::CfnPredefinedAttribute::AttributeConfigurationProperty

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

Overview

Custom metadata associated to a Predefined attribute that controls how the attribute behaves when used by upstream services.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enable_value_validation_on_association: nil, is_read_only: nil) ⇒ AttributeConfigurationProperty

Returns a new instance of AttributeConfigurationProperty.

Parameters:

  • enable_value_validation_on_association (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Enables customers to enforce strict validation on the specific values that this predefined attribute can hold.

  • is_read_only (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Allows the predefined attribute to show up and be managed in the Amazon Connect UI.



563
564
565
566
567
568
# File 'connect/cfn_predefined_attribute.rb', line 563

def initialize(enable_value_validation_on_association: nil, is_read_only: nil)
  @enable_value_validation_on_association = enable_value_validation_on_association
  Jsii::Type.check_type(@enable_value_validation_on_association, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enableValueValidationOnAssociation") unless @enable_value_validation_on_association.nil?
  @is_read_only = is_read_only
  Jsii::Type.check_type(@is_read_only, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "isReadOnly") unless @is_read_only.nil?
end

Instance Attribute Details

#enable_value_validation_on_associationBoolean, ... (readonly)

Enables customers to enforce strict validation on the specific values that this predefined attribute can hold.



574
575
576
# File 'connect/cfn_predefined_attribute.rb', line 574

def enable_value_validation_on_association
  @enable_value_validation_on_association
end

#is_read_onlyBoolean, ... (readonly)

Allows the predefined attribute to show up and be managed in the Amazon Connect UI.



579
580
581
# File 'connect/cfn_predefined_attribute.rb', line 579

def is_read_only
  @is_read_only
end

Class Method Details

.jsii_propertiesObject



581
582
583
584
585
586
# File 'connect/cfn_predefined_attribute.rb', line 581

def self.jsii_properties
  {
    :enable_value_validation_on_association => "enableValueValidationOnAssociation",
    :is_read_only => "isReadOnly",
  }
end

Instance Method Details

#to_jsiiObject



588
589
590
591
592
593
594
595
# File 'connect/cfn_predefined_attribute.rb', line 588

def to_jsii
  result = {}
  result.merge!({
    "enableValueValidationOnAssociation" => @enable_value_validation_on_association,
    "isReadOnly" => @is_read_only,
  })
  result.compact
end