Class: AWSCDK::BedrockAgentCore::CfnMemory::NumberValidationProperty

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(max_value: nil, min_value: nil) ⇒ NumberValidationProperty

Returns a new instance of NumberValidationProperty.

Parameters:

  • max_value (Numeric, nil) (defaults to: nil)
  • min_value (Numeric, nil) (defaults to: nil)


1652
1653
1654
1655
1656
1657
# File 'bedrock_agent_core/cfn_memory.rb', line 1652

def initialize(max_value: nil, min_value: nil)
  @max_value = max_value
  Jsii::Type.check_type(@max_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxValue") unless @max_value.nil?
  @min_value = min_value
  Jsii::Type.check_type(@min_value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minValue") unless @min_value.nil?
end

Instance Attribute Details

#max_valueNumeric? (readonly)



1661
1662
1663
# File 'bedrock_agent_core/cfn_memory.rb', line 1661

def max_value
  @max_value
end

#min_valueNumeric? (readonly)



1664
1665
1666
# File 'bedrock_agent_core/cfn_memory.rb', line 1664

def min_value
  @min_value
end

Class Method Details

.jsii_propertiesObject



1666
1667
1668
1669
1670
1671
# File 'bedrock_agent_core/cfn_memory.rb', line 1666

def self.jsii_properties
  {
    :max_value => "maxValue",
    :min_value => "minValue",
  }
end

Instance Method Details

#to_jsiiObject



1673
1674
1675
1676
1677
1678
1679
1680
# File 'bedrock_agent_core/cfn_memory.rb', line 1673

def to_jsii
  result = {}
  result.merge!({
    "maxValue" => @max_value,
    "minValue" => @min_value,
  })
  result.compact
end