Class: AWSCDK::Bedrock::CfnAgentAliasProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnAgentAliasProps
- Defined in:
- bedrock/cfn_agent_alias_props.rb
Overview
Properties for defining a CfnAgentAlias.
Instance Attribute Summary collapse
-
#agent_alias_name ⇒ String
readonly
The name of the alias of the agent.
-
#agent_id ⇒ String
readonly
The unique identifier of the agent.
-
#description ⇒ String?
readonly
The description of the alias of the agent.
-
#routing_configuration ⇒ AWSCDK::IResolvable, ...
readonly
Contains details about the routing configuration of the alias.
-
#tags ⇒ Hash{String => String}?
readonly
Metadata that you can assign to a resource as key-value pairs.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(agent_alias_name:, agent_id:, description: nil, routing_configuration: nil, tags: nil) ⇒ CfnAgentAliasProps
constructor
A new instance of CfnAgentAliasProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(agent_alias_name:, agent_id:, description: nil, routing_configuration: nil, tags: nil) ⇒ CfnAgentAliasProps
Returns a new instance of CfnAgentAliasProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'bedrock/cfn_agent_alias_props.rb', line 14 def initialize(agent_alias_name:, agent_id:, description: nil, routing_configuration: nil, tags: nil) @agent_alias_name = agent_alias_name Jsii::Type.check_type(@agent_alias_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "agentAliasName") @agent_id = agent_id Jsii::Type.check_type(@agent_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "agentId") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @routing_configuration = routing_configuration Jsii::Type.check_type(@routing_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9jay5DZm5BZ2VudEFsaWFzLkFnZW50QWxpYXNSb3V0aW5nQ29uZmlndXJhdGlvbkxpc3RJdGVtUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "routingConfiguration") unless @routing_configuration.nil? @tags = Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil? end |
Instance Attribute Details
#agent_alias_name ⇒ String (readonly)
The name of the alias of the agent.
31 32 33 |
# File 'bedrock/cfn_agent_alias_props.rb', line 31 def agent_alias_name @agent_alias_name end |
#agent_id ⇒ String (readonly)
The unique identifier of the agent.
36 37 38 |
# File 'bedrock/cfn_agent_alias_props.rb', line 36 def agent_id @agent_id end |
#description ⇒ String? (readonly)
The description of the alias of the agent.
41 42 43 |
# File 'bedrock/cfn_agent_alias_props.rb', line 41 def description @description end |
#routing_configuration ⇒ AWSCDK::IResolvable, ... (readonly)
Contains details about the routing configuration of the alias.
46 47 48 |
# File 'bedrock/cfn_agent_alias_props.rb', line 46 def routing_configuration @routing_configuration end |
#tags ⇒ Hash{String => String}? (readonly)
Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:.
54 55 56 |
# File 'bedrock/cfn_agent_alias_props.rb', line 54 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
56 57 58 59 60 61 62 63 64 |
# File 'bedrock/cfn_agent_alias_props.rb', line 56 def self.jsii_properties { :agent_alias_name => "agentAliasName", :agent_id => "agentId", :description => "description", :routing_configuration => "routingConfiguration", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 |
# File 'bedrock/cfn_agent_alias_props.rb', line 66 def to_jsii result = {} result.merge!({ "agentAliasName" => @agent_alias_name, "agentId" => @agent_id, "description" => @description, "routingConfiguration" => @routing_configuration, "tags" => @tags, }) result.compact end |