getRandomPassword

Generate a random password.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.secretsmanager.SecretsmanagerFunctions;
import com.pulumi.aws.secretsmanager.inputs.GetRandomPasswordArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var test = SecretsmanagerFunctions.getRandomPassword(GetRandomPasswordArgs.builder()
.excludeNumbers(true)
.passwordLength(50)
.build());
}
}

Return

A collection of values returned by getRandomPassword.

Parameters

argument

A collection of arguments for invoking getRandomPassword.


suspend fun getRandomPassword(excludeCharacters: String? = null, excludeLowercase: Boolean? = null, excludeNumbers: Boolean? = null, excludePunctuation: Boolean? = null, excludeUppercase: Boolean? = null, includeSpace: Boolean? = null, passwordLength: Int? = null, randomPassword: String? = null, requireEachIncludedType: Boolean? = null): GetRandomPasswordResult

Return

A collection of values returned by getRandomPassword.

Parameters

excludeCharacters

String of the characters that you don't want in the password.

excludeLowercase

Specifies whether to exclude lowercase letters from the password.

excludeNumbers

Specifies whether to exclude numbers from the password.

excludePunctuation

Specifies whether to exclude the following punctuation characters from the password: `! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~ .`

excludeUppercase

Specifies whether to exclude uppercase letters from the password.

includeSpace

Specifies whether to include the space character.

passwordLength

Length of the password.

randomPassword

Random password.

requireEachIncludedType

Specifies whether to include at least one upper and lowercase letter, one number, and one punctuation.

See also


Return

A collection of values returned by getRandomPassword.

Parameters

argument

Builder for com.pulumi.aws.secretsmanager.kotlin.inputs.GetRandomPasswordPlainArgs.

See also