Class: AWSCDK::KinesisAnalytics::CfnApplicationV2::S3ContentLocationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kinesis_analytics/cfn_application_v2.rb

Overview

The location of an application or a custom artifact.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of S3ContentLocationProperty.

Parameters:

  • bucket_arn (String)

    The Amazon Resource Name (ARN) for the S3 bucket containing the application code.

  • file_key (String)

    The file key for the object containing the application code.

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

    The version of the object containing the application code.



2252
2253
2254
2255
2256
2257
2258
2259
# File 'kinesis_analytics/cfn_application_v2.rb', line 2252

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) for the S3 bucket containing the application code.



2265
2266
2267
# File 'kinesis_analytics/cfn_application_v2.rb', line 2265

def bucket_arn
  @bucket_arn
end

#file_keyString (readonly)

The file key for the object containing the application code.



2270
2271
2272
# File 'kinesis_analytics/cfn_application_v2.rb', line 2270

def file_key
  @file_key
end

#object_versionString? (readonly)

The version of the object containing the application code.



2275
2276
2277
# File 'kinesis_analytics/cfn_application_v2.rb', line 2275

def object_version
  @object_version
end

Class Method Details

.jsii_propertiesObject



2277
2278
2279
2280
2281
2282
2283
# File 'kinesis_analytics/cfn_application_v2.rb', line 2277

def self.jsii_properties
  {
    :bucket_arn => "bucketArn",
    :file_key => "fileKey",
    :object_version => "objectVersion",
  }
end

Instance Method Details

#to_jsiiObject



2285
2286
2287
2288
2289
2290
2291
2292
2293
# File 'kinesis_analytics/cfn_application_v2.rb', line 2285

def to_jsii
  result = {}
  result.merge!({
    "bucketArn" => @bucket_arn,
    "fileKey" => @file_key,
    "objectVersion" => @object_version,
  })
  result.compact
end