Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.alloydb/v1.User
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new User in a given project, location, and cluster. Auto-naming is currently not supported for this resource.
Create User Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new User(name: string, args: UserArgs, opts?: CustomResourceOptions);
@overload
def User(resource_name: str,
args: UserArgs,
opts: Optional[ResourceOptions] = None)
@overload
def User(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster_id: Optional[str] = None,
user_id: Optional[str] = None,
database_roles: Optional[Sequence[str]] = None,
location: Optional[str] = None,
password: Optional[str] = None,
project: Optional[str] = None,
request_id: Optional[str] = None,
user_type: Optional[UserUserType] = None)
func NewUser(ctx *Context, name string, args UserArgs, opts ...ResourceOption) (*User, error)
public User(string name, UserArgs args, CustomResourceOptions? opts = null)
type: google-native:alloydb/v1:User
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var userResource = new GoogleNative.AlloyDB.V1.User("userResource", new()
{
ClusterId = "string",
UserId = "string",
DatabaseRoles = new[]
{
"string",
},
Location = "string",
Password = "string",
Project = "string",
RequestId = "string",
UserType = GoogleNative.AlloyDB.V1.UserUserType.UserTypeUnspecified,
});
example, err := alloydb.NewUser(ctx, "userResource", &alloydb.UserArgs{
ClusterId: pulumi.String("string"),
UserId: pulumi.String("string"),
DatabaseRoles: pulumi.StringArray{
pulumi.String("string"),
},
Location: pulumi.String("string"),
Password: pulumi.String("string"),
Project: pulumi.String("string"),
RequestId: pulumi.String("string"),
UserType: alloydb.UserUserTypeUserTypeUnspecified,
})
var userResource = new User("userResource", UserArgs.builder()
.clusterId("string")
.userId("string")
.databaseRoles("string")
.location("string")
.password("string")
.project("string")
.requestId("string")
.userType("USER_TYPE_UNSPECIFIED")
.build());
user_resource = google_native.alloydb.v1.User("userResource",
cluster_id="string",
user_id="string",
database_roles=["string"],
location="string",
password="string",
project="string",
request_id="string",
user_type=google_native.alloydb.v1.UserUserType.USER_TYPE_UNSPECIFIED)
const userResource = new google_native.alloydb.v1.User("userResource", {
clusterId: "string",
userId: "string",
databaseRoles: ["string"],
location: "string",
password: "string",
project: "string",
requestId: "string",
userType: google_native.alloydb.v1.UserUserType.UserTypeUnspecified,
});
type: google-native:alloydb/v1:User
properties:
clusterId: string
databaseRoles:
- string
location: string
password: string
project: string
requestId: string
userId: string
userType: USER_TYPE_UNSPECIFIED
User Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The User resource accepts the following input properties:
- Cluster
Id string - User
Id string - Required. ID of the requesting object.
- Database
Roles List<string> - Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
- Location string
- Password string
- Input only. Password for the user.
- Project string
- Request
Id string - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- User
Type Pulumi.Google Native. Alloy DB. V1. User User Type - Optional. Type of this user.
- Cluster
Id string - User
Id string - Required. ID of the requesting object.
- Database
Roles []string - Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
- Location string
- Password string
- Input only. Password for the user.
- Project string
- Request
Id string - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- User
Type UserUser Type - Optional. Type of this user.
- cluster
Id String - user
Id String - Required. ID of the requesting object.
- database
Roles List<String> - Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
- location String
- password String
- Input only. Password for the user.
- project String
- request
Id String - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- user
Type UserUser Type - Optional. Type of this user.
- cluster
Id string - user
Id string - Required. ID of the requesting object.
- database
Roles string[] - Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
- location string
- password string
- Input only. Password for the user.
- project string
- request
Id string - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- user
Type UserUser Type - Optional. Type of this user.
- cluster_
id str - user_
id str - Required. ID of the requesting object.
- database_
roles Sequence[str] - Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
- location str
- password str
- Input only. Password for the user.
- project str
- request_
id str - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- user_
type UserUser Type - Optional. Type of this user.
- cluster
Id String - user
Id String - Required. ID of the requesting object.
- database
Roles List<String> - Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions.
- location String
- password String
- Input only. Password for the user.
- project String
- request
Id String - Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
- user
Type "USER_TYPE_UNSPECIFIED" | "ALLOYDB_BUILT_IN" | "ALLOYDB_IAM_USER" - Optional. Type of this user.
Outputs
All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:
Supporting Types
UserUserType, UserUserTypeArgs
- User
Type Unspecified - USER_TYPE_UNSPECIFIEDUnspecified user type.
- Alloydb
Built In - ALLOYDB_BUILT_INThe default user type that authenticates via password-based authentication.
- Alloydb
Iam User - ALLOYDB_IAM_USERDatabase user that can authenticate via IAM-Based authentication.
- User
User Type User Type Unspecified - USER_TYPE_UNSPECIFIEDUnspecified user type.
- User
User Type Alloydb Built In - ALLOYDB_BUILT_INThe default user type that authenticates via password-based authentication.
- User
User Type Alloydb Iam User - ALLOYDB_IAM_USERDatabase user that can authenticate via IAM-Based authentication.
- User
Type Unspecified - USER_TYPE_UNSPECIFIEDUnspecified user type.
- Alloydb
Built In - ALLOYDB_BUILT_INThe default user type that authenticates via password-based authentication.
- Alloydb
Iam User - ALLOYDB_IAM_USERDatabase user that can authenticate via IAM-Based authentication.
- User
Type Unspecified - USER_TYPE_UNSPECIFIEDUnspecified user type.
- Alloydb
Built In - ALLOYDB_BUILT_INThe default user type that authenticates via password-based authentication.
- Alloydb
Iam User - ALLOYDB_IAM_USERDatabase user that can authenticate via IAM-Based authentication.
- USER_TYPE_UNSPECIFIED
- USER_TYPE_UNSPECIFIEDUnspecified user type.
- ALLOYDB_BUILT_IN
- ALLOYDB_BUILT_INThe default user type that authenticates via password-based authentication.
- ALLOYDB_IAM_USER
- ALLOYDB_IAM_USERDatabase user that can authenticate via IAM-Based authentication.
- "USER_TYPE_UNSPECIFIED"
- USER_TYPE_UNSPECIFIEDUnspecified user type.
- "ALLOYDB_BUILT_IN"
- ALLOYDB_BUILT_INThe default user type that authenticates via password-based authentication.
- "ALLOYDB_IAM_USER"
- ALLOYDB_IAM_USERDatabase user that can authenticate via IAM-Based authentication.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.