Class: Aws::BedrockAgentCore::Types::ContentBlock

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb

Overview

A block of content in a response.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#data ⇒ String

The binary data content of the block.

Returns:

  • (String)


1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 1419

class ContentBlock < Struct.new(
  :type,
  :text,
  :data,
  :mime_type,
  :uri,
  :name,
  :description,
  :size,
  :resource)
  SENSITIVE = []
  include Aws::Structure
end

#description ⇒ String

The description of the content block.

Returns:

  • (String)


1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 1419

class ContentBlock < Struct.new(
  :type,
  :text,
  :data,
  :mime_type,
  :uri,
  :name,
  :description,
  :size,
  :resource)
  SENSITIVE = []
  include Aws::Structure
end

#mime_type ⇒ String

The MIME type of the content.

Returns:

  • (String)


1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 1419

class ContentBlock < Struct.new(
  :type,
  :text,
  :data,
  :mime_type,
  :uri,
  :name,
  :description,
  :size,
  :resource)
  SENSITIVE = []
  include Aws::Structure
end

#name ⇒ String

The name of the content block.

Returns:

  • (String)


1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 1419

class ContentBlock < Struct.new(
  :type,
  :text,
  :data,
  :mime_type,
  :uri,
  :name,
  :description,
  :size,
  :resource)
  SENSITIVE = []
  include Aws::Structure
end

#resource ⇒ Types::ResourceContent

The resource associated with the content block.



1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 1419

class ContentBlock < Struct.new(
  :type,
  :text,
  :data,
  :mime_type,
  :uri,
  :name,
  :description,
  :size,
  :resource)
  SENSITIVE = []
  include Aws::Structure
end

#size ⇒ Integer

The size of the content in bytes.

Returns:

  • (Integer)


1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 1419

class ContentBlock < Struct.new(
  :type,
  :text,
  :data,
  :mime_type,
  :uri,
  :name,
  :description,
  :size,
  :resource)
  SENSITIVE = []
  include Aws::Structure
end

#text ⇒ String

The text content of the block.

Returns:

  • (String)


1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 1419

class ContentBlock < Struct.new(
  :type,
  :text,
  :data,
  :mime_type,
  :uri,
  :name,
  :description,
  :size,
  :resource)
  SENSITIVE = []
  include Aws::Structure
end

#type ⇒ String

The type of content in the block.

Returns:

  • (String)


1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 1419

class ContentBlock < Struct.new(
  :type,
  :text,
  :data,
  :mime_type,
  :uri,
  :name,
  :description,
  :size,
  :resource)
  SENSITIVE = []
  include Aws::Structure
end

#uri ⇒ String

The URI of the content.

Returns:

  • (String)


1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
# File 'gems/aws-sdk-bedrockagentcore/lib/aws-sdk-bedrockagentcore/types.rb', line 1419

class ContentBlock < Struct.new(
  :type,
  :text,
  :data,
  :mime_type,
  :uri,
  :name,
  :description,
  :size,
  :resource)
  SENSITIVE = []
  include Aws::Structure
end