Class: AWSCDK::ARCRegionSwitch::CfnPlan::WorkflowProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
arc_region_switch/cfn_plan.rb

Overview

Represents a workflow in a Region switch plan.

A workflow defines a sequence of steps to execute during a Region switch.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(workflow_target_action:, steps: nil, workflow_description: nil, workflow_target_region: nil) ⇒ WorkflowProperty

Returns a new instance of WorkflowProperty.

Parameters:

  • workflow_target_action (String)

    The action that the workflow performs.

  • steps (AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::ARCRegionSwitch::CfnPlan::StepProperty>, nil) (defaults to: nil)

    The steps that make up the workflow.

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

    The description of the workflow.

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

    The AWS Region that the workflow targets.



3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
# File 'arc_region_switch/cfn_plan.rb', line 3209

def initialize(workflow_target_action:, steps: nil, workflow_description: nil, workflow_target_region: nil)
  @workflow_target_action = workflow_target_action
  Jsii::Type.check_type(@workflow_target_action, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "workflowTargetAction")
  @steps = steps
  Jsii::Type.check_type(@steps, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXJjcmVnaW9uc3dpdGNoLkNmblBsYW4uU3RlcFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "steps") unless @steps.nil?
  @workflow_description = workflow_description
  Jsii::Type.check_type(@workflow_description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "workflowDescription") unless @workflow_description.nil?
  @workflow_target_region = workflow_target_region
  Jsii::Type.check_type(@workflow_target_region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "workflowTargetRegion") unless @workflow_target_region.nil?
end

Instance Attribute Details

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

The steps that make up the workflow.



3231
3232
3233
# File 'arc_region_switch/cfn_plan.rb', line 3231

def steps
  @steps
end

#workflow_descriptionString? (readonly)

The description of the workflow.



3236
3237
3238
# File 'arc_region_switch/cfn_plan.rb', line 3236

def workflow_description
  @workflow_description
end

#workflow_target_actionString (readonly)

The action that the workflow performs.

Valid values include ACTIVATE and DEACTIVATE.



3226
3227
3228
# File 'arc_region_switch/cfn_plan.rb', line 3226

def workflow_target_action
  @workflow_target_action
end

#workflow_target_regionString? (readonly)

The AWS Region that the workflow targets.



3241
3242
3243
# File 'arc_region_switch/cfn_plan.rb', line 3241

def workflow_target_region
  @workflow_target_region
end

Class Method Details

.jsii_propertiesObject



3243
3244
3245
3246
3247
3248
3249
3250
# File 'arc_region_switch/cfn_plan.rb', line 3243

def self.jsii_properties
  {
    :workflow_target_action => "workflowTargetAction",
    :steps => "steps",
    :workflow_description => "workflowDescription",
    :workflow_target_region => "workflowTargetRegion",
  }
end

Instance Method Details

#to_jsiiObject



3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
# File 'arc_region_switch/cfn_plan.rb', line 3252

def to_jsii
  result = {}
  result.merge!({
    "workflowTargetAction" => @workflow_target_action,
    "steps" => @steps,
    "workflowDescription" => @workflow_description,
    "workflowTargetRegion" => @workflow_target_region,
  })
  result.compact
end