Class DatabaseSecret

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.secretsmanager.Secret
software.amazon.awscdk.services.redshift.alpha.DatabaseSecret
All Implemented Interfaces:
IResource, ISecret, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:15.988Z") @Stability(Experimental) public class DatabaseSecret extends Secret
(experimental) A database secret.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.redshift.alpha.*;
 import software.amazon.awscdk.services.kms.*;
 Key key;
 DatabaseSecret databaseSecret = DatabaseSecret.Builder.create(this, "MyDatabaseSecret")
         .username("username")
         // the properties below are optional
         .encryptionKey(key)
         .build();
 
  • Constructor Details

    • DatabaseSecret

      protected DatabaseSecret(software.amazon.jsii.JsiiObjectRef objRef)
    • DatabaseSecret

      protected DatabaseSecret(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • DatabaseSecret

      @Stability(Experimental) public DatabaseSecret(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull DatabaseSecretProps props)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      props - This parameter is required.