Class: AWSCDK::BedrockAgentCore::GatewayTargetAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::GatewayTargetAttributes
- Defined in:
- bedrock_agent_core/gateway_target_attributes.rb
Overview
Attributes for importing an existing Gateway Target.
Instance Attribute Summary collapse
-
#created_at ⇒ String?
readonly
Optional creation timestamp.
-
#gateway ⇒ AWSCDK::BedrockAgentCore::IGateway
readonly
The gateway this target belongs to.
-
#gateway_target_name ⇒ String
readonly
The name of the gateway target.
-
#status ⇒ String?
readonly
Optional status of the target.
-
#target_arn ⇒ String
readonly
The ARN of the gateway target.
-
#target_id ⇒ String
readonly
The ID of the gateway target.
-
#updated_at ⇒ String?
readonly
Optional last update timestamp.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(gateway:, gateway_target_name:, target_arn:, target_id:, created_at: nil, status: nil, updated_at: nil) ⇒ GatewayTargetAttributes
constructor
A new instance of GatewayTargetAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(gateway:, gateway_target_name:, target_arn:, target_id:, created_at: nil, status: nil, updated_at: nil) ⇒ GatewayTargetAttributes
Returns a new instance of GatewayTargetAttributes.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'bedrock_agent_core/gateway_target_attributes.rb', line 14 def initialize(gateway:, gateway_target_name:, target_arn:, target_id:, created_at: nil, status: nil, updated_at: nil) @gateway = gateway Jsii::Type.check_type(@gateway, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5JR2F0ZXdheSJ9")), "gateway") @gateway_target_name = gateway_target_name Jsii::Type.check_type(@gateway_target_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "gatewayTargetName") @target_arn = target_arn Jsii::Type.check_type(@target_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetArn") @target_id = target_id Jsii::Type.check_type(@target_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetId") @created_at = created_at Jsii::Type.check_type(@created_at, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "createdAt") unless @created_at.nil? @status = status Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") unless @status.nil? @updated_at = updated_at Jsii::Type.check_type(@updated_at, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "updatedAt") unless @updated_at.nil? end |
Instance Attribute Details
#created_at ⇒ String? (readonly)
Note:
Default: - No creation timestamp
Optional creation timestamp.
51 52 53 |
# File 'bedrock_agent_core/gateway_target_attributes.rb', line 51 def created_at @created_at end |
#gateway ⇒ AWSCDK::BedrockAgentCore::IGateway (readonly)
The gateway this target belongs to.
34 35 36 |
# File 'bedrock_agent_core/gateway_target_attributes.rb', line 34 def gateway @gateway end |
#gateway_target_name ⇒ String (readonly)
The name of the gateway target.
38 39 40 |
# File 'bedrock_agent_core/gateway_target_attributes.rb', line 38 def gateway_target_name @gateway_target_name end |
#status ⇒ String? (readonly)
Note:
Default: - No status
Optional status of the target.
56 57 58 |
# File 'bedrock_agent_core/gateway_target_attributes.rb', line 56 def status @status end |
#target_arn ⇒ String (readonly)
The ARN of the gateway target.
42 43 44 |
# File 'bedrock_agent_core/gateway_target_attributes.rb', line 42 def target_arn @target_arn end |
#target_id ⇒ String (readonly)
The ID of the gateway target.
46 47 48 |
# File 'bedrock_agent_core/gateway_target_attributes.rb', line 46 def target_id @target_id end |
#updated_at ⇒ String? (readonly)
Note:
Default: - No update timestamp
Optional last update timestamp.
61 62 63 |
# File 'bedrock_agent_core/gateway_target_attributes.rb', line 61 def updated_at @updated_at end |
Class Method Details
.jsii_properties ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 |
# File 'bedrock_agent_core/gateway_target_attributes.rb', line 63 def self.jsii_properties { :gateway => "gateway", :gateway_target_name => "gatewayTargetName", :target_arn => "targetArn", :target_id => "targetId", :created_at => "createdAt", :status => "status", :updated_at => "updatedAt", } end |
Instance Method Details
#to_jsii ⇒ Object
75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'bedrock_agent_core/gateway_target_attributes.rb', line 75 def to_jsii result = {} result.merge!({ "gateway" => @gateway, "gatewayTargetName" => @gateway_target_name, "targetArn" => @target_arn, "targetId" => @target_id, "createdAt" => @created_at, "status" => @status, "updatedAt" => @updated_at, }) result.compact end |