Class: AWSCDK::IoTAnalytics::CfnDatastore::CustomerManagedS3Property

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

Overview

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:, role_arn:, key_prefix: nil) ⇒ CustomerManagedS3Property

Returns a new instance of CustomerManagedS3Property.

Parameters:

  • bucket (String)

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

  • role_arn (String)

    The ARN of the role that grants ITA permission to interact with your Amazon S3 resources.

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

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



650
651
652
653
654
655
656
657
# File 'io_t_analytics/cfn_datastore.rb', line 650

def initialize(bucket:, role_arn:, key_prefix: nil)
  @bucket = bucket
  Jsii::Type.check_type(@bucket, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucket")
  @role_arn = role_arn
  Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn")
  @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.



663
664
665
# File 'io_t_analytics/cfn_datastore.rb', line 663

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 (/).



675
676
677
# File 'io_t_analytics/cfn_datastore.rb', line 675

def key_prefix
  @key_prefix
end

#role_arnString (readonly)

The ARN of the role that grants ITA permission to interact with your Amazon S3 resources.



668
669
670
# File 'io_t_analytics/cfn_datastore.rb', line 668

def role_arn
  @role_arn
end

Class Method Details

.jsii_propertiesObject



677
678
679
680
681
682
683
# File 'io_t_analytics/cfn_datastore.rb', line 677

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

Instance Method Details

#to_jsiiObject



685
686
687
688
689
690
691
692
693
# File 'io_t_analytics/cfn_datastore.rb', line 685

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