Class: AWSCDK::KafkaConnect::CfnCustomPlugin::S3LocationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KafkaConnect::CfnCustomPlugin::S3LocationProperty
- Defined in:
- kafka_connect/cfn_custom_plugin.rb
Overview
The location of an object in Amazon S3.
Instance Attribute Summary collapse
-
#bucket_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of an S3 bucket.
-
#file_key ⇒ String
readonly
The file key for an object in an S3 bucket.
-
#object_version ⇒ String?
readonly
The version of an object in an S3 bucket.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bucket_arn:, file_key:, object_version: nil) ⇒ S3LocationProperty
constructor
A new instance of S3LocationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bucket_arn:, file_key:, object_version: nil) ⇒ S3LocationProperty
Returns a new instance of S3LocationProperty.
668 669 670 671 672 673 674 675 |
# File 'kafka_connect/cfn_custom_plugin.rb', line 668 def initialize(bucket_arn:, file_key:, object_version: nil) @bucket_arn = bucket_arn Jsii::Type.check_type(@bucket_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bucketArn") @file_key = file_key Jsii::Type.check_type(@file_key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "fileKey") @object_version = object_version Jsii::Type.check_type(@object_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "objectVersion") unless @object_version.nil? end |
Instance Attribute Details
#bucket_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of an S3 bucket.
681 682 683 |
# File 'kafka_connect/cfn_custom_plugin.rb', line 681 def bucket_arn @bucket_arn end |
#file_key ⇒ String (readonly)
The file key for an object in an S3 bucket.
686 687 688 |
# File 'kafka_connect/cfn_custom_plugin.rb', line 686 def file_key @file_key end |
#object_version ⇒ String? (readonly)
The version of an object in an S3 bucket.
691 692 693 |
# File 'kafka_connect/cfn_custom_plugin.rb', line 691 def object_version @object_version end |
Class Method Details
.jsii_properties ⇒ Object
693 694 695 696 697 698 699 |
# File 'kafka_connect/cfn_custom_plugin.rb', line 693 def self.jsii_properties { :bucket_arn => "bucketArn", :file_key => "fileKey", :object_version => "objectVersion", } end |
Instance Method Details
#to_jsii ⇒ Object
701 702 703 704 705 706 707 708 709 |
# File 'kafka_connect/cfn_custom_plugin.rb', line 701 def to_jsii result = {} result.merge!({ "bucketArn" => @bucket_arn, "fileKey" => @file_key, "objectVersion" => @object_version, }) result.compact end |