Class: AWSCDK::BedrockAgentCore::CfnMemory::StringValidationProperty

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:) ⇒ StringValidationProperty

Returns a new instance of StringValidationProperty.

Parameters:

  • allowed_values (Array<String>)


2084
2085
2086
2087
# File 'bedrock_agent_core/cfn_memory.rb', line 2084

def initialize(allowed_values:)
  @allowed_values = allowed_values
  Jsii::Type.check_type(@allowed_values, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "allowedValues")
end

Instance Attribute Details

#allowed_valuesArray<String> (readonly)



2091
2092
2093
# File 'bedrock_agent_core/cfn_memory.rb', line 2091

def allowed_values
  @allowed_values
end

Class Method Details

.jsii_propertiesObject



2093
2094
2095
2096
2097
# File 'bedrock_agent_core/cfn_memory.rb', line 2093

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

Instance Method Details

#to_jsiiObject



2099
2100
2101
2102
2103
2104
2105
# File 'bedrock_agent_core/cfn_memory.rb', line 2099

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