Class CfnSqlHaStandbyDetectedInstance.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnSqlHaStandbyDetectedInstance.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnSqlHaStandbyDetectedInstance>
- Enclosing class:
CfnSqlHaStandbyDetectedInstance
@Stability(Stable)
public static final class CfnSqlHaStandbyDetectedInstance.Builder
extends Object
implements software.amazon.jsii.Builder<CfnSqlHaStandbyDetectedInstance>
A fluent builder for
CfnSqlHaStandbyDetectedInstance.-
Method Summary
Modifier and TypeMethodDescriptionbuild()instanceId(String instanceId) The ID of the EC2 instance to enable for SQL Server high availability standby detection.sqlServerCredentials(String sqlServerCredentials) The ARN of the AWS Secrets Manager secret containing SQL Server access credentials to the EC2 instance.
-
Method Details
-
create
@Stability(Stable) public static CfnSqlHaStandbyDetectedInstance.Builder create(software.constructs.Construct scope, String id) - 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.- Returns:
- a new instance of
CfnSqlHaStandbyDetectedInstance.Builder.
-
instanceId
The ID of the EC2 instance to enable for SQL Server high availability standby detection.- Parameters:
instanceId- The ID of the EC2 instance to enable for SQL Server high availability standby detection. This parameter is required.- Returns:
this- See Also:
-
sqlServerCredentials
@Stability(Stable) public CfnSqlHaStandbyDetectedInstance.Builder sqlServerCredentials(String sqlServerCredentials) The ARN of the AWS Secrets Manager secret containing SQL Server access credentials to the EC2 instance.If not specified, AWS Systems Manager agent will use default local user credentials.
- Parameters:
sqlServerCredentials- The ARN of the AWS Secrets Manager secret containing SQL Server access credentials to the EC2 instance. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnSqlHaStandbyDetectedInstance>- Returns:
- a newly built instance of
CfnSqlHaStandbyDetectedInstance.
-