Class: AWSCDK::KinesisAnalyticsv2::CfnApplication::CodeContentProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kinesis_analyticsv2/cfn_application.rb

Overview

Specifies either the application code, or the location of the application code, for a Managed Service for Apache Flink application.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(s3_content_location: nil, text_content: nil, zip_file_content: nil) ⇒ CodeContentProperty

Returns a new instance of CodeContentProperty.

Parameters:

  • s3_content_location (AWSCDK::IResolvable, AWSCDK::KinesisAnalyticsv2::CfnApplication::S3ContentLocationProperty, nil) (defaults to: nil)

    Information about the Amazon S3 bucket that contains the application code.

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

    The text-format code for a Managed Service for Apache Flink application.

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

    The zip-format code for a Managed Service for Apache Flink application.



1149
1150
1151
1152
1153
1154
1155
1156
# File 'kinesis_analyticsv2/cfn_application.rb', line 1149

def initialize(s3_content_location: nil, text_content: nil, zip_file_content: nil)
  @s3_content_location = s3_content_location.is_a?(Hash) ? ::AWSCDK::KinesisAnalyticsv2::CfnApplication::S3ContentLocationProperty.new(**s3_content_location.transform_keys(&:to_sym)) : s3_content_location
  Jsii::Type.check_type(@s3_content_location, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19raW5lc2lzYW5hbHl0aWNzdjIuQ2ZuQXBwbGljYXRpb24uUzNDb250ZW50TG9jYXRpb25Qcm9wZXJ0eSJ9XX19")), "s3ContentLocation") unless @s3_content_location.nil?
  @text_content = text_content
  Jsii::Type.check_type(@text_content, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "textContent") unless @text_content.nil?
  @zip_file_content = zip_file_content
  Jsii::Type.check_type(@zip_file_content, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "zipFileContent") unless @zip_file_content.nil?
end

Instance Attribute Details

#s3_content_locationAWSCDK::IResolvable, ... (readonly)

Information about the Amazon S3 bucket that contains the application code.



1162
1163
1164
# File 'kinesis_analyticsv2/cfn_application.rb', line 1162

def s3_content_location
  @s3_content_location
end

#text_contentString? (readonly)

The text-format code for a Managed Service for Apache Flink application.



1167
1168
1169
# File 'kinesis_analyticsv2/cfn_application.rb', line 1167

def text_content
  @text_content
end

#zip_file_contentString? (readonly)

The zip-format code for a Managed Service for Apache Flink application.



1172
1173
1174
# File 'kinesis_analyticsv2/cfn_application.rb', line 1172

def zip_file_content
  @zip_file_content
end

Class Method Details

.jsii_propertiesObject



1174
1175
1176
1177
1178
1179
1180
# File 'kinesis_analyticsv2/cfn_application.rb', line 1174

def self.jsii_properties
  {
    :s3_content_location => "s3ContentLocation",
    :text_content => "textContent",
    :zip_file_content => "zipFileContent",
  }
end

Instance Method Details

#to_jsiiObject



1182
1183
1184
1185
1186
1187
1188
1189
1190
# File 'kinesis_analyticsv2/cfn_application.rb', line 1182

def to_jsii
  result = {}
  result.merge!({
    "s3ContentLocation" => @s3_content_location,
    "textContent" => @text_content,
    "zipFileContent" => @zip_file_content,
  })
  result.compact
end