Class: AWSCDK::CustomerProfiles::CfnIntegration::S3SourcePropertiesProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
customer_profiles/cfn_integration.rb

Overview

The properties that are applied when Amazon S3 is being used as the flow source.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket_name:, bucket_prefix: nil) ⇒ S3SourcePropertiesProperty

Returns a new instance of S3SourcePropertiesProperty.

Parameters:

  • bucket_name (String)

    The Amazon S3 bucket name where the source files are stored.

  • bucket_prefix (String, nil) (defaults to: nil)

    The object key for the Amazon S3 bucket in which the source files are stored.



880
881
882
883
884
885
# File 'customer_profiles/cfn_integration.rb', line 880

def initialize(bucket_name:, bucket_prefix: nil)
  @bucket_name = bucket_name
  Jsii::Type.check_type(@bucket_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketName")
  @bucket_prefix = bucket_prefix
  Jsii::Type.check_type(@bucket_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketPrefix") unless @bucket_prefix.nil?
end

Instance Attribute Details

#bucket_nameString (readonly)

The Amazon S3 bucket name where the source files are stored.



891
892
893
# File 'customer_profiles/cfn_integration.rb', line 891

def bucket_name
  @bucket_name
end

#bucket_prefixString? (readonly)

The object key for the Amazon S3 bucket in which the source files are stored.



896
897
898
# File 'customer_profiles/cfn_integration.rb', line 896

def bucket_prefix
  @bucket_prefix
end

Class Method Details

.jsii_propertiesObject



898
899
900
901
902
903
# File 'customer_profiles/cfn_integration.rb', line 898

def self.jsii_properties
  {
    :bucket_name => "bucketName",
    :bucket_prefix => "bucketPrefix",
  }
end

Instance Method Details

#to_jsiiObject



905
906
907
908
909
910
911
912
# File 'customer_profiles/cfn_integration.rb', line 905

def to_jsii
  result = {}
  result.merge!({
    "bucketName" => @bucket_name,
    "bucketPrefix" => @bucket_prefix,
  })
  result.compact
end