Class: AWSCDK::KinesisAnalyticsv2::CfnApplication::S3ContentLocationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kinesis_analyticsv2/cfn_application.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.



2251
2252
2253
2254
2255
2256
2257
2258
# File 'kinesis_analyticsv2/cfn_application.rb', line 2251

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.



2264
2265
2266
# File 'kinesis_analyticsv2/cfn_application.rb', line 2264

def bucket_arn
  @bucket_arn
end

#file_keyString (readonly)

The file key for the object containing the application code.



2269
2270
2271
# File 'kinesis_analyticsv2/cfn_application.rb', line 2269

def file_key
  @file_key
end

#object_versionString? (readonly)

The version of the object containing the application code.



2274
2275
2276
# File 'kinesis_analyticsv2/cfn_application.rb', line 2274

def object_version
  @object_version
end

Class Method Details

.jsii_propertiesObject



2276
2277
2278
2279
2280
2281
2282
# File 'kinesis_analyticsv2/cfn_application.rb', line 2276

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

Instance Method Details

#to_jsiiObject



2284
2285
2286
2287
2288
2289
2290
2291
2292
# File 'kinesis_analyticsv2/cfn_application.rb', line 2284

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