Class: AWSCDK::KinesisAnalyticsv2::CfnApplication::CodeContentProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KinesisAnalyticsv2::CfnApplication::CodeContentProperty
- 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
-
#s3_content_location ⇒ AWSCDK::IResolvable, ...
readonly
Information about the Amazon S3 bucket that contains the application code.
-
#text_content ⇒ String?
readonly
The text-format code for a Managed Service for Apache Flink application.
-
#zip_file_content ⇒ String?
readonly
The zip-format code for a Managed Service for Apache Flink application.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(s3_content_location: nil, text_content: nil, zip_file_content: nil) ⇒ CodeContentProperty
constructor
A new instance of CodeContentProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(s3_content_location: nil, text_content: nil, zip_file_content: nil) ⇒ CodeContentProperty
Returns a new instance of CodeContentProperty.
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_location ⇒ AWSCDK::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_content ⇒ String? (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_content ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |