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

com.pulumi.azurenative.apimanagement.GroupUser 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.apimanagement;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.apimanagement.GroupUserArgs;
import com.pulumi.azurenative.apimanagement.outputs.GroupContractPropertiesResponse;
import com.pulumi.azurenative.apimanagement.outputs.UserIdentityContractResponse;
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;

/**
 * User details.
 * Azure REST API version: 2022-08-01. Prior API version in Azure Native 1.x: 2020-12-01.
 * 
 * Other available API versions: 2017-03-01, 2018-01-01, 2022-09-01-preview, 2023-03-01-preview, 2023-05-01-preview, 2023-09-01-preview, 2024-05-01.
 * 
 * ## Example Usage
 * ### ApiManagementCreateGroupUser
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.apimanagement.GroupUser;
 * import com.pulumi.azurenative.apimanagement.GroupUserArgs;
 * 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 groupUser = new GroupUser("groupUser", GroupUserArgs.builder()
 *             .groupId("tempgroup")
 *             .resourceGroupName("rg1")
 *             .serviceName("apimService1")
 *             .userId("59307d350af58404d8a26300")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:apimanagement:GroupUser 59307d350af58404d8a26300 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/groups/{groupId}/users/{userId} * ``` * */ @ResourceType(type="azure-native:apimanagement:GroupUser") public class GroupUser extends com.pulumi.resources.CustomResource { /** * Email address. * */ @Export(name="email", refs={String.class}, tree="[0]") private Output email; /** * @return Email address. * */ public Output> email() { return Codegen.optional(this.email); } /** * First name. * */ @Export(name="firstName", refs={String.class}, tree="[0]") private Output firstName; /** * @return First name. * */ public Output> firstName() { return Codegen.optional(this.firstName); } /** * Collection of groups user is part of. * */ @Export(name="groups", refs={List.class,GroupContractPropertiesResponse.class}, tree="[0,1]") private Output> groups; /** * @return Collection of groups user is part of. * */ public Output> groups() { return this.groups; } /** * Collection of user identities. * */ @Export(name="identities", refs={List.class,UserIdentityContractResponse.class}, tree="[0,1]") private Output> identities; /** * @return Collection of user identities. * */ public Output>> identities() { return Codegen.optional(this.identities); } /** * Last name. * */ @Export(name="lastName", refs={String.class}, tree="[0]") private Output lastName; /** * @return Last name. * */ public Output> lastName() { return Codegen.optional(this.lastName); } /** * The name of the resource * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource * */ public Output name() { return this.name; } /** * Optional note about a user set by the administrator. * */ @Export(name="note", refs={String.class}, tree="[0]") private Output note; /** * @return Optional note about a user set by the administrator. * */ public Output> note() { return Codegen.optional(this.note); } /** * Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. * */ @Export(name="registrationDate", refs={String.class}, tree="[0]") private Output registrationDate; /** * @return Date of user registration. The date conforms to the following format: `yyyy-MM-ddTHH:mm:ssZ` as specified by the ISO 8601 standard. * */ public Output> registrationDate() { return Codegen.optional(this.registrationDate); } /** * Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active. * */ @Export(name="state", refs={String.class}, tree="[0]") private Output state; /** * @return Account state. Specifies whether the user is active or not. Blocked users are unable to sign into the developer portal or call any APIs of subscribed products. Default state is Active. * */ public Output> state() { return Codegen.optional(this.state); } /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public GroupUser(java.lang.String name) { this(name, GroupUserArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public GroupUser(java.lang.String name, GroupUserArgs 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 GroupUser(java.lang.String name, GroupUserArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:apimanagement:GroupUser", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private GroupUser(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:apimanagement:GroupUser", name, null, makeResourceOptions(options, id), false); } private static GroupUserArgs makeArgs(GroupUserArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? GroupUserArgs.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:apimanagement/v20170301:GroupUser").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20180101:GroupUser").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20180601preview:GroupUser").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20190101:GroupUser").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20191201:GroupUser").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20191201preview:GroupUser").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20200601preview:GroupUser").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20201201:GroupUser").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20210101preview:GroupUser").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20210401preview:GroupUser").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20210801:GroupUser").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20211201preview:GroupUser").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20220401preview:GroupUser").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20220801:GroupUser").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20220901preview:GroupUser").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20230301preview:GroupUser").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20230501preview:GroupUser").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20230901preview:GroupUser").build()), Output.of(Alias.builder().type("azure-native:apimanagement/v20240501:GroupUser").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 GroupUser get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new GroupUser(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy