Class: AWSCDK::KinesisAnalyticsv2::CfnApplication::ApplicationCodeConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
kinesis_analyticsv2/cfn_application.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:



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



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_jsiiObject



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