Class: AWSCDK::AppStream::CfnAppBlock::ScriptDetailsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppStream::CfnAppBlock::ScriptDetailsProperty
- Defined in:
- app_stream/cfn_app_block.rb
Overview
The details of the script.
Instance Attribute Summary collapse
-
#executable_parameters ⇒ String?
readonly
The parameters used in the run path for the script.
-
#executable_path ⇒ String
readonly
The run path for the script.
-
#script_s3_location ⇒ AWSCDK::IResolvable, AWSCDK::AppStream::CfnAppBlock::S3LocationProperty
readonly
The S3 object location of the script.
-
#timeout_in_seconds ⇒ Numeric
readonly
The run timeout, in seconds, for the script.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(executable_path:, script_s3_location:, timeout_in_seconds:, executable_parameters: nil) ⇒ ScriptDetailsProperty
constructor
A new instance of ScriptDetailsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(executable_path:, script_s3_location:, timeout_in_seconds:, executable_parameters: nil) ⇒ ScriptDetailsProperty
Returns a new instance of ScriptDetailsProperty.
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_parameters ⇒ String? (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_path ⇒ String (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_location ⇒ AWSCDK::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_seconds ⇒ Numeric (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_properties ⇒ Object
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_jsii ⇒ Object
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 |