Class CfnSafetyLever

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ISafetyLeverRef, IEnvironmentAware, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)", date="2026-08-10T14:51:04.032Z") @Stability(Stable) public class CfnSafetyLever extends CfnResource implements IInspectable, ISafetyLeverRef
Represents the AWS FIS account-level safety lever.

This is a singleton resource (one per account per region) that controls whether FIS experiments are allowed to run.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.fis.*;
 CfnSafetyLever cfnSafetyLever = CfnSafetyLever.Builder.create(this, "MyCfnSafetyLever")
         .id("id")
         .build();
 

See Also:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnSafetyLever

      protected CfnSafetyLever(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnSafetyLever

      protected CfnSafetyLever(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnSafetyLever

      @Stability(Stable) public CfnSafetyLever(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnSafetyLeverProps props)
      Create a new AWS::FIS::SafetyLever.

      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
      props - Resource properties.
    • CfnSafetyLever

      @Stability(Stable) public CfnSafetyLever(@NotNull software.constructs.Construct scope, @NotNull String id)
      Create a new AWS::FIS::SafetyLever.

      Parameters:
      scope - Scope in which this resource is defined. This parameter is required.
      id - Construct identifier for this resource (unique in its scope). This parameter is required.
  • Method Details

    • arnForSafetyLever

      @Stability(Stable) @NotNull public static String arnForSafetyLever(@NotNull ISafetyLeverRef resource)
      Parameters:
      resource - This parameter is required.
    • isCfnSafetyLever

      @Stability(Stable) @NotNull public static Boolean isCfnSafetyLever(@NotNull Object x)
      Checks whether the given object is a CfnSafetyLever.

      Parameters:
      x - This parameter is required.
    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the safety lever.
    • getAttrReason

      @Stability(Stable) @NotNull public String getAttrReason()
      The reason for the current state of the safety lever.
    • getAttrStatus

      @Stability(Stable) @NotNull public String getAttrStatus()
      The status of the safety lever.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getCfnPropertyNames

      @Stability(Stable) @NotNull protected Map<String,String> getCfnPropertyNames()
      Overrides:
      getCfnPropertyNames in class CfnResource
    • getSafetyLeverRef

      @Stability(Stable) @NotNull public SafetyLeverReference getSafetyLeverRef()
      A reference to a SafetyLever resource.
      Specified by:
      getSafetyLeverRef in interface ISafetyLeverRef
    • getId

      @Stability(Stable) @Nullable public String getId()
      The ID of the safety lever.
    • setId

      @Stability(Stable) public void setId(@Nullable String value)
      The ID of the safety lever.