Class: AWSCDK::Apptest::CfnTestCase::BatchProperty

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

Overview

Defines a batch.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(batch_job_name:, batch_job_parameters: nil, export_data_set_names: nil) ⇒ BatchProperty

Returns a new instance of BatchProperty.

Parameters:

  • batch_job_name (String)

    The job name of the batch.

  • batch_job_parameters (AWSCDK::IResolvable, Hash{String => String}, nil) (defaults to: nil)

    The batch job parameters of the batch.

  • export_data_set_names (Array<String>, nil) (defaults to: nil)

    The export data set names of the batch.



631
632
633
634
635
636
637
638
# File 'apptest/cfn_test_case.rb', line 631

def initialize(batch_job_name:, batch_job_parameters: nil, export_data_set_names: nil)
  @batch_job_name = batch_job_name
  Jsii::Type.check_type(@batch_job_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "batchJobName")
  @batch_job_parameters = batch_job_parameters
  Jsii::Type.check_type(@batch_job_parameters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsicHJpbWl0aXZlIjoic3RyaW5nIn0sImtpbmQiOiJtYXAifX1dfX0=")), "batchJobParameters") unless @batch_job_parameters.nil?
  @export_data_set_names = export_data_set_names
  Jsii::Type.check_type(@export_data_set_names, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "exportDataSetNames") unless @export_data_set_names.nil?
end

Instance Attribute Details

#batch_job_nameString (readonly)

The job name of the batch.



644
645
646
# File 'apptest/cfn_test_case.rb', line 644

def batch_job_name
  @batch_job_name
end

#batch_job_parametersAWSCDK::IResolvable, ... (readonly)

The batch job parameters of the batch.



649
650
651
# File 'apptest/cfn_test_case.rb', line 649

def batch_job_parameters
  @batch_job_parameters
end

#export_data_set_namesArray<String>? (readonly)

The export data set names of the batch.



654
655
656
# File 'apptest/cfn_test_case.rb', line 654

def export_data_set_names
  @export_data_set_names
end

Class Method Details

.jsii_propertiesObject



656
657
658
659
660
661
662
# File 'apptest/cfn_test_case.rb', line 656

def self.jsii_properties
  {
    :batch_job_name => "batchJobName",
    :batch_job_parameters => "batchJobParameters",
    :export_data_set_names => "exportDataSetNames",
  }
end

Instance Method Details

#to_jsiiObject



664
665
666
667
668
669
670
671
672
# File 'apptest/cfn_test_case.rb', line 664

def to_jsii
  result = {}
  result.merge!({
    "batchJobName" => @batch_job_name,
    "batchJobParameters" => @batch_job_parameters,
    "exportDataSetNames" => @export_data_set_names,
  })
  result.compact
end