Class: AWSCDK::Apptest::CfnTestCase::ScriptProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
apptest/cfn_test_case.rb

Overview

Specifies the script.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(script_location:, type:) ⇒ ScriptProperty

Returns a new instance of ScriptProperty.

Parameters:

  • script_location (String)

    The script location of the scripts.

  • type (String)

    The type of the scripts.



1401
1402
1403
1404
1405
1406
# File 'apptest/cfn_test_case.rb', line 1401

def initialize(script_location:, type:)
  @script_location = script_location
  Jsii::Type.check_type(@script_location, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "scriptLocation")
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
end

Instance Attribute Details

#script_locationString (readonly)

The script location of the scripts.



1412
1413
1414
# File 'apptest/cfn_test_case.rb', line 1412

def script_location
  @script_location
end

#typeString (readonly)

The type of the scripts.



1417
1418
1419
# File 'apptest/cfn_test_case.rb', line 1417

def type
  @type
end

Class Method Details

.jsii_propertiesObject



1419
1420
1421
1422
1423
1424
# File 'apptest/cfn_test_case.rb', line 1419

def self.jsii_properties
  {
    :script_location => "scriptLocation",
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



1426
1427
1428
1429
1430
1431
1432
1433
# File 'apptest/cfn_test_case.rb', line 1426

def to_jsii
  result = {}
  result.merge!({
    "scriptLocation" => @script_location,
    "type" => @type,
  })
  result.compact
end