Class: Aws::BedrockRuntime::Types::ImageSource

Inherits:
Struct
  • Object
show all
Includes:
Structure, Structure::Union
Defined in:
lib/aws-sdk-bedrockruntime/types.rb

Overview

Note:

ImageSource is a union - when making an API calls you must set exactly one of the members.

Note:

ImageSource is a union - when returned from an API call exactly one value will be set and the returned type will be a subclass of ImageSource corresponding to the set member.

The source for an image.

Direct Known Subclasses

Bytes, Unknown

Defined Under Namespace

Classes: Bytes, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#bytesString

The raw image bytes for the image. If you use an AWS SDK, you don’t need to encode the image bytes in base64.

Returns:

  • (String)


1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 1356

class ImageSource < Struct.new(
  :bytes,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class Bytes < ImageSource; end
  class Unknown < ImageSource; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



1356
1357
1358
# File 'lib/aws-sdk-bedrockruntime/types.rb', line 1356

def unknown
  @unknown
end