Class: AWSCDK::KinesisAnalytics::CfnApplicationV2::ApplicationCodeConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::KinesisAnalytics::CfnApplicationV2::ApplicationCodeConfigurationProperty
- Defined in:
- kinesis_analytics/cfn_application_v2.rb
Overview
Describes code configuration for an application.
Instance Attribute Summary collapse
-
#code_content ⇒ AWSCDK::IResolvable, AWSCDK::KinesisAnalytics::CfnApplicationV2::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.
633 634 635 636 637 638 |
# File 'kinesis_analytics/cfn_application_v2.rb', line 633 def initialize(code_content:, code_content_type:) @code_content = code_content.is_a?(Hash) ? ::AWSCDK::KinesisAnalytics::CfnApplicationV2::CodeContentProperty.new(**code_content.transform_keys(&:to_sym)) : code_content Jsii::Type.check_type(@code_content, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19raW5lc2lzYW5hbHl0aWNzLkNmbkFwcGxpY2F0aW9uVjIuQ29kZUNvbnRlbnRQcm9wZXJ0eSJ9XX19")), "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::KinesisAnalytics::CfnApplicationV2::CodeContentProperty (readonly)
The location and type of the application code.
644 645 646 |
# File 'kinesis_analytics/cfn_application_v2.rb', line 644 def code_content @code_content end |
#code_content_type ⇒ String (readonly)
Specifies whether the code content is in text or zip format.
649 650 651 |
# File 'kinesis_analytics/cfn_application_v2.rb', line 649 def code_content_type @code_content_type end |
Class Method Details
.jsii_properties ⇒ Object
651 652 653 654 655 656 |
# File 'kinesis_analytics/cfn_application_v2.rb', line 651 def self.jsii_properties { :code_content => "codeContent", :code_content_type => "codeContentType", } end |
Instance Method Details
#to_jsii ⇒ Object
658 659 660 661 662 663 664 665 |
# File 'kinesis_analytics/cfn_application_v2.rb', line 658 def to_jsii result = {} result.merge!({ "codeContent" => @code_content, "codeContentType" => @code_content_type, }) result.compact end |