import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages the state of the AWS FIS (Fault Injection Simulator) safety lever for the account and Region. The safety lever is a single, account/Region-wide emergency stop: engaging it immediately stops all running experiments and blocks new ones from starting. * * There is exactly one safety lever per account and Region, and it always exists — AWS does not provide APIs to create or delete it. Because of this, deleting this resource only removes it from Terraform state; it does not change the live value in AWS, so it never risks silently disengaging a safety control. * * > **Note:** AWS rejects a `reason` change unless `status` is also actually transitioning (for example, `engaged` to `disengaged`). Creating or updating this resource with a `status` that already matches the live safety lever succeeds only if the configured `reason` also matches the live `reason`; otherwise it fails at apply time. Pair a `reason` change with an actual `status` change. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.fis.SafetyLeverState("example", {state: { * status: "disengaged", * reason: "Managed by Pulumi", * }}); * ``` * * ## Import * * ### Identity Schema * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * `region` (String) Region where this resource is managed. * * Using `pulumi import`, import the FIS safety lever state using the Region. For example: * * ```sh * $ pulumi import aws:fis/safetyLeverState:SafetyLeverState example us-west-2 * ``` */ export declare class SafetyLeverState extends pulumi.CustomResource { /** * Get an existing SafetyLeverState resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: SafetyLeverStateState, opts?: pulumi.CustomResourceOptions): SafetyLeverState; /** * Returns true if the given object is an instance of SafetyLeverState. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is SafetyLeverState; /** * ARN of the safety lever. */ readonly arn: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * State of the safety lever. See below. * * The following arguments are optional: */ readonly state: pulumi.Output; readonly timeouts: pulumi.Output; /** * Create a SafetyLeverState resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: SafetyLeverStateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SafetyLeverState resources. */ export interface SafetyLeverStateState { /** * ARN of the safety lever. */ arn?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * State of the safety lever. See below. * * The following arguments are optional: */ state?: pulumi.Input; timeouts?: pulumi.Input; } /** * The set of arguments for constructing a SafetyLeverState resource. */ export interface SafetyLeverStateArgs { /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * State of the safety lever. See below. * * The following arguments are optional: */ state?: pulumi.Input; timeouts?: pulumi.Input; } //# sourceMappingURL=safetyLeverState.d.ts.map