CfnSqlHaStandbyDetectedInstanceProps Struct
Properties for defining a CfnSqlHaStandbyDetectedInstance.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnSqlHaStandbyDetectedInstanceProps: ec2.CfnSqlHaStandbyDetectedInstanceProps = {
instanceId: 'instanceId',
// the properties below are optional
sqlServerCredentials: 'sqlServerCredentials',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2
cfn_sql_ha_standby_detected_instance_props = ec2.CfnSqlHaStandbyDetectedInstanceProps(
instance_id="instanceId",
# the properties below are optional
sql_server_credentials="sqlServerCredentials"
)
java
// 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.*;
CfnSqlHaStandbyDetectedInstanceProps cfnSqlHaStandbyDetectedInstanceProps = CfnSqlHaStandbyDetectedInstanceProps.builder()
.instanceId("instanceId")
// the properties below are optional
.sqlServerCredentials("sqlServerCredentials")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnSqlHaStandbyDetectedInstanceProps = new CfnSqlHaStandbyDetectedInstanceProps {
InstanceId = "instanceId",
// the properties below are optional
SqlServerCredentials = "sqlServerCredentials"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnSqlHaStandbyDetectedInstanceProps := &CfnSqlHaStandbyDetectedInstanceProps{
InstanceId: jsii.String("instanceId"),
// the properties below are optional
SqlServerCredentials: jsii.String("sqlServerCredentials"),
}
Properties
The ID of the EC2 instance to enable for SQL Server high availability standby detection.
sqlServerCredentialsoptionalstringsql_server_credentialsoptionalstrsqlServerCredentialsoptionalStringSqlServerCredentialsoptionalstringSqlServerCredentialsoptional*string #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.