com.pulumi.aws.redshiftserverless.outputs.GetCredentialsResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws Show documentation
Show all versions of aws Show documentation
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.aws.redshiftserverless.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetCredentialsResult {
private @Nullable String dbName;
/**
* @return Temporary password that authorizes the user name returned by `db_user` to log on to the database `db_name`.
*
*/
private String dbPassword;
/**
* @return A database user name that is authorized to log on to the database `db_name` using the password `db_password` . If the specified `db_user` exists in the database, the new user name has the same database privileges as the user named in `db_user` . By default, the user is added to PUBLIC. the user doesn't exist in the database.
*
*/
private String dbUser;
private @Nullable Integer durationSeconds;
/**
* @return Date and time the password in `db_password` expires.
*
*/
private String expiration;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
private String workgroupName;
private GetCredentialsResult() {}
public Optional dbName() {
return Optional.ofNullable(this.dbName);
}
/**
* @return Temporary password that authorizes the user name returned by `db_user` to log on to the database `db_name`.
*
*/
public String dbPassword() {
return this.dbPassword;
}
/**
* @return A database user name that is authorized to log on to the database `db_name` using the password `db_password` . If the specified `db_user` exists in the database, the new user name has the same database privileges as the user named in `db_user` . By default, the user is added to PUBLIC. the user doesn't exist in the database.
*
*/
public String dbUser() {
return this.dbUser;
}
public Optional durationSeconds() {
return Optional.ofNullable(this.durationSeconds);
}
/**
* @return Date and time the password in `db_password` expires.
*
*/
public String expiration() {
return this.expiration;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
public String workgroupName() {
return this.workgroupName;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetCredentialsResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String dbName;
private String dbPassword;
private String dbUser;
private @Nullable Integer durationSeconds;
private String expiration;
private String id;
private String workgroupName;
public Builder() {}
public Builder(GetCredentialsResult defaults) {
Objects.requireNonNull(defaults);
this.dbName = defaults.dbName;
this.dbPassword = defaults.dbPassword;
this.dbUser = defaults.dbUser;
this.durationSeconds = defaults.durationSeconds;
this.expiration = defaults.expiration;
this.id = defaults.id;
this.workgroupName = defaults.workgroupName;
}
@CustomType.Setter
public Builder dbName(@Nullable String dbName) {
this.dbName = dbName;
return this;
}
@CustomType.Setter
public Builder dbPassword(String dbPassword) {
if (dbPassword == null) {
throw new MissingRequiredPropertyException("GetCredentialsResult", "dbPassword");
}
this.dbPassword = dbPassword;
return this;
}
@CustomType.Setter
public Builder dbUser(String dbUser) {
if (dbUser == null) {
throw new MissingRequiredPropertyException("GetCredentialsResult", "dbUser");
}
this.dbUser = dbUser;
return this;
}
@CustomType.Setter
public Builder durationSeconds(@Nullable Integer durationSeconds) {
this.durationSeconds = durationSeconds;
return this;
}
@CustomType.Setter
public Builder expiration(String expiration) {
if (expiration == null) {
throw new MissingRequiredPropertyException("GetCredentialsResult", "expiration");
}
this.expiration = expiration;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetCredentialsResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder workgroupName(String workgroupName) {
if (workgroupName == null) {
throw new MissingRequiredPropertyException("GetCredentialsResult", "workgroupName");
}
this.workgroupName = workgroupName;
return this;
}
public GetCredentialsResult build() {
final var _resultValue = new GetCredentialsResult();
_resultValue.dbName = dbName;
_resultValue.dbPassword = dbPassword;
_resultValue.dbUser = dbUser;
_resultValue.durationSeconds = durationSeconds;
_resultValue.expiration = expiration;
_resultValue.id = id;
_resultValue.workgroupName = workgroupName;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy