CfnSqlHaStandbyDetectedInstanceProps

class aws_cdk.aws_ec2.CfnSqlHaStandbyDetectedInstanceProps(*, instance_id, sql_server_credentials=None)

Bases: object

Properties for defining a CfnSqlHaStandbyDetectedInstance.

Parameters:
  • instance_id (str) – The ID of the EC2 instance to enable for SQL Server high availability standby detection.

  • sql_server_credentials (Optional[str]) – 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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-sqlhastandbydetectedinstance.html

ExampleMetadata:

fixture=_generated

Example:

# 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"
)

Attributes

instance_id

The ID of the EC2 instance to enable for SQL Server high availability standby detection.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-sqlhastandbydetectedinstance.html#cfn-ec2-sqlhastandbydetectedinstance-instanceid

sql_server_credentials

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-sqlhastandbydetectedinstance.html#cfn-ec2-sqlhastandbydetectedinstance-sqlservercredentials