Class: AWSCDK::Apptest::CfnTestCase::InputFileProperty

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

Overview

Specifies the input file.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_metadata:, source_location:, target_location:) ⇒ InputFileProperty

Returns a new instance of InputFileProperty.

Parameters:



929
930
931
932
933
934
935
936
# File 'apptest/cfn_test_case.rb', line 929

def initialize(file_metadata:, source_location:, target_location:)
  @file_metadata = .is_a?(Hash) ? ::AWSCDK::Apptest::CfnTestCase::FileMetadataProperty.new(**.transform_keys(&:to_sym)) : 
  Jsii::Type.check_type(@file_metadata, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHB0ZXN0LkNmblRlc3RDYXNlLkZpbGVNZXRhZGF0YVByb3BlcnR5In1dfX0=")), "fileMetadata")
  @source_location = source_location
  Jsii::Type.check_type(@source_location, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "sourceLocation")
  @target_location = target_location
  Jsii::Type.check_type(@target_location, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetLocation")
end

Instance Attribute Details

#source_locationString (readonly)

The source location of the input file.



947
948
949
# File 'apptest/cfn_test_case.rb', line 947

def source_location
  @source_location
end

#target_locationString (readonly)

The target location of the input file.



952
953
954
# File 'apptest/cfn_test_case.rb', line 952

def target_location
  @target_location
end

Class Method Details

.jsii_propertiesObject



954
955
956
957
958
959
960
# File 'apptest/cfn_test_case.rb', line 954

def self.jsii_properties
  {
    :file_metadata => "fileMetadata",
    :source_location => "sourceLocation",
    :target_location => "targetLocation",
  }
end

Instance Method Details

#to_jsiiObject



962
963
964
965
966
967
968
969
970
# File 'apptest/cfn_test_case.rb', line 962

def to_jsii
  result = {}
  result.merge!({
    "fileMetadata" => @file_metadata,
    "sourceLocation" => @source_location,
    "targetLocation" => @target_location,
  })
  result.compact
end