Class: AWSCDK::KinesisAnalytics::CfnApplicationV2::ApplicationCodeConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kinesis_analytics/cfn_application_v2.rb

Overview

Describes code configuration for an application.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code_content:, code_content_type:) ⇒ ApplicationCodeConfigurationProperty

Returns a new instance of ApplicationCodeConfigurationProperty.

Parameters:



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_typeString (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_propertiesObject



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_jsiiObject



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