Class: VectorAmp::S3Source
Overview
S3 ingestion source.
Constant Summary
Constants inherited from Source
VectorAmp::Source::SUPPORTED_SOURCE_TYPES
Instance Attribute Summary
Attributes inherited from Source
#config, #description, #id, #metadata, #name, #source_type
Instance Method Summary collapse
- #initialize(bucket:, name: nil, prefix: nil, description: nil, metadata: nil, id: nil, **config) ⇒ S3Source constructor
Methods inherited from Source
#[], from_api, #inspect, normalize_hash, #to_create_body, #to_h
Constructor Details
#initialize(bucket:, name: nil, prefix: nil, description: nil, metadata: nil, id: nil, **config) ⇒ S3Source
212 213 214 215 216 217 218 219 220 221 222 223 |
# File 'lib/vector_amp/source.rb', line 212 def initialize(bucket:, name: nil, prefix: nil, description: nil, metadata: nil, id: nil, **config) raise ArgumentError, "bucket is required" if bucket.nil? || bucket.to_s.empty? super( id: id, source_type: "s3", name: name || SourceNames.s3(bucket, prefix), description: description, metadata: , config: Utils.compact_hash(config.merge(bucket: bucket, prefix: prefix)) ) end |