Class CfnSqlHaStandbyDetectedInstance

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.ec2.CfnSqlHaStandbyDetectedInstance
All Implemented Interfaces:
IInspectable, ISqlHaStandbyDetectedInstanceRef, IEnvironmentAware, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)", date="2026-04-02T09:31:39.594Z") @Stability(Stable) public class CfnSqlHaStandbyDetectedInstance extends CfnResource implements IInspectable, ISqlHaStandbyDetectedInstanceRef
Resource Type definition for AWS::EC2::SqlHaStandbyDetectedInstance.

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.ec2.*;
 CfnSqlHaStandbyDetectedInstance cfnSqlHaStandbyDetectedInstance = CfnSqlHaStandbyDetectedInstance.Builder.create(this, "MyCfnSqlHaStandbyDetectedInstance")
         .instanceId("instanceId")
         // the properties below are optional
         .sqlServerCredentials("sqlServerCredentials")
         .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

    • CfnSqlHaStandbyDetectedInstance

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

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

      @Stability(Stable) public CfnSqlHaStandbyDetectedInstance(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnSqlHaStandbyDetectedInstanceProps props)
      Create a new AWS::EC2::SqlHaStandbyDetectedInstance.

      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. This parameter is required.
  • Method Details

    • isCfnSqlHaStandbyDetectedInstance

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

      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.
    • getAttrHaStatus

      @Stability(Stable) @NotNull public String getAttrHaStatus()
      The SQL Server high availability status of the EC2 instance.
    • getAttrLastUpdatedTime

      @Stability(Stable) @NotNull public String getAttrLastUpdatedTime()
      The timestamp when the EC2 instance's SQL Server high availability status was last updated.
    • getAttrSqlServerLicenseUsage

      @Stability(Stable) @NotNull public String getAttrSqlServerLicenseUsage()
      The SQL Server license type of the EC2 instance.
    • getCfnProperties

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

      @Stability(Stable) @NotNull public SqlHaStandbyDetectedInstanceReference getSqlHaStandbyDetectedInstanceRef()
      A reference to a SqlHaStandbyDetectedInstance resource.
      Specified by:
      getSqlHaStandbyDetectedInstanceRef in interface ISqlHaStandbyDetectedInstanceRef
    • getInstanceId

      @Stability(Stable) @NotNull public String getInstanceId()
      The ID of the EC2 instance to enable for SQL Server high availability standby detection.
    • setInstanceId

      @Stability(Stable) public void setInstanceId(@NotNull String value)
      The ID of the EC2 instance to enable for SQL Server high availability standby detection.
    • getSqlServerCredentials

      @Stability(Stable) @Nullable public String getSqlServerCredentials()
      The ARN of the AWS Secrets Manager secret containing SQL Server access credentials to the EC2 instance.
    • setSqlServerCredentials

      @Stability(Stable) public void setSqlServerCredentials(@Nullable String value)
      The ARN of the AWS Secrets Manager secret containing SQL Server access credentials to the EC2 instance.