Class DatabaseSecret

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IConstruct, IDependable, IResource, ISecret, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:42.844Z") @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.kms.*;
 import software.amazon.awscdk.services.redshift.*;
 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.