Class: AWSCDK::IoT::CfnTopicRule::S3ActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::IoT::CfnTopicRule::S3ActionProperty
- Defined in:
- io_t/cfn_topic_rule.rb
Overview
Describes an action to write data to an Amazon S3 bucket.
Instance Attribute Summary collapse
-
#bucket_name ⇒ String
readonly
The Amazon S3 bucket.
-
#canned_acl ⇒ String?
readonly
The Amazon S3 canned ACL that controls access to the object identified by the object key.
-
#key ⇒ String
readonly
The object key.
-
#role_arn ⇒ String
readonly
The ARN of the IAM role that grants access.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bucket_name:, key:, role_arn:, canned_acl: nil) ⇒ S3ActionProperty
constructor
A new instance of S3ActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bucket_name:, key:, role_arn:, canned_acl: nil) ⇒ S3ActionProperty
Returns a new instance of S3ActionProperty.
2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 |
# File 'io_t/cfn_topic_rule.rb', line 2569 def initialize(bucket_name:, key:, role_arn:, canned_acl: nil) @bucket_name = bucket_name Jsii::Type.check_type(@bucket_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketName") @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key") @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") @canned_acl = canned_acl Jsii::Type.check_type(@canned_acl, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cannedAcl") unless @canned_acl.nil? end |
Instance Attribute Details
#bucket_name ⇒ String (readonly)
The Amazon S3 bucket.
2584 2585 2586 |
# File 'io_t/cfn_topic_rule.rb', line 2584 def bucket_name @bucket_name end |
#canned_acl ⇒ String? (readonly)
The Amazon S3 canned ACL that controls access to the object identified by the object key.
For more information, see S3 canned ACLs .
2603 2604 2605 |
# File 'io_t/cfn_topic_rule.rb', line 2603 def canned_acl @canned_acl end |
#key ⇒ String (readonly)
The object key.
For more information, see Actions, resources, and condition keys for Amazon S3 .
2591 2592 2593 |
# File 'io_t/cfn_topic_rule.rb', line 2591 def key @key end |
#role_arn ⇒ String (readonly)
The ARN of the IAM role that grants access.
2596 2597 2598 |
# File 'io_t/cfn_topic_rule.rb', line 2596 def role_arn @role_arn end |
Class Method Details
.jsii_properties ⇒ Object
2605 2606 2607 2608 2609 2610 2611 2612 |
# File 'io_t/cfn_topic_rule.rb', line 2605 def self.jsii_properties { :bucket_name => "bucketName", :key => "key", :role_arn => "roleArn", :canned_acl => "cannedAcl", } end |
Instance Method Details
#to_jsii ⇒ Object
2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 |
# File 'io_t/cfn_topic_rule.rb', line 2614 def to_jsii result = {} result.merge!({ "bucketName" => @bucket_name, "key" => @key, "roleArn" => @role_arn, "cannedAcl" => @canned_acl, }) result.compact end |