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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-bedrockruntime/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, S3Location, Unknown

Defined Under Namespace

Classes: Bytes, S3Location, 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)


2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2286

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

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

#s3_locationTypes::S3Location

The location of an image object in an Amazon S3 bucket. To see which models support S3 uploads, see Supported models and features for Converse.

Returns:



2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2286

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

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

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



2286
2287
2288
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 2286

def unknown
  @unknown
end