get Credentials
Provides redshift serverless temporary credentials for a workgroup.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.redshiftserverless.RedshiftserverlessFunctions;
import com.pulumi.aws.redshiftserverless.inputs.GetCredentialsArgs;
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 example = RedshiftserverlessFunctions.getCredentials(GetCredentialsArgs.builder()
.workgroupName(aws_redshiftserverless_workgroup.example().workgroup_name())
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getCredentials.
Parameters
argument
A collection of arguments for invoking getCredentials.
suspend fun getCredentials(dbName: String? = null, durationSeconds: Int? = null, workgroupName: String): GetCredentialsResult
Return
A collection of values returned by getCredentials.
Parameters
db Name
The name of the database to get temporary authorization to log on to.
duration Seconds
The number of seconds until the returned temporary password expires. The minimum is 900 seconds, and the maximum is 3600 seconds.
workgroup Name
The name of the workgroup associated with the database.
See also
suspend fun getCredentials(argument: suspend GetCredentialsPlainArgsBuilder.() -> Unit): GetCredentialsResult
Return
A collection of values returned by getCredentials.
Parameters
argument
Builder for com.pulumi.aws.redshiftserverless.kotlin.inputs.GetCredentialsPlainArgs.