Show / Hide Table of Contents

Class DatabaseSecret

(experimental) A database secret.

Inheritance
object
Resource
Secret
DatabaseSecret
Implements
ISecret
IResource
IConstruct
IDependable
Inherited Members
Secret.FromSecretAttributes(Construct, string, ISecretAttributes)
Secret.FromSecretCompleteArn(Construct, string, string)
Secret.FromSecretNameV2(Construct, string, string)
Secret.FromSecretPartialArn(Construct, string, string)
Secret.IsSecret(object)
Secret.AddReplicaRegion(string, IKey)
Secret.AddRotationSchedule(string, IRotationScheduleOptions)
Secret.AddToResourcePolicy(PolicyStatement)
Secret.Attach(ISecretAttachmentTarget)
Secret.DenyAccountRootDelete()
Secret.GrantRead(IGrantable, string[])
Secret.GrantWrite(IGrantable)
Secret.SecretValueFromJson(string)
Secret.ArnForPolicies
Secret.AutoCreatePolicy
Secret.SecretArn
Secret.SecretName
Secret.SecretValue
Secret.EncryptionKey
Secret.ExcludeCharacters
Secret.SecretFullArn
Resource.IsOwnedResource(IConstruct)
Resource.IsResource(IConstruct)
Resource.ApplyRemovalPolicy(RemovalPolicy)
Resource.GeneratePhysicalName()
Resource.GetResourceArnAttribute(string, IArnComponents)
Resource.GetResourceNameAttribute(string)
Resource.Env
Resource.PhysicalName
Resource.Stack
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

string

Remarks

Stability: Experimental

Implements

ISecret
IResource
Constructs.IConstruct
Constructs.IDependable
Back to top Generated by DocFX