Class: AWSCDK::KinesisAnalyticsv2::CfnApplication::ApplicationCodeConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KinesisAnalyticsv2::CfnApplication::ApplicationCodeConfigurationProperty
- Defined in:
- kinesis_analyticsv2/cfn_application.rb
Overview
Describes code configuration for an application.
Instance Attribute Summary collapse
-
#code_content ⇒ AWSCDK::IResolvable, AWSCDK::KinesisAnalyticsv2::CfnApplication::CodeContentProperty
readonly
The location and type of the application code.
-
#code_content_type ⇒ String
readonly
Specifies whether the code content is in text or zip format.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(code_content:, code_content_type:) ⇒ ApplicationCodeConfigurationProperty
constructor
A new instance of ApplicationCodeConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(code_content:, code_content_type:) ⇒ ApplicationCodeConfigurationProperty
Returns a new instance of ApplicationCodeConfigurationProperty.
632 633 634 635 636 637 |
# File 'kinesis_analyticsv2/cfn_application.rb', line 632 def initialize(code_content:, code_content_type:) @code_content = code_content.is_a?(Hash) ? ::AWSCDK::KinesisAnalyticsv2::CfnApplication::CodeContentProperty.new(**code_content.transform_keys(&:to_sym)) : code_content Jsii::Type.check_type(@code_content, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19raW5lc2lzYW5hbHl0aWNzdjIuQ2ZuQXBwbGljYXRpb24uQ29kZUNvbnRlbnRQcm9wZXJ0eSJ9XX19")), "codeContent") @code_content_type = code_content_type Jsii::Type.check_type(@code_content_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "codeContentType") end |
Instance Attribute Details
#code_content ⇒ AWSCDK::IResolvable, AWSCDK::KinesisAnalyticsv2::CfnApplication::CodeContentProperty (readonly)
The location and type of the application code.
643 644 645 |
# File 'kinesis_analyticsv2/cfn_application.rb', line 643 def code_content @code_content end |
#code_content_type ⇒ String (readonly)
Specifies whether the code content is in text or zip format.
648 649 650 |
# File 'kinesis_analyticsv2/cfn_application.rb', line 648 def code_content_type @code_content_type end |
Class Method Details
.jsii_properties ⇒ Object
650 651 652 653 654 655 |
# File 'kinesis_analyticsv2/cfn_application.rb', line 650 def self.jsii_properties { :code_content => "codeContent", :code_content_type => "codeContentType", } end |
Instance Method Details
#to_jsii ⇒ Object
657 658 659 660 661 662 663 664 |
# File 'kinesis_analyticsv2/cfn_application.rb', line 657 def to_jsii result = {} result.merge!({ "codeContent" => @code_content, "codeContentType" => @code_content_type, }) result.compact end |