Show / Hide Table of Contents

Class DatabaseSecretProps

(experimental) Construction properties for a DatabaseSecret.

Inheritance
object
DatabaseSecretProps
Implements
IDatabaseSecretProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.Redshift.Alpha
Assembly: Amazon.CDK.AWS.Redshift.Alpha.dll
Syntax (csharp)
public class DatabaseSecretProps : IDatabaseSecretProps
Syntax (vb)
Public Class DatabaseSecretProps Implements IDatabaseSecretProps
Remarks

Stability: Experimental

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.Redshift.Alpha;
             using Amazon.CDK.AWS.KMS;

             Key key;

             var databaseSecretProps = new DatabaseSecretProps {
                 Username = "username",

                 // the properties below are optional
                 EncryptionKey = key,
                 ExcludeCharacters = "excludeCharacters"
             };

Synopsis

Constructors

DatabaseSecretProps()

(experimental) Construction properties for a DatabaseSecret.

Properties

EncryptionKey

(experimental) The KMS key to use to encrypt the secret.

ExcludeCharacters

(experimental) Characters to not include in the generated password.

Username

(experimental) The username.

Constructors

DatabaseSecretProps()

(experimental) Construction properties for a DatabaseSecret.

public DatabaseSecretProps()
Remarks

Stability: Experimental

ExampleMetadata: fixture=_generated

Examples
// The code below shows an example of how to instantiate this type.
             // The values are placeholders you should change.
             using Amazon.CDK.AWS.Redshift.Alpha;
             using Amazon.CDK.AWS.KMS;

             Key key;

             var databaseSecretProps = new DatabaseSecretProps {
                 Username = "username",

                 // the properties below are optional
                 EncryptionKey = key,
                 ExcludeCharacters = "excludeCharacters"
             };

Properties

EncryptionKey

(experimental) The KMS key to use to encrypt the secret.

public IKey? EncryptionKey { get; set; }
Property Value

IKey

Remarks

Default: default master key

Stability: Experimental

ExcludeCharacters

(experimental) Characters to not include in the generated password.

public string? ExcludeCharacters { get; set; }
Property Value

string

Remarks

Default: '"@/\\ ''

Stability: Experimental

Username

(experimental) The username.

public string Username { get; set; }
Property Value

string

Remarks

Stability: Experimental

Implements

IDatabaseSecretProps
Back to top Generated by DocFX