Interface CfnSecret.GenerateSecretStringProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnSecret.GenerateSecretStringProperty.Jsii$Proxy
Enclosing class:
CfnSecret

@Stability(Stable) public static interface CfnSecret.GenerateSecretStringProperty extends software.amazon.jsii.JsiiSerializable
Generates a random password.

We recommend that you specify the maximum length and include every character type that the system you are generating a password for can support.

Required permissions: secretsmanager:GetRandomPassword . For more information, see IAM policy actions for Secrets Manager and Authentication and access control in Secrets Manager .

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.secretsmanager.*;
 GenerateSecretStringProperty generateSecretStringProperty = GenerateSecretStringProperty.builder()
         .excludeCharacters("excludeCharacters")
         .excludeLowercase(false)
         .excludeNumbers(false)
         .excludePunctuation(false)
         .excludeUppercase(false)
         .generateStringKey("generateStringKey")
         .includeSpace(false)
         .passwordLength(123)
         .requireEachIncludedType(false)
         .secretStringTemplate("secretStringTemplate")
         .build();
 

See Also: