Class: AWSCDK::BedrockAgentCore::InvocationConfiguration
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::InvocationConfiguration
- Defined in:
- bedrock_agent_core/invocation_configuration.rb
Overview
Invocation configuration for self managed memory strategy.
Instance Attribute Summary collapse
-
#s3_location ⇒ AWSCDK::S3::Location
readonly
S3 Location Configuration.
-
#topic ⇒ AWSCDK::SNS::ITopic
readonly
SNS Topic Configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(s3_location:, topic:) ⇒ InvocationConfiguration
constructor
A new instance of InvocationConfiguration.
- #to_jsii ⇒ Object
Constructor Details
#initialize(s3_location:, topic:) ⇒ InvocationConfiguration
Returns a new instance of InvocationConfiguration.
9 10 11 12 13 14 |
# File 'bedrock_agent_core/invocation_configuration.rb', line 9 def initialize(s3_location:, topic:) @s3_location = s3_location.is_a?(Hash) ? ::AWSCDK::S3::Location.new(**s3_location.transform_keys(&:to_sym)) : s3_location Jsii::Type.check_type(@s3_location, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuTG9jYXRpb24ifQ==")), "s3Location") @topic = topic Jsii::Type.check_type(@topic, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc25zLklUb3BpYyJ9")), "topic") end |
Instance Attribute Details
#s3_location ⇒ AWSCDK::S3::Location (readonly)
S3 Location Configuration.
19 20 21 |
# File 'bedrock_agent_core/invocation_configuration.rb', line 19 def s3_location @s3_location end |
#topic ⇒ AWSCDK::SNS::ITopic (readonly)
SNS Topic Configuration.
23 24 25 |
# File 'bedrock_agent_core/invocation_configuration.rb', line 23 def topic @topic end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'bedrock_agent_core/invocation_configuration.rb', line 25 def self.jsii_properties { :s3_location => "s3Location", :topic => "topic", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'bedrock_agent_core/invocation_configuration.rb', line 32 def to_jsii result = {} result.merge!({ "s3Location" => @s3_location, "topic" => @topic, }) result.compact end |