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
Syntax (vb)
Public Class DatabaseSecret
Inherits Secret
Implements ISecret, IResource
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(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
DatabaseSecret(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
DatabaseSecret(Construct, String, IDatabaseSecretProps) |
Constructors
DatabaseSecret(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected DatabaseSecret(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
DatabaseSecret(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected DatabaseSecret(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
DatabaseSecret(Construct, String, IDatabaseSecretProps)
public DatabaseSecret(Construct scope, string id, IDatabaseSecretProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IDatabaseSecretProps
Remarks
Stability: Experimental
Implements
Constructs.IConstruct
Constructs.IDependable