Class: Aws::Route53RecoveryControlConfig::Types::CreateSafetyRuleRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-route53recoverycontrolconfig/lib/aws-sdk-route53recoverycontrolconfig/types.rb

Overview

Note:

When making an API call, you may pass CreateSafetyRuleRequest data as a hash:

{
  assertion_rule: {
    asserted_controls: ["__string"], # required
    control_panel_arn: "__string", # required
    name: "__stringMin1Max64PatternS", # required
    rule_config: { # required
      inverted: false, # required
      threshold: 1, # required
      type: "ATLEAST", # required, accepts ATLEAST, AND, OR
    },
    wait_period_ms: 1, # required
  },
  client_token: "__stringMax64",
  gating_rule: {
    control_panel_arn: "__string", # required
    gating_controls: ["__string"], # required
    name: "__stringMin1Max64PatternS", # required
    rule_config: { # required
      inverted: false, # required
      threshold: 1, # required
      type: "ATLEAST", # required, accepts ATLEAST, AND, OR
    },
    target_controls: ["__string"], # required
    wait_period_ms: 1, # required
  },
}

Request to create a safety rule. You can create either an assertion rule or a gating rule with a CreateSafetyRuleRequest call.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#assertion_ruleTypes::NewAssertionRule

A new assertion rule for a control panel.



451
452
453
454
455
456
457
# File 'gems/aws-sdk-route53recoverycontrolconfig/lib/aws-sdk-route53recoverycontrolconfig/types.rb', line 451

class CreateSafetyRuleRequest < Struct.new(
  :assertion_rule,
  :client_token,
  :gating_rule)
  SENSITIVE = []
  include Aws::Structure
end

#client_tokenString

Unique client idempotency token.

A suitable default value is auto-generated. You should normally not need to pass this option.

Returns:

  • (String)


451
452
453
454
455
456
457
# File 'gems/aws-sdk-route53recoverycontrolconfig/lib/aws-sdk-route53recoverycontrolconfig/types.rb', line 451

class CreateSafetyRuleRequest < Struct.new(
  :assertion_rule,
  :client_token,
  :gating_rule)
  SENSITIVE = []
  include Aws::Structure
end

#gating_ruleTypes::NewGatingRule

A new gating rule for a control panel.



451
452
453
454
455
456
457
# File 'gems/aws-sdk-route53recoverycontrolconfig/lib/aws-sdk-route53recoverycontrolconfig/types.rb', line 451

class CreateSafetyRuleRequest < Struct.new(
  :assertion_rule,
  :client_token,
  :gating_rule)
  SENSITIVE = []
  include Aws::Structure
end