Class: AWSCDK::BedrockAgentCore::GatewayTargetAttributes

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/gateway_target_attributes.rb

Overview

Attributes for importing an existing Gateway Target.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • gateway (AWSCDK::BedrockAgentCore::IGateway)

    The gateway this target belongs to.

  • gateway_target_name (String)

    The name of the gateway target.

  • target_arn (String)

    The ARN of the gateway target.

  • target_id (String)

    The ID of the gateway target.

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

    Optional creation timestamp.

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

    Optional status of the target.

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

    Optional last update timestamp.



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_atString? (readonly)

Note:

Default: - No creation timestamp

Optional creation timestamp.

Returns:

  • (String, nil)


51
52
53
# File 'bedrock_agent_core/gateway_target_attributes.rb', line 51

def created_at
  @created_at
end

#gatewayAWSCDK::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_nameString (readonly)

The name of the gateway target.

Returns:

  • (String)


38
39
40
# File 'bedrock_agent_core/gateway_target_attributes.rb', line 38

def gateway_target_name
  @gateway_target_name
end

#statusString? (readonly)

Note:

Default: - No status

Optional status of the target.

Returns:

  • (String, nil)


56
57
58
# File 'bedrock_agent_core/gateway_target_attributes.rb', line 56

def status
  @status
end

#target_arnString (readonly)

The ARN of the gateway target.

Returns:

  • (String)


42
43
44
# File 'bedrock_agent_core/gateway_target_attributes.rb', line 42

def target_arn
  @target_arn
end

#target_idString (readonly)

The ID of the gateway target.

Returns:

  • (String)


46
47
48
# File 'bedrock_agent_core/gateway_target_attributes.rb', line 46

def target_id
  @target_id
end

#updated_atString? (readonly)

Note:

Default: - No update timestamp

Optional last update timestamp.

Returns:

  • (String, nil)


61
62
63
# File 'bedrock_agent_core/gateway_target_attributes.rb', line 61

def updated_at
  @updated_at
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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