Class: AWSCDK::BedrockAgentCore::CfnRuntimeProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::CfnRuntimeProps
- Defined in:
- bedrock_agent_core/cfn_runtime_props.rb
Overview
Properties for defining a CfnRuntime.
Instance Attribute Summary collapse
-
#agent_runtime_artifact ⇒ AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnRuntime::AgentRuntimeArtifactProperty
readonly
The artifact of the agent.
-
#agent_runtime_name ⇒ String
readonly
The name of the AgentCore Runtime endpoint.
-
#authorizer_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Represents inbound authorization configuration options used to authenticate incoming requests.
-
#description ⇒ String?
readonly
The agent runtime description.
-
#environment_variables ⇒ AWSCDK::IResolvable, ...
readonly
The environment variables for the agent.
-
#filesystem_configurations ⇒ AWSCDK::IResolvable, ...
readonly
List of filesystem configurations.
-
#lifecycle_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Configuration for managing the lifecycle of runtime sessions and resources.
-
#network_configuration ⇒ AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnRuntime::NetworkConfigurationProperty
readonly
The network configuration.
-
#protocol_configuration ⇒ String?
readonly
The protocol configuration for an agent runtime.
-
#request_header_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Configuration for HTTP request headers.
-
#role_arn ⇒ String
readonly
The Amazon Resource Name (ARN) for for the role.
-
#tags ⇒ Hash{String => String}?
readonly
The tags for the agent.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(agent_runtime_artifact:, agent_runtime_name:, network_configuration:, role_arn:, authorizer_configuration: nil, description: nil, environment_variables: nil, filesystem_configurations: nil, lifecycle_configuration: nil, protocol_configuration: nil, request_header_configuration: nil, tags: nil) ⇒ CfnRuntimeProps
constructor
A new instance of CfnRuntimeProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(agent_runtime_artifact:, agent_runtime_name:, network_configuration:, role_arn:, authorizer_configuration: nil, description: nil, environment_variables: nil, filesystem_configurations: nil, lifecycle_configuration: nil, protocol_configuration: nil, request_header_configuration: nil, tags: nil) ⇒ CfnRuntimeProps
Returns a new instance of CfnRuntimeProps.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'bedrock_agent_core/cfn_runtime_props.rb', line 21 def initialize(agent_runtime_artifact:, agent_runtime_name:, network_configuration:, role_arn:, authorizer_configuration: nil, description: nil, environment_variables: nil, filesystem_configurations: nil, lifecycle_configuration: nil, protocol_configuration: nil, request_header_configuration: nil, tags: nil) @agent_runtime_artifact = agent_runtime_artifact.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnRuntime::AgentRuntimeArtifactProperty.new(**agent_runtime_artifact.transform_keys(&:to_sym)) : agent_runtime_artifact Jsii::Type.check_type(@agent_runtime_artifact, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmblJ1bnRpbWUuQWdlbnRSdW50aW1lQXJ0aWZhY3RQcm9wZXJ0eSJ9XX19")), "agentRuntimeArtifact") @agent_runtime_name = agent_runtime_name Jsii::Type.check_type(@agent_runtime_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "agentRuntimeName") @network_configuration = network_configuration.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnRuntime::NetworkConfigurationProperty.new(**network_configuration.transform_keys(&:to_sym)) : network_configuration Jsii::Type.check_type(@network_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmblJ1bnRpbWUuTmV0d29ya0NvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "networkConfiguration") @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") @authorizer_configuration = .is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnRuntime::AuthorizerConfigurationProperty.new(**.transform_keys(&:to_sym)) : Jsii::Type.check_type(@authorizer_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmblJ1bnRpbWUuQXV0aG9yaXplckNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "authorizerConfiguration") unless @authorizer_configuration.nil? @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @environment_variables = environment_variables Jsii::Type.check_type(@environment_variables, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "environmentVariables") unless @environment_variables.nil? @filesystem_configurations = filesystem_configurations Jsii::Type.check_type(@filesystem_configurations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5DZm5SdW50aW1lLkZpbGVzeXN0ZW1Db25maWd1cmF0aW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "filesystemConfigurations") unless @filesystem_configurations.nil? @lifecycle_configuration = lifecycle_configuration.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnRuntime::LifecycleConfigurationProperty.new(**lifecycle_configuration.transform_keys(&:to_sym)) : lifecycle_configuration Jsii::Type.check_type(@lifecycle_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmblJ1bnRpbWUuTGlmZWN5Y2xlQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "lifecycleConfiguration") unless @lifecycle_configuration.nil? @protocol_configuration = protocol_configuration Jsii::Type.check_type(@protocol_configuration, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "protocolConfiguration") unless @protocol_configuration.nil? @request_header_configuration = request_header_configuration.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnRuntime::RequestHeaderConfigurationProperty.new(**request_header_configuration.transform_keys(&:to_sym)) : request_header_configuration Jsii::Type.check_type(@request_header_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmblJ1bnRpbWUuUmVxdWVzdEhlYWRlckNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19")), "requestHeaderConfiguration") unless @request_header_configuration.nil? @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#agent_runtime_artifact ⇒ AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnRuntime::AgentRuntimeArtifactProperty (readonly)
The artifact of the agent.
52 53 54 |
# File 'bedrock_agent_core/cfn_runtime_props.rb', line 52 def agent_runtime_artifact @agent_runtime_artifact end |
#agent_runtime_name ⇒ String (readonly)
The name of the AgentCore Runtime endpoint.
57 58 59 |
# File 'bedrock_agent_core/cfn_runtime_props.rb', line 57 def agent_runtime_name @agent_runtime_name end |
#authorizer_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
Represents inbound authorization configuration options used to authenticate incoming requests.
72 73 74 |
# File 'bedrock_agent_core/cfn_runtime_props.rb', line 72 def @authorizer_configuration end |
#description ⇒ String? (readonly)
The agent runtime description.
77 78 79 |
# File 'bedrock_agent_core/cfn_runtime_props.rb', line 77 def description @description end |
#environment_variables ⇒ AWSCDK::IResolvable, ... (readonly)
The environment variables for the agent.
82 83 84 |
# File 'bedrock_agent_core/cfn_runtime_props.rb', line 82 def environment_variables @environment_variables end |
#filesystem_configurations ⇒ AWSCDK::IResolvable, ... (readonly)
List of filesystem configurations.
87 88 89 |
# File 'bedrock_agent_core/cfn_runtime_props.rb', line 87 def filesystem_configurations @filesystem_configurations end |
#lifecycle_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
Configuration for managing the lifecycle of runtime sessions and resources.
92 93 94 |
# File 'bedrock_agent_core/cfn_runtime_props.rb', line 92 def lifecycle_configuration @lifecycle_configuration end |
#network_configuration ⇒ AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnRuntime::NetworkConfigurationProperty (readonly)
The network configuration.
62 63 64 |
# File 'bedrock_agent_core/cfn_runtime_props.rb', line 62 def network_configuration @network_configuration end |
#protocol_configuration ⇒ String? (readonly)
The protocol configuration for an agent runtime.
This structure defines how the agent runtime communicates with clients.
99 100 101 |
# File 'bedrock_agent_core/cfn_runtime_props.rb', line 99 def protocol_configuration @protocol_configuration end |
#request_header_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
Configuration for HTTP request headers.
104 105 106 |
# File 'bedrock_agent_core/cfn_runtime_props.rb', line 104 def request_header_configuration @request_header_configuration end |
#role_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) for for the role.
67 68 69 |
# File 'bedrock_agent_core/cfn_runtime_props.rb', line 67 def role_arn @role_arn end |
#tags ⇒ Hash{String => String}? (readonly)
The tags for the agent.
109 110 111 |
# File 'bedrock_agent_core/cfn_runtime_props.rb', line 109 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'bedrock_agent_core/cfn_runtime_props.rb', line 111 def self.jsii_properties { :agent_runtime_artifact => "agentRuntimeArtifact", :agent_runtime_name => "agentRuntimeName", :network_configuration => "networkConfiguration", :role_arn => "roleArn", :authorizer_configuration => "authorizerConfiguration", :description => "description", :environment_variables => "environmentVariables", :filesystem_configurations => "filesystemConfigurations", :lifecycle_configuration => "lifecycleConfiguration", :protocol_configuration => "protocolConfiguration", :request_header_configuration => "requestHeaderConfiguration", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
# File 'bedrock_agent_core/cfn_runtime_props.rb', line 128 def to_jsii result = {} result.merge!({ "agentRuntimeArtifact" => @agent_runtime_artifact, "agentRuntimeName" => @agent_runtime_name, "networkConfiguration" => @network_configuration, "roleArn" => @role_arn, "authorizerConfiguration" => @authorizer_configuration, "description" => @description, "environmentVariables" => @environment_variables, "filesystemConfigurations" => @filesystem_configurations, "lifecycleConfiguration" => @lifecycle_configuration, "protocolConfiguration" => @protocol_configuration, "requestHeaderConfiguration" => @request_header_configuration, "tags" => @tags, }) result.compact end |