Class: AWSCDK::Bedrock::CfnAgent::APISchemaProperty

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

Overview

Contains details about the OpenAPI schema for the action group.

For more information, see Action group OpenAPI schemas . You can either include the schema directly in the payload field or you can upload it to an S3 bucket and specify the S3 bucket location in the s3 field.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(payload: nil, s3: nil) ⇒ APISchemaProperty

Returns a new instance of APISchemaProperty.

Parameters:



880
881
882
883
884
885
# File 'bedrock/cfn_agent.rb', line 880

def initialize(payload: nil, s3: nil)
  @payload = payload
  Jsii::Type.check_type(@payload, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "payload") unless @payload.nil?
  @s3 = s3.is_a?(Hash) ? ::AWSCDK::Bedrock::CfnAgent::S3IdentifierProperty.new(**s3.transform_keys(&:to_sym)) : s3
  Jsii::Type.check_type(@s3, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrLkNmbkFnZW50LlMzSWRlbnRpZmllclByb3BlcnR5In1dfX0=")), "s3") unless @s3.nil?
end

Instance Attribute Details

#payloadString? (readonly)

The JSON or YAML-formatted payload defining the OpenAPI schema for the action group.



891
892
893
# File 'bedrock/cfn_agent.rb', line 891

def payload
  @payload
end

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

Contains details about the S3 object containing the OpenAPI schema for the action group.



896
897
898
# File 'bedrock/cfn_agent.rb', line 896

def s3
  @s3
end

Class Method Details

.jsii_propertiesObject



898
899
900
901
902
903
# File 'bedrock/cfn_agent.rb', line 898

def self.jsii_properties
  {
    :payload => "payload",
    :s3 => "s3",
  }
end

Instance Method Details

#to_jsiiObject



905
906
907
908
909
910
911
912
# File 'bedrock/cfn_agent.rb', line 905

def to_jsii
  result = {}
  result.merge!({
    "payload" => @payload,
    "s3" => @s3,
  })
  result.compact
end