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: ["__stringMin1Max256PatternAZaZ09"], # required
    control_panel_arn: "__stringMin1Max256PatternAZaZ09", # 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: "__stringMin1Max64PatternS",
  gating_rule: {
    control_panel_arn: "__stringMin1Max256PatternAZaZ09", # required
    gating_controls: ["__stringMin1Max256PatternAZaZ09"], # required
    name: "__stringMin1Max64PatternS", # required
    rule_config: { # required
      inverted: false, # required
      threshold: 1, # required
      type: "ATLEAST", # required, accepts ATLEAST, AND, OR
    },
    target_controls: ["__stringMin1Max256PatternAZaZ09"], # required
    wait_period_ms: 1, # required
  },
  tags: {
    "__string" => "__stringMin0Max256PatternS",
  },
}

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

The assertion rule requested.



487
488
489
490
491
492
493
494
# File 'gems/aws-sdk-route53recoverycontrolconfig/lib/aws-sdk-route53recoverycontrolconfig/types.rb', line 487

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

#client_tokenString

A unique, case-sensitive string of up to 64 ASCII characters. To make an idempotent API request with an action, specify a client token in the request.

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

Returns:

  • (String)


487
488
489
490
491
492
493
494
# File 'gems/aws-sdk-route53recoverycontrolconfig/lib/aws-sdk-route53recoverycontrolconfig/types.rb', line 487

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

#gating_ruleTypes::NewGatingRule

The gating rule requested.



487
488
489
490
491
492
493
494
# File 'gems/aws-sdk-route53recoverycontrolconfig/lib/aws-sdk-route53recoverycontrolconfig/types.rb', line 487

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

#tagsHash<String,String>

The tags associated with the safety rule.

Returns:

  • (Hash<String,String>)


487
488
489
490
491
492
493
494
# File 'gems/aws-sdk-route53recoverycontrolconfig/lib/aws-sdk-route53recoverycontrolconfig/types.rb', line 487

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