Class: AWSCDK::IoTAnalytics::CfnChannel::ChannelStorageProperty

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

Overview

Where channel data is stored.

You may choose one of service_managed_s3 , customer_managed_s3 storage. If not specified, the default is service_managed_s3 . This can't be changed after creation of the channel.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(customer_managed_s3: nil, service_managed_s3: nil) ⇒ ChannelStorageProperty

Returns a new instance of ChannelStorageProperty.

Parameters:



574
575
576
577
578
579
# File 'io_t_analytics/cfn_channel.rb', line 574

def initialize(customer_managed_s3: nil, service_managed_s3: nil)
  @customer_managed_s3 = customer_managed_s3.is_a?(Hash) ? ::AWSCDK::IoTAnalytics::CfnChannel::CustomerManagedS3Property.new(**customer_managed_s3.transform_keys(&:to_sym)) : customer_managed_s3
  Jsii::Type.check_type(@customer_managed_s3, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19pb3RhbmFseXRpY3MuQ2ZuQ2hhbm5lbC5DdXN0b21lck1hbmFnZWRTM1Byb3BlcnR5In1dfX0=")), "customerManagedS3") unless @customer_managed_s3.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)

Used to store channel data in an S3 bucket that you manage.

If customer managed storage is selected, the retention_period parameter is ignored. You can't change the choice of S3 storage after the data store is created.



587
588
589
# File 'io_t_analytics/cfn_channel.rb', line 587

def customer_managed_s3
  @customer_managed_s3
end

#service_managed_s3Object? (readonly)

Used to store channel data in an S3 bucket managed by ITA .

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



594
595
596
# File 'io_t_analytics/cfn_channel.rb', line 594

def service_managed_s3
  @service_managed_s3
end

Class Method Details

.jsii_propertiesObject



596
597
598
599
600
601
# File 'io_t_analytics/cfn_channel.rb', line 596

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

Instance Method Details

#to_jsiiObject



603
604
605
606
607
608
609
610
# File 'io_t_analytics/cfn_channel.rb', line 603

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