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

com.pulumi.azurenative.appconfiguration.ConfigurationStore Maven / Gradle / Ivy

// *** 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.appconfiguration;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.appconfiguration.ConfigurationStoreArgs;
import com.pulumi.azurenative.appconfiguration.outputs.EncryptionPropertiesResponse;
import com.pulumi.azurenative.appconfiguration.outputs.PrivateEndpointConnectionReferenceResponse;
import com.pulumi.azurenative.appconfiguration.outputs.ResourceIdentityResponse;
import com.pulumi.azurenative.appconfiguration.outputs.SkuResponse;
import com.pulumi.azurenative.appconfiguration.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.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * The configuration store along with all resource properties. The Configuration Store will have all information to begin utilizing it.
 * Azure REST API version: 2023-03-01. Prior API version in Azure Native 1.x: 2020-06-01.
 * 
 * Other available API versions: 2019-02-01-preview, 2023-08-01-preview, 2023-09-01-preview, 2024-05-01.
 * 
 * ## Example Usage
 * ### ConfigurationStores_Create
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.appconfiguration.ConfigurationStore;
 * import com.pulumi.azurenative.appconfiguration.ConfigurationStoreArgs;
 * import com.pulumi.azurenative.appconfiguration.inputs.SkuArgs;
 * 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 configurationStore = new ConfigurationStore("configurationStore", ConfigurationStoreArgs.builder()
 *             .configStoreName("contoso")
 *             .location("westus")
 *             .resourceGroupName("myResourceGroup")
 *             .sku(SkuArgs.builder()
 *                 .name("Standard")
 *                 .build())
 *             .tags(Map.of("myTag", "myTagValue"))
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### ConfigurationStores_Create_With_Local_Auth_Disabled * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.appconfiguration.ConfigurationStore;
 * import com.pulumi.azurenative.appconfiguration.ConfigurationStoreArgs;
 * import com.pulumi.azurenative.appconfiguration.inputs.SkuArgs;
 * 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 configurationStore = new ConfigurationStore("configurationStore", ConfigurationStoreArgs.builder()
 *             .configStoreName("contoso")
 *             .disableLocalAuth(true)
 *             .location("westus")
 *             .resourceGroupName("myResourceGroup")
 *             .sku(SkuArgs.builder()
 *                 .name("Standard")
 *                 .build())
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:appconfiguration:ConfigurationStore contoso /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName} * ``` * */ @ResourceType(type="azure-native:appconfiguration:ConfigurationStore") public class ConfigurationStore extends com.pulumi.resources.CustomResource { /** * The creation date of configuration store. * */ @Export(name="creationDate", refs={String.class}, tree="[0]") private Output creationDate; /** * @return The creation date of configuration store. * */ public Output creationDate() { return this.creationDate; } /** * Disables all authentication methods other than AAD authentication. * */ @Export(name="disableLocalAuth", refs={Boolean.class}, tree="[0]") private Output disableLocalAuth; /** * @return Disables all authentication methods other than AAD authentication. * */ public Output> disableLocalAuth() { return Codegen.optional(this.disableLocalAuth); } /** * Property specifying whether protection against purge is enabled for this configuration store. * */ @Export(name="enablePurgeProtection", refs={Boolean.class}, tree="[0]") private Output enablePurgeProtection; /** * @return Property specifying whether protection against purge is enabled for this configuration store. * */ public Output> enablePurgeProtection() { return Codegen.optional(this.enablePurgeProtection); } /** * The encryption settings of the configuration store. * */ @Export(name="encryption", refs={EncryptionPropertiesResponse.class}, tree="[0]") private Output encryption; /** * @return The encryption settings of the configuration store. * */ public Output> encryption() { return Codegen.optional(this.encryption); } /** * The DNS endpoint where the configuration store API will be available. * */ @Export(name="endpoint", refs={String.class}, tree="[0]") private Output endpoint; /** * @return The DNS endpoint where the configuration store API will be available. * */ public Output endpoint() { return this.endpoint; } /** * The managed identity information, if configured. * */ @Export(name="identity", refs={ResourceIdentityResponse.class}, tree="[0]") private Output identity; /** * @return The managed identity information, if configured. * */ public Output> identity() { return Codegen.optional(this.identity); } /** * The geo-location where the resource lives * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The geo-location where the resource lives * */ public Output location() { return 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; } /** * The list of private endpoint connections that are set up for this resource. * */ @Export(name="privateEndpointConnections", refs={List.class,PrivateEndpointConnectionReferenceResponse.class}, tree="[0,1]") private Output> privateEndpointConnections; /** * @return The list of private endpoint connections that are set up for this resource. * */ public Output> privateEndpointConnections() { return this.privateEndpointConnections; } /** * The provisioning state of the configuration store. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The provisioning state of the configuration store. * */ public Output provisioningState() { return this.provisioningState; } /** * Control permission for data plane traffic coming from public networks while private endpoint is enabled. * */ @Export(name="publicNetworkAccess", refs={String.class}, tree="[0]") private Output publicNetworkAccess; /** * @return Control permission for data plane traffic coming from public networks while private endpoint is enabled. * */ public Output> publicNetworkAccess() { return Codegen.optional(this.publicNetworkAccess); } /** * The sku of the configuration store. * */ @Export(name="sku", refs={SkuResponse.class}, tree="[0]") private Output sku; /** * @return The sku of the configuration store. * */ public Output sku() { return this.sku; } /** * The amount of time in days that the configuration store will be retained when it is soft deleted. * */ @Export(name="softDeleteRetentionInDays", refs={Integer.class}, tree="[0]") private Output softDeleteRetentionInDays; /** * @return The amount of time in days that the configuration store will be retained when it is soft deleted. * */ public Output> softDeleteRetentionInDays() { return Codegen.optional(this.softDeleteRetentionInDays); } /** * Resource system metadata. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Resource system metadata. * */ public Output systemData() { return this.systemData; } /** * Resource tags. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return Resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * 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 ConfigurationStore(java.lang.String name) { this(name, ConfigurationStoreArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public ConfigurationStore(java.lang.String name, ConfigurationStoreArgs 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 ConfigurationStore(java.lang.String name, ConfigurationStoreArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:appconfiguration:ConfigurationStore", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private ConfigurationStore(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:appconfiguration:ConfigurationStore", name, null, makeResourceOptions(options, id), false); } private static ConfigurationStoreArgs makeArgs(ConfigurationStoreArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ConfigurationStoreArgs.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:appconfiguration/v20190201preview:ConfigurationStore").build()), Output.of(Alias.builder().type("azure-native:appconfiguration/v20191001:ConfigurationStore").build()), Output.of(Alias.builder().type("azure-native:appconfiguration/v20191101preview:ConfigurationStore").build()), Output.of(Alias.builder().type("azure-native:appconfiguration/v20200601:ConfigurationStore").build()), Output.of(Alias.builder().type("azure-native:appconfiguration/v20200701preview:ConfigurationStore").build()), Output.of(Alias.builder().type("azure-native:appconfiguration/v20210301preview:ConfigurationStore").build()), Output.of(Alias.builder().type("azure-native:appconfiguration/v20211001preview:ConfigurationStore").build()), Output.of(Alias.builder().type("azure-native:appconfiguration/v20220301preview:ConfigurationStore").build()), Output.of(Alias.builder().type("azure-native:appconfiguration/v20220501:ConfigurationStore").build()), Output.of(Alias.builder().type("azure-native:appconfiguration/v20230301:ConfigurationStore").build()), Output.of(Alias.builder().type("azure-native:appconfiguration/v20230801preview:ConfigurationStore").build()), Output.of(Alias.builder().type("azure-native:appconfiguration/v20230901preview:ConfigurationStore").build()), Output.of(Alias.builder().type("azure-native:appconfiguration/v20240501:ConfigurationStore").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 ConfigurationStore get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new ConfigurationStore(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy