All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ovhcloud.pulumi.ovh.CloudProjectDatabase.RedisUser Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
// *** 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.RedisUserArgs;
import com.ovhcloud.pulumi.ovh.CloudProjectDatabase.inputs.RedisUserState;
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 Redis 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/redisUser:RedisUser my_user service_name/cluster_id/id
 * ```
 * 
 */
@ResourceType(type="ovh:CloudProjectDatabase/redisUser:RedisUser")
public class RedisUser extends com.pulumi.resources.CustomResource {
    /**
     * Categories of the user.
     * 
     */
    @Export(name="categories", refs={List.class,String.class}, tree="[0,1]")
    private Output> categories;

    /**
     * @return Categories of the user.
     * 
     */
    public Output>> categories() {
        return Codegen.optional(this.categories);
    }
    /**
     * Channels of the user.
     * 
     */
    @Export(name="channels", refs={List.class,String.class}, tree="[0,1]")
    private Output> channels;

    /**
     * @return Channels of the user.
     * 
     */
    public Output> channels() {
        return this.channels;
    }
    /**
     * Cluster ID.
     * 
     */
    @Export(name="clusterId", refs={String.class}, tree="[0]")
    private Output clusterId;

    /**
     * @return Cluster ID.
     * 
     */
    public Output clusterId() {
        return this.clusterId;
    }
    /**
     * Commands of the user.
     * 
     */
    @Export(name="commands", refs={List.class,String.class}, tree="[0,1]")
    private Output> commands;

    /**
     * @return Commands of the user.
     * 
     */
    public Output>> commands() {
        return Codegen.optional(this.commands);
    }
    /**
     * 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;
    }
    /**
     * Keys of the user.
     * 
     */
    @Export(name="keys", refs={List.class,String.class}, tree="[0,1]")
    private Output> keys;

    /**
     * @return Keys of the user.
     * 
     */
    public Output>> keys() {
        return Codegen.optional(this.keys);
    }
    /**
     * Name of the user.
     * 
     */
    @Export(name="name", refs={String.class}, tree="[0]")
    private Output name;

    /**
     * @return Name of the 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 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 RedisUser(java.lang.String name) {
        this(name, RedisUserArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public RedisUser(java.lang.String name, RedisUserArgs 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 RedisUser(java.lang.String name, RedisUserArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("ovh:CloudProjectDatabase/redisUser:RedisUser", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
    }

    private RedisUser(java.lang.String name, Output id, @Nullable RedisUserState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("ovh:CloudProjectDatabase/redisUser:RedisUser", name, state, makeResourceOptions(options, id), false);
    }

    private static RedisUserArgs makeArgs(RedisUserArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        if (options != null && options.getUrn().isPresent()) {
            return null;
        }
        return args == null ? RedisUserArgs.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 RedisUser get(java.lang.String name, Output id, @Nullable RedisUserState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new RedisUser(name, id, state, options);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy