Class: AWSCDK::IoTAnalytics::CfnDatastore::CustomerManagedS3StorageProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
io_t_analytics/cfn_datastore.rb

Overview

Amazon S3 -customer-managed;

When you choose customer-managed storage, the retention_period parameter is ignored. You can't change the choice of Amazon S3 storage after your data store is created.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket:, key_prefix: nil) ⇒ CustomerManagedS3StorageProperty

Returns a new instance of CustomerManagedS3StorageProperty.

Parameters:

  • bucket (String)

    The name of the Amazon S3 bucket where your data is stored.

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

    (Optional) The prefix used to create the keys of the data store data objects.



706
707
708
709
710
711
# File 'io_t_analytics/cfn_datastore.rb', line 706

def initialize(bucket:, key_prefix: nil)
  @bucket = bucket
  Jsii::Type.check_type(@bucket, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucket")
  @key_prefix = key_prefix
  Jsii::Type.check_type(@key_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "keyPrefix") unless @key_prefix.nil?
end

Instance Attribute Details

#bucketString (readonly)

The name of the Amazon S3 bucket where your data is stored.



717
718
719
# File 'io_t_analytics/cfn_datastore.rb', line 717

def bucket
  @bucket
end

#key_prefixString? (readonly)

(Optional) The prefix used to create the keys of the data store data objects.

Each object in an Amazon S3 bucket has a key that is its unique identifier in the bucket. Each object in a bucket has exactly one key. The prefix must end with a forward slash (/).



724
725
726
# File 'io_t_analytics/cfn_datastore.rb', line 724

def key_prefix
  @key_prefix
end

Class Method Details

.jsii_propertiesObject



726
727
728
729
730
731
# File 'io_t_analytics/cfn_datastore.rb', line 726

def self.jsii_properties
  {
    :bucket => "bucket",
    :key_prefix => "keyPrefix",
  }
end

Instance Method Details

#to_jsiiObject



733
734
735
736
737
738
739
740
# File 'io_t_analytics/cfn_datastore.rb', line 733

def to_jsii
  result = {}
  result.merge!({
    "bucket" => @bucket,
    "keyPrefix" => @key_prefix,
  })
  result.compact
end