import * as core from "@terrascript/core"; export interface DsClusterCredentialsArgs { /** * (Optional) Create a database user with the name specified for the user named in `db_user` if one do * es not exist. */ autoCreate?: boolean | core.BooleanOut; /** * (Required) The unique identifier of the cluster that contains the database for which your are reques * ting credentials. */ clusterIdentifier: string | core.StringOut; /** * (Optional) A list of the names of existing database groups that the user named in `db_user` will joi * n for the current session, in addition to any group memberships for an existing user. If not specifi * ed, a new user is added only to `PUBLIC`. */ dbGroups?: core.Array | core.ArrayOut; /** * (Optional) The name of a database that DbUser is authorized to log on to. If `db_name` is not specif * ied, `db_user` can log on to any existing database. */ dbName?: string | core.StringOut; /** * (Required) The name of a database user. If a user name matching `db_user` exists in the database, th * e temporary user credentials have the same permissions as the existing user. If `db_user` doesn't e * xist in the database and `auto_create` is `True`, a new user is created using the value for `db_user * with `PUBLIC` permissions. If a database user matching the value for `db_user` doesn't exist and * not` is `False`, then the command succeeds but the connection attempt will fail because the user do * esn't exist in the database. */ dbUser: string | core.StringOut; /** * (Optional) The number of seconds until the returned temporary password expires. Valid values are be * tween `900` and `3600`. Default value is `900`. */ durationSeconds?: number | core.NumberOut; } export declare class DsClusterCredentials extends core.Data { /** * (Optional) Create a database user with the name specified for the user named in `db_user` if one do * es not exist. */ autoCreate?: boolean | core.BooleanOut; /** * (Required) The unique identifier of the cluster that contains the database for which your are reques * ting credentials. */ clusterIdentifier: string | core.StringOut; /** * (Optional) A list of the names of existing database groups that the user named in `db_user` will joi * n for the current session, in addition to any group memberships for an existing user. If not specifi * ed, a new user is added only to `PUBLIC`. */ dbGroups?: core.Array | core.ArrayOut; /** * (Optional) The name of a database that DbUser is authorized to log on to. If `db_name` is not specif * ied, `db_user` can log on to any existing database. */ dbName?: string | core.StringOut; /** * A temporary password that authorizes the user name returned by `db_user` to log on to the database ` * db_name`. */ dbPassword: string | core.StringOut; /** * (Required) The name of a database user. If a user name matching `db_user` exists in the database, th * e temporary user credentials have the same permissions as the existing user. If `db_user` doesn't e * xist in the database and `auto_create` is `True`, a new user is created using the value for `db_user * with `PUBLIC` permissions. If a database user matching the value for `db_user` doesn't exist and * not` is `False`, then the command succeeds but the connection attempt will fail because the user do * esn't exist in the database. */ dbUser: string | core.StringOut; /** * (Optional) The number of seconds until the returned temporary password expires. Valid values are be * tween `900` and `3600`. Default value is `900`. */ durationSeconds?: number | core.NumberOut; /** * The date and time the password in `db_password` expires. */ expiration: string | core.StringOut; id: string | core.StringOut; constructor(name: string, args?: DsClusterCredentialsArgs); getNamespace(): string; } //# sourceMappingURL=ds_cluster_credentials.d.ts.map