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

com.pulumi.azure.machinelearning.DatastoreBlobstorage Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.machinelearning;

import com.pulumi.azure.Utilities;
import com.pulumi.azure.machinelearning.DatastoreBlobstorageArgs;
import com.pulumi.azure.machinelearning.inputs.DatastoreBlobstorageState;
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.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Manages a Machine Learning Blob Storage DataStore.
 * 
 * ## Example Usage
 * 
 * ### With Azure Blob
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.CoreFunctions;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.appinsights.Insights;
 * import com.pulumi.azure.appinsights.InsightsArgs;
 * import com.pulumi.azure.keyvault.KeyVault;
 * import com.pulumi.azure.keyvault.KeyVaultArgs;
 * import com.pulumi.azure.storage.Account;
 * import com.pulumi.azure.storage.AccountArgs;
 * import com.pulumi.azure.machinelearning.Workspace;
 * import com.pulumi.azure.machinelearning.WorkspaceArgs;
 * import com.pulumi.azure.machinelearning.inputs.WorkspaceIdentityArgs;
 * import com.pulumi.azure.storage.Container;
 * import com.pulumi.azure.storage.ContainerArgs;
 * import com.pulumi.azure.machinelearning.DatastoreBlobstorage;
 * import com.pulumi.azure.machinelearning.DatastoreBlobstorageArgs;
 * 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) {
 *         final var current = CoreFunctions.getClientConfig();
 * 
 *         var example = new ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 * 
 *         var exampleInsights = new Insights("exampleInsights", InsightsArgs.builder()
 *             .name("workspace-example-ai")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .applicationType("web")
 *             .build());
 * 
 *         var exampleKeyVault = new KeyVault("exampleKeyVault", KeyVaultArgs.builder()
 *             .name("workspaceexamplekeyvault")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
 *             .skuName("premium")
 *             .build());
 * 
 *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("workspacestorageaccount")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .accountTier("Standard")
 *             .accountReplicationType("GRS")
 *             .build());
 * 
 *         var exampleWorkspace = new Workspace("exampleWorkspace", WorkspaceArgs.builder()
 *             .name("example-workspace")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .applicationInsightsId(exampleInsights.id())
 *             .keyVaultId(exampleKeyVault.id())
 *             .storageAccountId(exampleAccount.id())
 *             .identity(WorkspaceIdentityArgs.builder()
 *                 .type("SystemAssigned")
 *                 .build())
 *             .build());
 * 
 *         var exampleContainer = new Container("exampleContainer", ContainerArgs.builder()
 *             .name("example-container")
 *             .storageAccountName(exampleAccount.name())
 *             .containerAccessType("private")
 *             .build());
 * 
 *         var exampleDatastoreBlobstorage = new DatastoreBlobstorage("exampleDatastoreBlobstorage", DatastoreBlobstorageArgs.builder()
 *             .name("example-datastore")
 *             .workspaceId(exampleWorkspace.id())
 *             .storageContainerId(exampleContainer.resourceManagerId())
 *             .accountKey(exampleAccount.primaryAccessKey())
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * Machine Learning DataStores can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:machinelearning/datastoreBlobstorage:DatastoreBlobstorage example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.MachineLearningServices/workspaces/mlw1/dataStores/datastore1 * ``` * */ @ResourceType(type="azure:machinelearning/datastoreBlobstorage:DatastoreBlobstorage") public class DatastoreBlobstorage extends com.pulumi.resources.CustomResource { /** * The access key of the Storage Account. Conflicts with `shared_access_signature`. * */ @Export(name="accountKey", refs={String.class}, tree="[0]") private Output accountKey; /** * @return The access key of the Storage Account. Conflicts with `shared_access_signature`. * */ public Output> accountKey() { return Codegen.optional(this.accountKey); } /** * Text used to describe the asset. Changing this forces a new Machine Learning DataStore to be created. * */ @Export(name="description", refs={String.class}, tree="[0]") private Output description; /** * @return Text used to describe the asset. Changing this forces a new Machine Learning DataStore to be created. * */ public Output> description() { return Codegen.optional(this.description); } /** * Specifies whether this Machines Learning DataStore is the default for the Workspace. Defaults to `false`. * * > **Note:** `is_default` can only be set to `true` on update. * */ @Export(name="isDefault", refs={Boolean.class}, tree="[0]") private Output isDefault; /** * @return Specifies whether this Machines Learning DataStore is the default for the Workspace. Defaults to `false`. * * > **Note:** `is_default` can only be set to `true` on update. * */ public Output> isDefault() { return Codegen.optional(this.isDefault); } /** * The name of the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created. * */ public Output name() { return this.name; } /** * Specifies which identity to use when retrieving data from the specified source. Defaults to `None`. Possible values are `None`, `WorkspaceSystemAssignedIdentity` and `WorkspaceUserAssignedIdentity`. * */ @Export(name="serviceDataAuthIdentity", refs={String.class}, tree="[0]") private Output serviceDataAuthIdentity; /** * @return Specifies which identity to use when retrieving data from the specified source. Defaults to `None`. Possible values are `None`, `WorkspaceSystemAssignedIdentity` and `WorkspaceUserAssignedIdentity`. * */ public Output> serviceDataAuthIdentity() { return Codegen.optional(this.serviceDataAuthIdentity); } /** * The Shared Access Signature of the Storage Account. Conflicts with `account_key`. * * > **Note:** One of `account_key` or `shared_access_signature` must be specified. * */ @Export(name="sharedAccessSignature", refs={String.class}, tree="[0]") private Output sharedAccessSignature; /** * @return The Shared Access Signature of the Storage Account. Conflicts with `account_key`. * * > **Note:** One of `account_key` or `shared_access_signature` must be specified. * */ public Output> sharedAccessSignature() { return Codegen.optional(this.sharedAccessSignature); } /** * The ID of the Storage Account Container. Changing this forces a new Machine Learning DataStore to be created. * */ @Export(name="storageContainerId", refs={String.class}, tree="[0]") private Output storageContainerId; /** * @return The ID of the Storage Account Container. Changing this forces a new Machine Learning DataStore to be created. * */ public Output storageContainerId() { return this.storageContainerId; } /** * A mapping of tags which should be assigned to the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return A mapping of tags which should be assigned to the Machine Learning DataStore. Changing this forces a new Machine Learning DataStore to be created. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning DataStore to be created. * */ @Export(name="workspaceId", refs={String.class}, tree="[0]") private Output workspaceId; /** * @return The ID of the Machine Learning Workspace. Changing this forces a new Machine Learning DataStore to be created. * */ public Output workspaceId() { return this.workspaceId; } /** * * @param name The _unique_ name of the resulting resource. */ public DatastoreBlobstorage(java.lang.String name) { this(name, DatastoreBlobstorageArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public DatastoreBlobstorage(java.lang.String name, DatastoreBlobstorageArgs 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 DatastoreBlobstorage(java.lang.String name, DatastoreBlobstorageArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:machinelearning/datastoreBlobstorage:DatastoreBlobstorage", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private DatastoreBlobstorage(java.lang.String name, Output id, @Nullable DatastoreBlobstorageState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:machinelearning/datastoreBlobstorage:DatastoreBlobstorage", name, state, makeResourceOptions(options, id), false); } private static DatastoreBlobstorageArgs makeArgs(DatastoreBlobstorageArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? DatastoreBlobstorageArgs.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( "accountKey", "sharedAccessSignature" )) .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 DatastoreBlobstorage get(java.lang.String name, Output id, @Nullable DatastoreBlobstorageState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new DatastoreBlobstorage(name, id, state, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy