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

com.pulumi.azurenative.confluent.Organization Maven / Gradle / Ivy

There is a newer version: 2.82.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.confluent;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.confluent.OrganizationArgs;
import com.pulumi.azurenative.confluent.outputs.OfferDetailResponse;
import com.pulumi.azurenative.confluent.outputs.SystemDataResponse;
import com.pulumi.azurenative.confluent.outputs.UserDetailResponse;
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.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Organization resource.
 * Azure REST API version: 2021-12-01. Prior API version in Azure Native 1.x: 2020-03-01.
 * 
 * Other available API versions: 2020-03-01-preview, 2023-08-22, 2024-02-13.
 * 
 * ## Example Usage
 * ### Organization_Create
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.confluent.Organization;
 * import com.pulumi.azurenative.confluent.OrganizationArgs;
 * import com.pulumi.azurenative.confluent.inputs.OfferDetailArgs;
 * import com.pulumi.azurenative.confluent.inputs.UserDetailArgs;
 * 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 }{{@code
 *     public static void main(String[] args) }{{@code
 *         Pulumi.run(App::stack);
 *     }}{@code
 * 
 *     public static void stack(Context ctx) }{{@code
 *         var organization = new Organization("organization", OrganizationArgs.builder()
 *             .location("West US")
 *             .offerDetail(OfferDetailArgs.builder()
 *                 .id("string")
 *                 .planId("string")
 *                 .planName("string")
 *                 .publisherId("string")
 *                 .termUnit("string")
 *                 .build())
 *             .organizationName("myOrganization")
 *             .resourceGroupName("myResourceGroup")
 *             .tags(Map.of("Environment", "Dev"))
 *             .userDetail(UserDetailArgs.builder()
 *                 .emailAddress("contoso}{@literal @}{@code microsoft.com")
 *                 .firstName("string")
 *                 .lastName("string")
 *                 .build())
 *             .build());
 * 
 *     }}{@code
 * }}{@code
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:confluent:Organization myOrganization /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName} * ``` * */ @ResourceType(type="azure-native:confluent:Organization") public class Organization extends com.pulumi.resources.CustomResource { /** * The creation time of the resource. * */ @Export(name="createdTime", refs={String.class}, tree="[0]") private Output createdTime; /** * @return The creation time of the resource. * */ public Output createdTime() { return this.createdTime; } /** * Location of Organization resource * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return Location of Organization resource * */ public Output> location() { return Codegen.optional(this.location); } /** * 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; } /** * Confluent offer detail * */ @Export(name="offerDetail", refs={OfferDetailResponse.class}, tree="[0]") private Output offerDetail; /** * @return Confluent offer detail * */ public Output offerDetail() { return this.offerDetail; } /** * Id of the Confluent organization. * */ @Export(name="organizationId", refs={String.class}, tree="[0]") private Output organizationId; /** * @return Id of the Confluent organization. * */ public Output organizationId() { return this.organizationId; } /** * Provision states for confluent RP * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Provision states for confluent RP * */ public Output provisioningState() { return this.provisioningState; } /** * SSO url for the Confluent organization. * */ @Export(name="ssoUrl", refs={String.class}, tree="[0]") private Output ssoUrl; /** * @return SSO url for the Confluent organization. * */ public Output ssoUrl() { return this.ssoUrl; } /** * Metadata pertaining to creation and last modification of the resource * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Metadata pertaining to creation and last modification of the resource * */ public Output systemData() { return this.systemData; } /** * Organization resource tags * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return Organization resource tags * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * The type of the resource. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. * */ public Output type() { return this.type; } /** * Subscriber detail * */ @Export(name="userDetail", refs={UserDetailResponse.class}, tree="[0]") private Output userDetail; /** * @return Subscriber detail * */ public Output userDetail() { return this.userDetail; } /** * * @param name The _unique_ name of the resulting resource. */ public Organization(java.lang.String name) { this(name, OrganizationArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Organization(java.lang.String name, OrganizationArgs 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 Organization(java.lang.String name, OrganizationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:confluent:Organization", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Organization(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:confluent:Organization", name, null, makeResourceOptions(options, id), false); } private static OrganizationArgs makeArgs(OrganizationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? OrganizationArgs.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:confluent/v20200301:Organization").build()), Output.of(Alias.builder().type("azure-native:confluent/v20200301preview:Organization").build()), Output.of(Alias.builder().type("azure-native:confluent/v20210301preview:Organization").build()), Output.of(Alias.builder().type("azure-native:confluent/v20210901preview:Organization").build()), Output.of(Alias.builder().type("azure-native:confluent/v20211201:Organization").build()), Output.of(Alias.builder().type("azure-native:confluent/v20230822:Organization").build()), Output.of(Alias.builder().type("azure-native:confluent/v20240213:Organization").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 Organization get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Organization(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy