Class: AWSCDK::Bedrock::CfnAgent::APISchemaProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnAgent::APISchemaProperty
- 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
-
#payload ⇒ String?
readonly
The JSON or YAML-formatted payload defining the OpenAPI schema for the action group.
-
#s3 ⇒ AWSCDK::IResolvable, ...
readonly
Contains details about the S3 object containing the OpenAPI schema for the action group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(payload: nil, s3: nil) ⇒ APISchemaProperty
constructor
A new instance of APISchemaProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(payload: nil, s3: nil) ⇒ APISchemaProperty
Returns a new instance of APISchemaProperty.
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
#payload ⇒ String? (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 |
#s3 ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |