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

com.pulumi.azurenative.databoxedge.User Maven / Gradle / Ivy

There is a newer version: 2.78.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.pulumi.azurenative.databoxedge;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.databoxedge.UserArgs;
import com.pulumi.azurenative.databoxedge.outputs.AsymmetricEncryptedSecretResponse;
import com.pulumi.azurenative.databoxedge.outputs.ShareAccessRightResponse;
import com.pulumi.azurenative.databoxedge.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
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;

/**
 * Represents a user who has access to one or more shares on the Data Box Edge/Gateway device.
 * Azure REST API version: 2022-03-01. Prior API version in Azure Native 1.x: 2020-12-01.
 * 
 * Other available API versions: 2019-07-01, 2019-08-01, 2021-02-01-preview, 2023-01-01-preview, 2023-07-01, 2023-12-01.
 * 
 * ## Example Usage
 * ### UserPut
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.databoxedge.User;
 * import com.pulumi.azurenative.databoxedge.UserArgs;
 * import com.pulumi.azurenative.databoxedge.inputs.AsymmetricEncryptedSecretArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * 
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 * 
 *     public static void stack(Context ctx) {
 *         var user = new User("user", UserArgs.builder()
 *             .deviceName("testedgedevice")
 *             .encryptedPassword(AsymmetricEncryptedSecretArgs.builder()
 *                 .encryptionAlgorithm("None")
 *                 .encryptionCertThumbprint("blah")
 *                 .value("")
 *                 .build())
 *             .name("user1")
 *             .resourceGroupName("GroupForEdgeAutomation")
 *             .userType("Share")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:databoxedge:User user1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBoxEdge/dataBoxEdgeDevices/{deviceName}/users/{name} * ``` * */ @ResourceType(type="azure-native:databoxedge:User") public class User extends com.pulumi.resources.CustomResource { /** * The password details. * */ @Export(name="encryptedPassword", refs={AsymmetricEncryptedSecretResponse.class}, tree="[0]") private Output encryptedPassword; /** * @return The password details. * */ public Output> encryptedPassword() { return Codegen.optional(this.encryptedPassword); } /** * The object name. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The object name. * */ public Output name() { return this.name; } /** * List of shares that the user has rights on. This field should not be specified during user creation. * */ @Export(name="shareAccessRights", refs={List.class,ShareAccessRightResponse.class}, tree="[0,1]") private Output> shareAccessRights; /** * @return List of shares that the user has rights on. This field should not be specified during user creation. * */ public Output> shareAccessRights() { return this.shareAccessRights; } /** * Metadata pertaining to creation and last modification of User * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Metadata pertaining to creation and last modification of User * */ public Output systemData() { return this.systemData; } /** * The hierarchical type of the object. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The hierarchical type of the object. * */ public Output type() { return this.type; } /** * Type of the user. * */ @Export(name="userType", refs={String.class}, tree="[0]") private Output userType; /** * @return Type of the user. * */ public Output userType() { return this.userType; } /** * * @param name The _unique_ name of the resulting resource. */ public User(java.lang.String name) { this(name, UserArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public User(java.lang.String name, UserArgs 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 User(java.lang.String name, UserArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:databoxedge:User", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private User(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:databoxedge:User", name, null, makeResourceOptions(options, id), false); } private static UserArgs makeArgs(UserArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? UserArgs.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()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:databoxedge/v20190301:User").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20190701:User").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20190801:User").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20200501preview:User").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20200901:User").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20200901preview:User").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20201201:User").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20210201:User").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20210201preview:User").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20210601:User").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20210601preview:User").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20220301:User").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20220401preview:User").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20221201preview:User").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20230101preview:User").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20230701:User").build()), Output.of(Alias.builder().type("azure-native:databoxedge/v20231201:User").build()) )) .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 options Optional settings to control the behavior of the CustomResource. */ public static User get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new User(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy