Class DatabaseSecret
(experimental) A database secret.
Inherited Members
Namespace: Amazon.CDK.AWS.Redshift.Alpha
Assembly: Amazon.CDK.AWS.Redshift.Alpha.dll
Syntax (csharp)
public class DatabaseSecret : Secret, ISecret, IResource, IConstruct, IDependable
Syntax (vb)
Public Class DatabaseSecret Inherits Secret Implements ISecret, IResource, IConstruct, IDependable
Remarks
Stability: Experimental
Resource: AWS::SecretsManager::Secret
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 databaseSecret = new DatabaseSecret(this, "MyDatabaseSecret", new DatabaseSecretProps {
Username = "username",
// the properties below are optional
EncryptionKey = key,
ExcludeCharacters = "excludeCharacters"
});
Synopsis
Constructors
DatabaseSecret(Construct, string, IDatabaseSecretProps) | (experimental) A database secret. |
Properties
PROPERTY_INJECTION_ID | (experimental) Uniquely identifies this class. |
Constructors
DatabaseSecret(Construct, string, IDatabaseSecretProps)
(experimental) A database secret.
public DatabaseSecret(Construct scope, string id, IDatabaseSecretProps props)
Parameters
- scope Construct
- id string
- props IDatabaseSecretProps
Remarks
Stability: Experimental
Properties
PROPERTY_INJECTION_ID
(experimental) Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Stability: Experimental
Implements
Constructs.IConstruct
Constructs.IDependable