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

com.pulumi.azurenative.hybriddata.DataStore 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.hybriddata;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.hybriddata.DataStoreArgs;
import com.pulumi.azurenative.hybriddata.outputs.CustomerSecretResponse;
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.Object;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Data store.
 * Azure REST API version: 2019-06-01. Prior API version in Azure Native 1.x: 2019-06-01.
 * 
 * ## Example Usage
 * ### DataStores_CreateOrUpdate_DataSinkPUT162
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.hybriddata.DataStore;
 * import com.pulumi.azurenative.hybriddata.DataStoreArgs;
 * import com.pulumi.azurenative.hybriddata.inputs.CustomerSecretArgs;
 * 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 dataStore = new DataStore("dataStore", DataStoreArgs.builder()
 *             .customerSecrets(            
 *                 CustomerSecretArgs.builder()
 *                     .algorithm("RSA1_5")
 *                     .keyIdentifier("StorageAccountAccessKey")
 *                     .keyValue("Of4H9eF03G8QuxvkZQEbFWv3YdN3U//WugzuqReQekbXXQyg+QSicVKrwSOOKVi1zWMYGbKg7d5/ES2gdz+O5ZEw89bvE4mJD/wQmkIsqhPnbN0gyVK6nZePXVUU1A+UzjLfvhSA6KyUQfzNAZ5/TLt6fo1JyQrKTtkvnkLFyfv1AqBZ+dw8JK3RZi/rEN8HD3R3qsBwUYfyEuGLGiujy2CGrr/1uPiUVMR6QuFWRsjm39eMSHa4maLg4tQ0IY/jIy8rMlx3KjF3CcCbPzAqEq5vXy37wkjZbus771te1gLSrzcpVKIMg4DrmgaoJ02jAu+izBjNgLXAFPSUneQ8yw==:ezMkh4PMhCnjJtYkpTaP0SdblP5VAeRe4glW2PgIzICHw3T8ZyGDoaTrCv4/m5wtcEhWdtxhta+j1MQWlK5MIA+hvf8QjIDIjQv696ov5y+pcFe/upd2ekGOei7FCwB2u7I8WnkAtIKTUkf6eDQBZXm26DjfG1Dlc+Mjjq+AerukEa6WpOyqrD7Qub26Pgmj4AsuBx19X1EAmTZacubkoiNagXM8V+IDanHOhLMvfgQ7rw8oZhWfofxi4m+eJqjOXXaqSyorNK8UEcqP6P9pDP8AN8ulXEx6rZy2B5Oi0vSV+wlRLbUuQslga4ItOGxctW/ZX8uWozt+5A3k4URt6A==")
 *                     .build(),
 *                 CustomerSecretArgs.builder()
 *                     .algorithm("RSA1_5")
 *                     .keyIdentifier("StorageAccountAccessKeyForQueue")
 *                     .keyValue("Of4H9eF03G8QuxvkZQEbFWv3YdN3U//WugzuqReQekbXXQyg+QSicVKrwSOOKVi1zWMYGbKg7d5/ES2gdz+O5ZEw89bvE4mJD/wQmkIsqhPnbN0gyVK6nZePXVUU1A+UzjLfvhSA6KyUQfzNAZ5/TLt6fo1JyQrKTtkvnkLFyfv1AqBZ+dw8JK3RZi/rEN8HD3R3qsBwUYfyEuGLGiujy2CGrr/1uPiUVMR6QuFWRsjm39eMSHa4maLg4tQ0IY/jIy8rMlx3KjF3CcCbPzAqEq5vXy37wkjZbus771te1gLSrzcpVKIMg4DrmgaoJ02jAu+izBjNgLXAFPSUneQ8yw==:ezMkh4PMhCnjJtYkpTaP0SdblP5VAeRe4glW2PgIzICHw3T8ZyGDoaTrCv4/m5wtcEhWdtxhta+j1MQWlK5MIA+hvf8QjIDIjQv696ov5y+pcFe/upd2ekGOei7FCwB2u7I8WnkAtIKTUkf6eDQBZXm26DjfG1Dlc+Mjjq+AerukEa6WpOyqrD7Qub26Pgmj4AsuBx19X1EAmTZacubkoiNagXM8V+IDanHOhLMvfgQ7rw8oZhWfofxi4m+eJqjOXXaqSyorNK8UEcqP6P9pDP8AN8ulXEx6rZy2B5Oi0vSV+wlRLbUuQslga4ItOGxctW/ZX8uWozt+5A3k4URt6A==")
 *                     .build())
 *             .dataManagerName("TestAzureSDKOperations")
 *             .dataStoreName("TestAzureStorage1")
 *             .dataStoreTypeId("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/AzureStorageAccount")
 *             .extendedProperties(Map.ofEntries(
 *                 Map.entry("extendedSaKey", null),
 *                 Map.entry("extendedSaName", "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.Storage/storageAccounts/dmsdatasink"),
 *                 Map.entry("storageAccountNameForQueue", "/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.Storage/storageAccounts/dmsdatasink")
 *             ))
 *             .repositoryId("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.Storage/storageAccounts/dmsdatasink")
 *             .resourceGroupName("ResourceGroupForSDKTest")
 *             .state("Enabled")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### DataStores_CreateOrUpdate_DataSourcePUT162 * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.hybriddata.DataStore;
 * import com.pulumi.azurenative.hybriddata.DataStoreArgs;
 * import com.pulumi.azurenative.hybriddata.inputs.CustomerSecretArgs;
 * 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 dataStore = new DataStore("dataStore", DataStoreArgs.builder()
 *             .customerSecrets(CustomerSecretArgs.builder()
 *                 .algorithm("RSA1_5")
 *                 .keyIdentifier("ServiceEncryptionKey")
 *                 .keyValue("EVuEBV40qv23xDRL4NZBuMms4e3So6ikHjrQYRvG9NloqxdgPOg+ZYzpho5lytI4fmv0ANmRIvDiDboRXcUVSjbB9T2gm19fMIuwZa4FK2+LYEgMqKK1GaLkk7xC8f5IeFUXLo6KyBBpaAiayTnWDcHuYEpMiGrV7trDDcbhMRefO3CHecmH3Z7ye8L0RQ/e7WW8GlCKZj3m0BaG7OrJgjai8gyDfMfGAG5rTqEhDVh2hLQ+TjvUjcOFwHvJusqKTENtbJTNQYmL9wZXsnwBvUwxqrGieILNB7V3GD1Ow9OiV0UCDW1e9LnMueukg+l7YJCU9FUhIPh/nSif6p32zw==:jCfio+pDtY3BSPZDpDJ0L6QdXLYMeOmxaFWtYTOZkNqNTgT8Loc/KSQRjtWS5K4N4btbznuSJ/dzg0aZEzlXgKDSuZgMfd4Ch92ZwAC/BkeCmVrTjiKJsoQXO1IICCUf7GHGBbYnnpsNJcEn4vyc9NXyKwOBjeU+I9AyK7PtYiC03RLpTS6xttFCICteBV0uoBHAiV0chZ5VIIUUMjO9u8EhHqRY7NNcGbWdVJeAb6J3vH4E/DHkQj+DXlpjcLvmK/uqBwxfNju30RJhR04Nmz6zcv/zTcvS0uN5hEPQoHLyv84hjnc4omg/gmNjo2cDW64QxA3RTJ5Sl///4xTBkg==")
 *                 .build())
 *             .dataManagerName("TestAzureSDKOperations")
 *             .dataStoreName("TestStorSimpleSource1")
 *             .dataStoreTypeId("/subscriptions/6e0219f5-327a-4365-904f-05eed4227ad7/resourceGroups/ResourceGroupForSDKTest/providers/Microsoft.HybridData/dataManagers/TestAzureSDKOperations/dataStoreTypes/StorSimple8000Series")
 *             .extendedProperties(Map.ofEntries(
 *                 Map.entry("extendedSaKey", null),
 *                 Map.entry("resourceId", "/subscriptions/c5fc377d-0085-41b9-86b7-cc96dc56d1e9/resourceGroups/ForDMS/providers/Microsoft.StorSimple/managers/BLR8600")
 *             ))
 *             .repositoryId("/subscriptions/c5fc377d-0085-41b9-86b7-cc96dc56d1e9/resourceGroups/ForDMS/providers/Microsoft.StorSimple/managers/BLR8600")
 *             .resourceGroupName("ResourceGroupForSDKTest")
 *             .state("Enabled")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:hybriddata:DataStore TestStorSimpleSource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridData/dataManagers/{dataManagerName}/dataStores/{dataStoreName} * ``` * */ @ResourceType(type="azure-native:hybriddata:DataStore") public class DataStore extends com.pulumi.resources.CustomResource { /** * List of customer secrets containing a key identifier and key value. The key identifier is a way for the specific data source to understand the key. Value contains customer secret encrypted by the encryptionKeys. * */ @Export(name="customerSecrets", refs={List.class,CustomerSecretResponse.class}, tree="[0,1]") private Output> customerSecrets; /** * @return List of customer secrets containing a key identifier and key value. The key identifier is a way for the specific data source to understand the key. Value contains customer secret encrypted by the encryptionKeys. * */ public Output>> customerSecrets() { return Codegen.optional(this.customerSecrets); } /** * The arm id of the data store type. * */ @Export(name="dataStoreTypeId", refs={String.class}, tree="[0]") private Output dataStoreTypeId; /** * @return The arm id of the data store type. * */ public Output dataStoreTypeId() { return this.dataStoreTypeId; } /** * A generic json used differently by each data source type. * */ @Export(name="extendedProperties", refs={Object.class}, tree="[0]") private Output extendedProperties; /** * @return A generic json used differently by each data source type. * */ public Output> extendedProperties() { return Codegen.optional(this.extendedProperties); } /** * Name of the object. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Name of the object. * */ public Output name() { return this.name; } /** * Arm Id for the manager resource to which the data source is associated. This is optional. * */ @Export(name="repositoryId", refs={String.class}, tree="[0]") private Output repositoryId; /** * @return Arm Id for the manager resource to which the data source is associated. This is optional. * */ public Output> repositoryId() { return Codegen.optional(this.repositoryId); } /** * State of the data source. * */ @Export(name="state", refs={String.class}, tree="[0]") private Output state; /** * @return State of the data source. * */ public Output state() { return this.state; } /** * Type of the object. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Type of the object. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public DataStore(java.lang.String name) { this(name, DataStoreArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public DataStore(java.lang.String name, DataStoreArgs 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 DataStore(java.lang.String name, DataStoreArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:hybriddata:DataStore", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private DataStore(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:hybriddata:DataStore", name, null, makeResourceOptions(options, id), false); } private static DataStoreArgs makeArgs(DataStoreArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? DataStoreArgs.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:hybriddata/v20160601:DataStore").build()), Output.of(Alias.builder().type("azure-native:hybriddata/v20190601:DataStore").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 DataStore get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new DataStore(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy