libZSservicesZSamazonka-route53-recovery-control-configZSamazonka-route53-recovery-control-config
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Route53RecoveryControlConfig.CreateSafetyRule

Description

Creates a safety rule in a control panel. Safety rules let you add safeguards around enabling and disabling routing controls, to help prevent unexpected outcomes.

There are two types of safety rules: assertion rules and gating rules.

Assertion rule: An assertion rule enforces that, when a routing control state is changed, the criteria set by the rule configuration is met. Otherwise, the change to the routing control is not accepted.

Gating rule: A gating rule verifies that a set of gating controls evaluates as true, based on a rule configuration that you specify. If the gating rule evaluates to true, Amazon Route 53 Application Recovery Controller allows a set of routing control state changes to run and complete against the set of target controls.

Synopsis

Creating a Request

data CreateSafetyRule Source #

The request body that you include when you create a safety rule.

See: newCreateSafetyRule smart constructor.

Constructors

CreateSafetyRule' 

Fields

Instances

Instances details
Eq CreateSafetyRule Source # 
Instance details

Defined in Amazonka.Route53RecoveryControlConfig.CreateSafetyRule

Read CreateSafetyRule Source # 
Instance details

Defined in Amazonka.Route53RecoveryControlConfig.CreateSafetyRule

Show CreateSafetyRule Source # 
Instance details

Defined in Amazonka.Route53RecoveryControlConfig.CreateSafetyRule

Generic CreateSafetyRule Source # 
Instance details

Defined in Amazonka.Route53RecoveryControlConfig.CreateSafetyRule

Associated Types

type Rep CreateSafetyRule :: Type -> Type #

NFData CreateSafetyRule Source # 
Instance details

Defined in Amazonka.Route53RecoveryControlConfig.CreateSafetyRule

Methods

rnf :: CreateSafetyRule -> () #

Hashable CreateSafetyRule Source # 
Instance details

Defined in Amazonka.Route53RecoveryControlConfig.CreateSafetyRule

ToJSON CreateSafetyRule Source # 
Instance details

Defined in Amazonka.Route53RecoveryControlConfig.CreateSafetyRule

AWSRequest CreateSafetyRule Source # 
Instance details

Defined in Amazonka.Route53RecoveryControlConfig.CreateSafetyRule

Associated Types

type AWSResponse CreateSafetyRule #

ToHeaders CreateSafetyRule Source # 
Instance details

Defined in Amazonka.Route53RecoveryControlConfig.CreateSafetyRule

ToPath CreateSafetyRule Source # 
Instance details

Defined in Amazonka.Route53RecoveryControlConfig.CreateSafetyRule

ToQuery CreateSafetyRule Source # 
Instance details

Defined in Amazonka.Route53RecoveryControlConfig.CreateSafetyRule

type Rep CreateSafetyRule Source # 
Instance details

Defined in Amazonka.Route53RecoveryControlConfig.CreateSafetyRule

type Rep CreateSafetyRule = D1 ('MetaData "CreateSafetyRule" "Amazonka.Route53RecoveryControlConfig.CreateSafetyRule" "libZSservicesZSamazonka-route53-recovery-control-configZSamazonka-route53-recovery-control-config" 'False) (C1 ('MetaCons "CreateSafetyRule'" 'PrefixI 'True) (S1 ('MetaSel ('Just "assertionRule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NewAssertionRule)) :*: (S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "gatingRule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NewGatingRule)))))
type AWSResponse CreateSafetyRule Source # 
Instance details

Defined in Amazonka.Route53RecoveryControlConfig.CreateSafetyRule

newCreateSafetyRule :: CreateSafetyRule Source #

Create a value of CreateSafetyRule with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:assertionRule:CreateSafetyRule', createSafetyRule_assertionRule - Undocumented member.

$sel:clientToken:CreateSafetyRule', createSafetyRule_clientToken - Unique client idempotency token.

$sel:gatingRule:CreateSafetyRule', createSafetyRule_gatingRule - Undocumented member.

Request Lenses

Destructuring the Response

data CreateSafetyRuleResponse Source #

See: newCreateSafetyRuleResponse smart constructor.

Constructors

CreateSafetyRuleResponse' 

Fields

Instances

Instances details
Eq CreateSafetyRuleResponse Source # 
Instance details

Defined in Amazonka.Route53RecoveryControlConfig.CreateSafetyRule

Read CreateSafetyRuleResponse Source # 
Instance details

Defined in Amazonka.Route53RecoveryControlConfig.CreateSafetyRule

Show CreateSafetyRuleResponse Source # 
Instance details

Defined in Amazonka.Route53RecoveryControlConfig.CreateSafetyRule

Generic CreateSafetyRuleResponse Source # 
Instance details

Defined in Amazonka.Route53RecoveryControlConfig.CreateSafetyRule

Associated Types

type Rep CreateSafetyRuleResponse :: Type -> Type #

NFData CreateSafetyRuleResponse Source # 
Instance details

Defined in Amazonka.Route53RecoveryControlConfig.CreateSafetyRule

type Rep CreateSafetyRuleResponse Source # 
Instance details

Defined in Amazonka.Route53RecoveryControlConfig.CreateSafetyRule

type Rep CreateSafetyRuleResponse = D1 ('MetaData "CreateSafetyRuleResponse" "Amazonka.Route53RecoveryControlConfig.CreateSafetyRule" "libZSservicesZSamazonka-route53-recovery-control-configZSamazonka-route53-recovery-control-config" 'False) (C1 ('MetaCons "CreateSafetyRuleResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "assertionRule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AssertionRule)) :*: (S1 ('MetaSel ('Just "gatingRule") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe GatingRule)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateSafetyRuleResponse Source #

Create a value of CreateSafetyRuleResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:assertionRule:CreateSafetyRule', createSafetyRuleResponse_assertionRule - Undocumented member.

$sel:gatingRule:CreateSafetyRule', createSafetyRuleResponse_gatingRule - Undocumented member.

$sel:httpStatus:CreateSafetyRuleResponse', createSafetyRuleResponse_httpStatus - The response's http status code.

Response Lenses