Class: AWSCDK::Apptest::CfnTestCase::InputFileProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Apptest::CfnTestCase::InputFileProperty
- Defined in:
- apptest/cfn_test_case.rb
Overview
Specifies the input file.
Instance Attribute Summary collapse
-
#file_metadata ⇒ AWSCDK::IResolvable, AWSCDK::Apptest::CfnTestCase::FileMetadataProperty
readonly
The file metadata of the input file.
-
#source_location ⇒ String
readonly
The source location of the input file.
-
#target_location ⇒ String
readonly
The target location of the input file.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(file_metadata:, source_location:, target_location:) ⇒ InputFileProperty
constructor
A new instance of InputFileProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(file_metadata:, source_location:, target_location:) ⇒ InputFileProperty
Returns a new instance of InputFileProperty.
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
#file_metadata ⇒ AWSCDK::IResolvable, AWSCDK::Apptest::CfnTestCase::FileMetadataProperty (readonly)
The file metadata of the input file.
942 943 944 |
# File 'apptest/cfn_test_case.rb', line 942 def @file_metadata end |
#source_location ⇒ String (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_location ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |