Class: AWSCDK::BedrockAgentCore::CfnGatewayTarget::SchemaDefinitionProperty

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

Overview

The schema definition for the gateway target.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, description: nil, items: nil, properties: nil, required: nil) ⇒ SchemaDefinitionProperty

Returns a new instance of SchemaDefinitionProperty.

Parameters:

  • type (String)

    The scheme definition type for the gateway target.

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

    The workload identity details for the gateway.

  • items (AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnGatewayTarget::SchemaDefinitionProperty, nil) (defaults to: nil)
  • properties (AWSCDK::IResolvable, Hash{String => AWSCDK::IResolvable, AWSCDK::BedrockAgentCore::CfnGatewayTarget::SchemaDefinitionProperty}, nil) (defaults to: nil)

    The schema definition properties for the gateway target.

  • required (Array<String>, nil) (defaults to: nil)

    The schema definition.



1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1968

def initialize(type:, description: nil, items: nil, properties: nil, required: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @items = items.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnGatewayTarget::SchemaDefinitionProperty.new(**items.transform_keys(&:to_sym)) : items
  Jsii::Type.check_type(@items, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkdhdGV3YXlUYXJnZXQuU2NoZW1hRGVmaW5pdGlvblByb3BlcnR5In1dfX0=")), "items") unless @items.nil?
  @properties = properties
  Jsii::Type.check_type(@properties, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5DZm5HYXRld2F5VGFyZ2V0LlNjaGVtYURlZmluaXRpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoibWFwIn19XX19")), "properties") unless @properties.nil?
  @required = required
  Jsii::Type.check_type(@required, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "required") unless @required.nil?
end

Instance Attribute Details

#descriptionString? (readonly)

The workload identity details for the gateway.



1990
1991
1992
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1990

def description
  @description
end

#itemsAWSCDK::IResolvable, ... (readonly)



1993
1994
1995
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1993

def items
  @items
end

#propertiesAWSCDK::IResolvable, ... (readonly)

The schema definition properties for the gateway target.



1998
1999
2000
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1998

def properties
  @properties
end

#requiredArray<String>? (readonly)

The schema definition.



2003
2004
2005
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 2003

def required
  @required
end

#typeString (readonly)

The scheme definition type for the gateway target.



1985
1986
1987
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1985

def type
  @type
end

Class Method Details

.jsii_propertiesObject



2005
2006
2007
2008
2009
2010
2011
2012
2013
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 2005

def self.jsii_properties
  {
    :type => "type",
    :description => "description",
    :items => "items",
    :properties => "properties",
    :required => "required",
  }
end

Instance Method Details

#to_jsiiObject



2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 2015

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "description" => @description,
    "items" => @items,
    "properties" => @properties,
    "required" => @required,
  })
  result.compact
end