com.ovhcloud.pulumi.ovh.CloudProjectDatabase.M3DbUser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-ovh Show documentation
Show all versions of pulumi-ovh Show documentation
A Pulumi package for creating and managing OVH 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.ovhcloud.pulumi.ovh.CloudProjectDatabase;
import com.ovhcloud.pulumi.ovh.CloudProjectDatabase.M3DbUserArgs;
import com.ovhcloud.pulumi.ovh.CloudProjectDatabase.inputs.M3DbUserState;
import com.ovhcloud.pulumi.ovh.Utilities;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* ## Import
*
* OVHcloud Managed M3DB clusters users can be imported using the `service_name`, `cluster_id` and `id` of the user, separated by "/" E.g.,
*
* bash
*
* ```sh
* $ pulumi import ovh:CloudProjectDatabase/m3DbUser:M3DbUser my_user service_name/cluster_id/id
* ```
*
*/
@ResourceType(type="ovh:CloudProjectDatabase/m3DbUser:M3DbUser")
public class M3DbUser extends com.pulumi.resources.CustomResource {
/**
* Cluster ID.
*
*/
@Export(name="clusterId", refs={String.class}, tree="[0]")
private Output clusterId;
/**
* @return Cluster ID.
*
*/
public Output clusterId() {
return this.clusterId;
}
/**
* Date of the creation of the user.
*
*/
@Export(name="createdAt", refs={String.class}, tree="[0]")
private Output createdAt;
/**
* @return Date of the creation of the user.
*
*/
public Output createdAt() {
return this.createdAt;
}
/**
* Group of the user:
*
*/
@Export(name="group", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> group;
/**
* @return Group of the user:
*
*/
public Output> group() {
return Codegen.optional(this.group);
}
/**
* Name of the user. A user named "avnadmin" is mapped with already created admin user instead of creating a new user.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Name of the user. A user named "avnadmin" is mapped with already created admin user instead of creating a new user.
*
*/
public Output name() {
return this.name;
}
/**
* (Sensitive) Password of the user.
*
*/
@Export(name="password", refs={String.class}, tree="[0]")
private Output password;
/**
* @return (Sensitive) Password of the user.
*
*/
public Output password() {
return this.password;
}
/**
* Arbitrary string to change to trigger a password update
*
*/
@Export(name="passwordReset", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> passwordReset;
/**
* @return Arbitrary string to change to trigger a password update
*
*/
public Output> passwordReset() {
return Codegen.optional(this.passwordReset);
}
/**
* The id of the public cloud project. If omitted,
* the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
*
*/
@Export(name="serviceName", refs={String.class}, tree="[0]")
private Output serviceName;
/**
* @return The id of the public cloud project. If omitted,
* the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used.
*
*/
public Output serviceName() {
return this.serviceName;
}
/**
* Current status of the user.
*
*/
@Export(name="status", refs={String.class}, tree="[0]")
private Output status;
/**
* @return Current status of the user.
*
*/
public Output status() {
return this.status;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public M3DbUser(java.lang.String name) {
this(name, M3DbUserArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public M3DbUser(java.lang.String name, M3DbUserArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public M3DbUser(java.lang.String name, M3DbUserArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("ovh:CloudProjectDatabase/m3DbUser:M3DbUser", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private M3DbUser(java.lang.String name, Output id, @Nullable M3DbUserState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("ovh:CloudProjectDatabase/m3DbUser:M3DbUser", name, state, makeResourceOptions(options, id), false);
}
private static M3DbUserArgs makeArgs(M3DbUserArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? M3DbUserArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.additionalSecretOutputs(List.of(
"password"
))
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static M3DbUser get(java.lang.String name, Output id, @Nullable M3DbUserState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new M3DbUser(name, id, state, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy