Class: Aws::BedrockRuntime::Types::AudioSource

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

Overview

Note:

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

Note:

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

The source of audio data, which can be provided either as raw bytes or a reference to an S3 location.

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

Audio data encoded in base64.

Returns:

  • (String)


315
316
317
318
319
320
321
322
323
324
325
326
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 315

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

  class Bytes < AudioSource; end
  class S3Location < AudioSource; end
  class Unknown < AudioSource; end
end

#s3_locationTypes::S3Location

A reference to audio data stored in an Amazon S3 bucket. To see which models support S3 uploads, see Supported models and features for Converse.

Returns:



315
316
317
318
319
320
321
322
323
324
325
326
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 315

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

  class Bytes < AudioSource; end
  class S3Location < AudioSource; end
  class Unknown < AudioSource; end
end

#unknownObject

Returns the value of attribute unknown

Returns:

  • (Object)

    the current value of unknown



315
316
317
# File 'gems/aws-sdk-bedrockruntime/lib/aws-sdk-bedrockruntime/types.rb', line 315

def unknown
  @unknown
end