Class: AWSCDK::BedrockAgentCore::CfnGatewayTarget::APIGatewayToolOverrideProperty

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method:, name:, path:, description: nil) ⇒ APIGatewayToolOverrideProperty

Returns a new instance of APIGatewayToolOverrideProperty.

Parameters:

  • method (String)
  • name (String)
  • path (String)
  • description (String, nil) (defaults to: nil)


763
764
765
766
767
768
769
770
771
772
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 763

def initialize(method:, name:, path:, description: nil)
  @method = method
  Jsii::Type.check_type(@method, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "method")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @path = path
  Jsii::Type.check_type(@path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "path")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
end

Instance Attribute Details

#descriptionString? (readonly)



785
786
787
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 785

def description
  @description
end

#methodString (readonly)



776
777
778
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 776

def method
  @method
end

#nameString (readonly)



779
780
781
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 779

def name
  @name
end

#pathString (readonly)



782
783
784
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 782

def path
  @path
end

Class Method Details

.jsii_propertiesObject



787
788
789
790
791
792
793
794
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 787

def self.jsii_properties
  {
    :method => "method",
    :name => "name",
    :path => "path",
    :description => "description",
  }
end

Instance Method Details

#to_jsiiObject



796
797
798
799
800
801
802
803
804
805
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 796

def to_jsii
  result = {}
  result.merge!({
    "method" => @method,
    "name" => @name,
    "path" => @path,
    "description" => @description,
  })
  result.compact
end