Class: AWSCDK::KinesisAnalytics::CfnApplicationV2::CodeContentProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KinesisAnalytics::CfnApplicationV2::CodeContentProperty
- Defined in:
- kinesis_analytics/cfn_application_v2.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.
1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'kinesis_analytics/cfn_application_v2.rb', line 1150 def initialize(s3_content_location: nil, text_content: nil, zip_file_content: nil) @s3_content_location = s3_content_location.is_a?(Hash) ? ::AWSCDK::KinesisAnalytics::CfnApplicationV2::S3ContentLocationProperty.new(**s3_content_location.transform_keys(&:to_sym)) : s3_content_location Jsii::Type.check_type(@s3_content_location, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19raW5lc2lzYW5hbHl0aWNzLkNmbkFwcGxpY2F0aW9uVjIuUzNDb250ZW50TG9jYXRpb25Qcm9wZXJ0eSJ9XX19")), "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.
1163 1164 1165 |
# File 'kinesis_analytics/cfn_application_v2.rb', line 1163 def s3_content_location @s3_content_location end |
#text_content ⇒ String? (readonly)
The text-format code for a Managed Service for Apache Flink application.
1168 1169 1170 |
# File 'kinesis_analytics/cfn_application_v2.rb', line 1168 def text_content @text_content end |
#zip_file_content ⇒ String? (readonly)
The zip-format code for a Managed Service for Apache Flink application.
1173 1174 1175 |
# File 'kinesis_analytics/cfn_application_v2.rb', line 1173 def zip_file_content @zip_file_content end |
Class Method Details
.jsii_properties ⇒ Object
1175 1176 1177 1178 1179 1180 1181 |
# File 'kinesis_analytics/cfn_application_v2.rb', line 1175 def self.jsii_properties { :s3_content_location => "s3ContentLocation", :text_content => "textContent", :zip_file_content => "zipFileContent", } end |
Instance Method Details
#to_jsii ⇒ Object
1183 1184 1185 1186 1187 1188 1189 1190 1191 |
# File 'kinesis_analytics/cfn_application_v2.rb', line 1183 def to_jsii result = {} result.merge!({ "s3ContentLocation" => @s3_content_location, "textContent" => @text_content, "zipFileContent" => @zip_file_content, }) result.compact end |