Class: AWSCDK::M2::CfnApplication::DefinitionProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
m2/cfn_application.rb

Overview

The application definition for a particular application.

You can specify either inline JSON or an Amazon S3 bucket location.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content: nil, s3_location: nil) ⇒ DefinitionProperty

Returns a new instance of DefinitionProperty.

Parameters:

  • content (String, nil) (defaults to: nil)

    The content of the application definition.

  • s3_location (String, nil) (defaults to: nil)

    The S3 bucket that contains the application definition.



610
611
612
613
614
615
# File 'm2/cfn_application.rb', line 610

def initialize(content: nil, s3_location: nil)
  @content = content
  Jsii::Type.check_type(@content, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "content") unless @content.nil?
  @s3_location = s3_location
  Jsii::Type.check_type(@s3_location, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "s3Location") unless @s3_location.nil?
end

Instance Attribute Details

#contentString? (readonly)

The content of the application definition.

This is a JSON object that contains the resource configuration/definitions that identify an application.



623
624
625
# File 'm2/cfn_application.rb', line 623

def content
  @content
end

#s3_locationString? (readonly)

The S3 bucket that contains the application definition.



628
629
630
# File 'm2/cfn_application.rb', line 628

def s3_location
  @s3_location
end

Class Method Details

.jsii_propertiesObject



630
631
632
633
634
635
# File 'm2/cfn_application.rb', line 630

def self.jsii_properties
  {
    :content => "content",
    :s3_location => "s3Location",
  }
end

Instance Method Details

#to_jsiiObject



637
638
639
640
641
642
643
644
# File 'm2/cfn_application.rb', line 637

def to_jsii
  result = {}
  result.merge!({
    "content" => @content,
    "s3Location" => @s3_location,
  })
  result.compact
end