Class: AWSCDK::IoTAnalytics::CfnDatastore::CustomerManagedS3Property
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoTAnalytics::CfnDatastore::CustomerManagedS3Property
- 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
-
#bucket ⇒ String
readonly
The name of the Amazon S3 bucket where your data is stored.
-
#key_prefix ⇒ String?
readonly
(Optional) The prefix used to create the keys of the data store data objects.
-
#role_arn ⇒ String
readonly
The ARN of the role that grants ITA permission to interact with your Amazon S3 resources.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bucket:, role_arn:, key_prefix: nil) ⇒ CustomerManagedS3Property
constructor
A new instance of CustomerManagedS3Property.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bucket:, role_arn:, key_prefix: nil) ⇒ CustomerManagedS3Property
Returns a new instance of CustomerManagedS3Property.
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
#bucket ⇒ String (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_prefix ⇒ String? (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_arn ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |