Class: AWSCDK::AppStream::CfnAppBlock::ScriptDetailsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_stream/cfn_app_block.rb

Overview

The details of the script.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(executable_path:, script_s3_location:, timeout_in_seconds:, executable_parameters: nil) ⇒ ScriptDetailsProperty

Returns a new instance of ScriptDetailsProperty.

Parameters:

  • executable_path (String)

    The run path for the script.

  • script_s3_location (AWSCDK::IResolvable, AWSCDK::AppStream::CfnAppBlock::S3LocationProperty)

    The S3 object location of the script.

  • timeout_in_seconds (Numeric)

    The run timeout, in seconds, for the script.

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

    The parameters used in the run path for the script.



669
670
671
672
673
674
675
676
677
678
# File 'app_stream/cfn_app_block.rb', line 669

def initialize(executable_path:, script_s3_location:, timeout_in_seconds:, executable_parameters: nil)
  @executable_path = executable_path
  Jsii::Type.check_type(@executable_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "executablePath")
  @script_s3_location = script_s3_location.is_a?(Hash) ? ::AWSCDK::AppStream::CfnAppBlock::S3LocationProperty.new(**script_s3_location.transform_keys(&:to_sym)) : script_s3_location
  Jsii::Type.check_type(@script_s3_location, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcHBzdHJlYW0uQ2ZuQXBwQmxvY2suUzNMb2NhdGlvblByb3BlcnR5In1dfX0=")), "scriptS3Location")
  @timeout_in_seconds = timeout_in_seconds
  Jsii::Type.check_type(@timeout_in_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "timeoutInSeconds")
  @executable_parameters = executable_parameters
  Jsii::Type.check_type(@executable_parameters, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "executableParameters") unless @executable_parameters.nil?
end

Instance Attribute Details

#executable_parametersString? (readonly)

The parameters used in the run path for the script.



699
700
701
# File 'app_stream/cfn_app_block.rb', line 699

def executable_parameters
  @executable_parameters
end

#executable_pathString (readonly)

The run path for the script.



684
685
686
# File 'app_stream/cfn_app_block.rb', line 684

def executable_path
  @executable_path
end

#script_s3_locationAWSCDK::IResolvable, AWSCDK::AppStream::CfnAppBlock::S3LocationProperty (readonly)

The S3 object location of the script.



689
690
691
# File 'app_stream/cfn_app_block.rb', line 689

def script_s3_location
  @script_s3_location
end

#timeout_in_secondsNumeric (readonly)

The run timeout, in seconds, for the script.



694
695
696
# File 'app_stream/cfn_app_block.rb', line 694

def timeout_in_seconds
  @timeout_in_seconds
end

Class Method Details

.jsii_propertiesObject



701
702
703
704
705
706
707
708
# File 'app_stream/cfn_app_block.rb', line 701

def self.jsii_properties
  {
    :executable_path => "executablePath",
    :script_s3_location => "scriptS3Location",
    :timeout_in_seconds => "timeoutInSeconds",
    :executable_parameters => "executableParameters",
  }
end

Instance Method Details

#to_jsiiObject



710
711
712
713
714
715
716
717
718
719
# File 'app_stream/cfn_app_block.rb', line 710

def to_jsii
  result = {}
  result.merge!({
    "executablePath" => @executable_path,
    "scriptS3Location" => @script_s3_location,
    "timeoutInSeconds" => @timeout_in_seconds,
    "executableParameters" => @executable_parameters,
  })
  result.compact
end