Class: AWSCDK::KafkaConnect::CfnCustomPlugin::S3LocationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kafka_connect/cfn_custom_plugin.rb

Overview

The location of an object in Amazon S3.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bucket_arn:, file_key:, object_version: nil) ⇒ S3LocationProperty

Returns a new instance of S3LocationProperty.

Parameters:

  • bucket_arn (String)

    The Amazon Resource Name (ARN) of an S3 bucket.

  • file_key (String)

    The file key for an object in an S3 bucket.

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

    The version of an object in an S3 bucket.



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_arnString (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_keyString (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_versionString? (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_propertiesObject



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_jsiiObject



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