Class: AWSCDK::Bedrock::CfnAgentAliasProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_agent_alias_props.rb

Overview

Properties for defining a CfnAgentAlias.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(agent_alias_name:, agent_id:, description: nil, routing_configuration: nil, tags: nil) ⇒ CfnAgentAliasProps

Returns a new instance of CfnAgentAliasProps.

Parameters:

  • agent_alias_name (String)

    The name of the alias of the agent.

  • agent_id (String)

    The unique identifier of the agent.

  • description (String, nil) (defaults to: nil)

    The description of the alias of the agent.

  • routing_configuration (AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::Bedrock::CfnAgentAlias::AgentAliasRoutingConfigurationListItemProperty>, nil) (defaults to: nil)

    Contains details about the routing configuration of the alias.

  • tags (Hash{String => String}, nil) (defaults to: nil)

    Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:.



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 = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#agent_alias_nameString (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_idString (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

#descriptionString? (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_configurationAWSCDK::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

#tagsHash{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
  @tags
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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