Class: AWSCDK::IoTAnalytics::CfnDatastore::DatastoreStorageProperty

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

Overview

Where data store data is stored.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(customer_managed_s3: nil, iot_site_wise_multi_layer_storage: nil, service_managed_s3: nil) ⇒ DatastoreStorageProperty

Returns a new instance of DatastoreStorageProperty.

Parameters:



830
831
832
833
834
835
836
837
# File 'io_t_analytics/cfn_datastore.rb', line 830

def initialize(customer_managed_s3: nil, iot_site_wise_multi_layer_storage: nil, service_managed_s3: nil)
  @customer_managed_s3 = customer_managed_s3.is_a?(Hash) ? ::AWSCDK::IoTAnalytics::CfnDatastore::CustomerManagedS3Property.new(**customer_managed_s3.transform_keys(&:to_sym)) : customer_managed_s3
  Jsii::Type.check_type(@customer_managed_s3, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RhbmFseXRpY3MuQ2ZuRGF0YXN0b3JlLkN1c3RvbWVyTWFuYWdlZFMzUHJvcGVydHkifV19fQ==")), "customerManagedS3") unless @customer_managed_s3.nil?
  @iot_site_wise_multi_layer_storage = iot_site_wise_multi_layer_storage.is_a?(Hash) ? ::AWSCDK::IoTAnalytics::CfnDatastore::IotSiteWiseMultiLayerStorageProperty.new(**iot_site_wise_multi_layer_storage.transform_keys(&:to_sym)) : iot_site_wise_multi_layer_storage
  Jsii::Type.check_type(@iot_site_wise_multi_layer_storage, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RhbmFseXRpY3MuQ2ZuRGF0YXN0b3JlLklvdFNpdGVXaXNlTXVsdGlMYXllclN0b3JhZ2VQcm9wZXJ0eSJ9XX19")), "iotSiteWiseMultiLayerStorage") unless @iot_site_wise_multi_layer_storage.nil?
  @service_managed_s3 = service_managed_s3
  Jsii::Type.check_type(@service_managed_s3, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJhbnkifQ==")), "serviceManagedS3") unless @service_managed_s3.nil?
end

Instance Attribute Details

#customer_managed_s3AWSCDK::IResolvable, ... (readonly)

Use this to store data store data in an S3 bucket that you manage.

The choice of service-managed or customer-managed S3 storage cannot be changed after creation of the data store.



845
846
847
# File 'io_t_analytics/cfn_datastore.rb', line 845

def customer_managed_s3
  @customer_managed_s3
end

#iot_site_wise_multi_layer_storageAWSCDK::IResolvable, ... (readonly)

Use this to store data used by AWS IoT SiteWise in an Amazon S3 bucket that you manage.

You can't change the choice of Amazon S3 storage after your data store is created.



852
853
854
# File 'io_t_analytics/cfn_datastore.rb', line 852

def iot_site_wise_multi_layer_storage
  @iot_site_wise_multi_layer_storage
end

#service_managed_s3Object? (readonly)

Use this to store data store data in an S3 bucket managed by the service.

The choice of service-managed or customer-managed S3 storage cannot be changed after creation of the data store.



859
860
861
# File 'io_t_analytics/cfn_datastore.rb', line 859

def service_managed_s3
  @service_managed_s3
end

Class Method Details

.jsii_propertiesObject



861
862
863
864
865
866
867
# File 'io_t_analytics/cfn_datastore.rb', line 861

def self.jsii_properties
  {
    :customer_managed_s3 => "customerManagedS3",
    :iot_site_wise_multi_layer_storage => "iotSiteWiseMultiLayerStorage",
    :service_managed_s3 => "serviceManagedS3",
  }
end

Instance Method Details

#to_jsiiObject



869
870
871
872
873
874
875
876
877
# File 'io_t_analytics/cfn_datastore.rb', line 869

def to_jsii
  result = {}
  result.merge!({
    "customerManagedS3" => @customer_managed_s3,
    "iotSiteWiseMultiLayerStorage" => @iot_site_wise_multi_layer_storage,
    "serviceManagedS3" => @service_managed_s3,
  })
  result.compact
end