Class: AWSCDK::BedrockAgentCore::CfnMemory::StringListValidationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_memory.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(allowed_values: nil, max_items: nil) ⇒ StringListValidationProperty

Returns a new instance of StringListValidationProperty.

Parameters:

  • allowed_values (Array<String>, nil) (defaults to: nil)
  • max_items (Numeric, nil) (defaults to: nil)


2048
2049
2050
2051
2052
2053
# File 'bedrock_agent_core/cfn_memory.rb', line 2048

def initialize(allowed_values: nil, max_items: nil)
  @allowed_values = allowed_values
  Jsii::Type.check_type(@allowed_values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowedValues") unless @allowed_values.nil?
  @max_items = max_items
  Jsii::Type.check_type(@max_items, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxItems") unless @max_items.nil?
end

Instance Attribute Details

#allowed_valuesArray<String>? (readonly)



2057
2058
2059
# File 'bedrock_agent_core/cfn_memory.rb', line 2057

def allowed_values
  @allowed_values
end

#max_itemsNumeric? (readonly)



2060
2061
2062
# File 'bedrock_agent_core/cfn_memory.rb', line 2060

def max_items
  @max_items
end

Class Method Details

.jsii_propertiesObject



2062
2063
2064
2065
2066
2067
# File 'bedrock_agent_core/cfn_memory.rb', line 2062

def self.jsii_properties
  {
    :allowed_values => "allowedValues",
    :max_items => "maxItems",
  }
end

Instance Method Details

#to_jsiiObject



2069
2070
2071
2072
2073
2074
2075
2076
# File 'bedrock_agent_core/cfn_memory.rb', line 2069

def to_jsii
  result = {}
  result.merge!({
    "allowedValues" => @allowed_values,
    "maxItems" => @max_items,
  })
  result.compact
end