@Override
    public CreateSafetyRuleResult createSafetyRule(CreateSafetyRuleRequest request) {
        request = beforeClientExecution(request);
        return executeCreateSafetyRule(request);
    }
<p>
Creates a safety rule in a control panel. Safety rules let you add safeguards around changing routing control
states, and for enabling and disabling routing controls, to help prevent unexpected outcomes.
</p>
<p>
There are two types of safety rules: assertion rules and gating rules.
</p>
<p>
Assertion rule: An assertion rule enforces that, when you change a routing control state, that a certain criteria
is met. For example, the criteria might be that at least one routing control state is On after the transaction so
that traffic continues to flow to at least one cell for the application. This ensures that you avoid a fail-open
scenario.
</p>
<p>
Gating rule: A gating rule lets you configure a gating routing control as an overall "on/off" switch for a group
of routing controls. Or, you can configure more complex gating scenarios, for example by configuring multiple
gating routing controls.
</p>
<p>
For more information, see <a
href="https://docs.aws.amazon.com/r53recovery/latest/dg/routing-control.safety-rules.html">Safety rules</a> in
the Amazon Route 53 Application Recovery Controller Developer Guide.
</p>

@param createSafetyRuleRequest
       The request body that you include when you create a safety rule.
@return Result of the CreateSafetyRule operation returned by the service.
@throws ValidationException
        400 response - Multiple causes. For example, you might have a malformed query string and input parameter
        might be out of range, or you used parameters together incorrectly.
@throws InternalServerException
        500 response - InternalServiceError. Temporary service error. Retry the request.
@sample AWSRoute53RecoveryControlConfig.CreateSafetyRule
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/route53-recovery-control-config-2020-11-02/CreateSafetyRule"
     target="_top">AWS API Documentation</a>
aws-java-sdk-route53recoverycontrolconfig/src/main/java/com/amazonaws/services/route53recoverycontrolconfig/AWSRoute53RecoveryControlConfigClient.java