import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { ListSafetyRulesRequest, ListSafetyRulesResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; /** * @public * * The input for {@link ListSafetyRulesCommand}. */ export interface ListSafetyRulesCommandInput extends ListSafetyRulesRequest { } /** * @public * * The output of {@link ListSafetyRulesCommand}. */ export interface ListSafetyRulesCommandOutput extends ListSafetyRulesResponse, __MetadataBearer { } declare const ListSafetyRulesCommand_base: { new (input: ListSafetyRulesCommandInput): import("@smithy/core/client").CommandImpl; new (input: ListSafetyRulesCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions; }; /** *

List the safety rules (the assertion rules and gating rules) that you've defined for the routing controls in a control panel.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { Route53RecoveryControlConfigClient, ListSafetyRulesCommand } from "@aws-sdk/client-route53-recovery-control-config"; // ES Modules import * // const { Route53RecoveryControlConfigClient, ListSafetyRulesCommand } = require("@aws-sdk/client-route53-recovery-control-config"); // CommonJS import * // import type { Route53RecoveryControlConfigClientConfig } from "@aws-sdk/client-route53-recovery-control-config"; * const config = {}; // type is Route53RecoveryControlConfigClientConfig * const client = new Route53RecoveryControlConfigClient(config); * const input = { // ListSafetyRulesRequest * ControlPanelArn: "STRING_VALUE", // required * MaxResults: Number("int"), * NextToken: "STRING_VALUE", * }; * const command = new ListSafetyRulesCommand(input); * const response = await client.send(command); * // { // ListSafetyRulesResponse * // NextToken: "STRING_VALUE", * // SafetyRules: [ // __listOfRule * // { // Rule * // ASSERTION: { // AssertionRule * // AssertedControls: [ // __listOf__stringMin1Max256PatternAZaZ09 // required * // "STRING_VALUE", * // ], * // ControlPanelArn: "STRING_VALUE", // required * // Name: "STRING_VALUE", // required * // RuleConfig: { // RuleConfig * // Inverted: true || false, // required * // Threshold: Number("int"), // required * // Type: "ATLEAST" || "AND" || "OR", // required * // }, * // SafetyRuleArn: "STRING_VALUE", // required * // Status: "PENDING" || "DEPLOYED" || "PENDING_DELETION", // required * // WaitPeriodMs: Number("int"), // required * // Owner: "STRING_VALUE", * // }, * // GATING: { // GatingRule * // ControlPanelArn: "STRING_VALUE", // required * // GatingControls: [ // required * // "STRING_VALUE", * // ], * // Name: "STRING_VALUE", // required * // RuleConfig: { * // Inverted: true || false, // required * // Threshold: Number("int"), // required * // Type: "ATLEAST" || "AND" || "OR", // required * // }, * // SafetyRuleArn: "STRING_VALUE", // required * // Status: "PENDING" || "DEPLOYED" || "PENDING_DELETION", // required * // TargetControls: [ // required * // "STRING_VALUE", * // ], * // WaitPeriodMs: Number("int"), // required * // Owner: "STRING_VALUE", * // }, * // }, * // ], * // }; * * ``` * * @param ListSafetyRulesCommandInput - {@link ListSafetyRulesCommandInput} * @returns {@link ListSafetyRulesCommandOutput} * @see {@link ListSafetyRulesCommandInput} for command's `input` shape. * @see {@link ListSafetyRulesCommandOutput} for command's `response` shape. * @see {@link Route53RecoveryControlConfigClientResolvedConfig | config} for Route53RecoveryControlConfigClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

403 response - You do not have sufficient access to perform this action.

* * @throws {@link InternalServerException} (server fault) *

500 response - InternalServiceError. Temporary service error. Retry the request.

* * @throws {@link ResourceNotFoundException} (client fault) *

404 response - MalformedQueryString. The query string contains a syntax error or resource not found.

* * @throws {@link ThrottlingException} (client fault) *

429 response - LimitExceededException or TooManyRequestsException.

* * @throws {@link ValidationException} (client fault) *

400 response - Multiple causes. For example, you might have a malformed query string and input parameter might be out of range, or you might have used parameters together incorrectly.

* * @throws {@link Route53RecoveryControlConfigServiceException} *

Base exception class for all service exceptions from Route53RecoveryControlConfig service.

* * * @public */ export declare class ListSafetyRulesCommand extends ListSafetyRulesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: ListSafetyRulesRequest; output: ListSafetyRulesResponse; }; sdk: { input: ListSafetyRulesCommandInput; output: ListSafetyRulesCommandOutput; }; }; }