Class: AWSCDK::ImageBuilder::CfnImage::WorkflowConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
image_builder/cfn_image.rb

Overview

Contains control settings and configurable inputs for a workflow resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(on_failure: nil, parallel_group: nil, parameters: nil, workflow_arn: nil) ⇒ WorkflowConfigurationProperty

Returns a new instance of WorkflowConfigurationProperty.

Parameters:

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

    The action to take if the workflow fails.

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

    Test workflows are defined within named runtime groups called parallel groups.

  • parameters (AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::ImageBuilder::CfnImage::WorkflowParameterProperty>, nil) (defaults to: nil)

    Contains parameter values for each of the parameters that the workflow document defined for the workflow resource.

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

    The Amazon Resource Name (ARN) of the workflow resource.



1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
# File 'image_builder/cfn_image.rb', line 1071

def initialize(on_failure: nil, parallel_group: nil, parameters: nil, workflow_arn: nil)
  @on_failure = on_failure
  Jsii::Type.check_type(@on_failure, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "onFailure") unless @on_failure.nil?
  @parallel_group = parallel_group
  Jsii::Type.check_type(@parallel_group, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "parallelGroup") unless @parallel_group.nil?
  @parameters = parameters
  Jsii::Type.check_type(@parameters, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaW1hZ2VidWlsZGVyLkNmbkltYWdlLldvcmtmbG93UGFyYW1ldGVyUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "parameters") unless @parameters.nil?
  @workflow_arn = workflow_arn
  Jsii::Type.check_type(@workflow_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "workflowArn") unless @workflow_arn.nil?
end

Instance Attribute Details

#on_failureString? (readonly)

The action to take if the workflow fails.



1086
1087
1088
# File 'image_builder/cfn_image.rb', line 1086

def on_failure
  @on_failure
end

#parallel_groupString? (readonly)

Test workflows are defined within named runtime groups called parallel groups.

The parallel group is the named group that contains this test workflow. Test workflows within a parallel group can run at the same time. Image Builder starts up to five test workflows in the group at the same time, and starts additional workflows as others complete, until all workflows in the group have completed. This field only applies for test workflows.



1093
1094
1095
# File 'image_builder/cfn_image.rb', line 1093

def parallel_group
  @parallel_group
end

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

Contains parameter values for each of the parameters that the workflow document defined for the workflow resource.



1098
1099
1100
# File 'image_builder/cfn_image.rb', line 1098

def parameters
  @parameters
end

#workflow_arnString? (readonly)

The Amazon Resource Name (ARN) of the workflow resource.



1103
1104
1105
# File 'image_builder/cfn_image.rb', line 1103

def workflow_arn
  @workflow_arn
end

Class Method Details

.jsii_propertiesObject



1105
1106
1107
1108
1109
1110
1111
1112
# File 'image_builder/cfn_image.rb', line 1105

def self.jsii_properties
  {
    :on_failure => "onFailure",
    :parallel_group => "parallelGroup",
    :parameters => "parameters",
    :workflow_arn => "workflowArn",
  }
end

Instance Method Details

#to_jsiiObject



1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
# File 'image_builder/cfn_image.rb', line 1114

def to_jsii
  result = {}
  result.merge!({
    "onFailure" => @on_failure,
    "parallelGroup" => @parallel_group,
    "parameters" => @parameters,
    "workflowArn" => @workflow_arn,
  })
  result.compact
end