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

com.pulumi.azurenative.datafactory.Dataset 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.datafactory;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.datafactory.DatasetArgs;
import com.pulumi.azurenative.datafactory.outputs.AmazonMWSObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.AmazonRdsForOracleTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.AmazonRdsForSqlServerTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.AmazonRedshiftTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.AmazonS3DatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.AvroDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureBlobDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureBlobFSDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureDataExplorerTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureDataLakeStoreDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureDatabricksDeltaLakeDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureMariaDBTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureMySqlTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.AzurePostgreSqlTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureSearchIndexDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureSqlDWTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureSqlMITableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureSqlTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.BinaryDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.CassandraTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.CommonDataServiceForAppsEntityDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.ConcurObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.CosmosDbMongoDbApiCollectionDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.CosmosDbSqlApiCollectionDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.CouchbaseTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.CustomDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.Db2TableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.DelimitedTextDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.DocumentDbCollectionDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.DrillTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.DynamicsAXResourceDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.DynamicsCrmEntityDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.DynamicsEntityDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.EloquaObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.ExcelDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.FileShareDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.GoogleAdWordsObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.GoogleBigQueryObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.GoogleBigQueryV2ObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.GreenplumTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.HBaseObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.HiveObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.HttpDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.HubspotObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.IcebergDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.ImpalaObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.InformixTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.JiraObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.JsonDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.LakeHouseTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.MagentoObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.MariaDBTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.MarketoObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.MicrosoftAccessTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.MongoDbAtlasCollectionDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.MongoDbCollectionDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.MongoDbV2CollectionDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.MySqlTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.NetezzaTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.ODataResourceDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.OdbcTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.Office365DatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.OracleServiceCloudObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.OracleTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.OrcDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.ParquetDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.PaypalObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.PhoenixObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.PostgreSqlTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.PostgreSqlV2TableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.PrestoObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.QuickBooksObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.RelationalTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.ResponsysObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.RestResourceDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.SalesforceMarketingCloudObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.SalesforceObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.SalesforceServiceCloudObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.SalesforceServiceCloudV2ObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.SalesforceV2ObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.SapBwCubeDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.SapCloudForCustomerResourceDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.SapEccResourceDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.SapHanaTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.SapOdpResourceDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.SapOpenHubTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.SapTableResourceDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.ServiceNowObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.ServiceNowV2ObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.SharePointOnlineListResourceDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.ShopifyObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.SnowflakeDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.SnowflakeV2DatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.SparkObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.SqlServerTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.SquareObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.SybaseTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.TeradataTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.VerticaTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.WarehouseTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.WebTableDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.XeroObjectDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.XmlDatasetResponse;
import com.pulumi.azurenative.datafactory.outputs.ZohoObjectDatasetResponse;
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 javax.annotation.Nullable;

/**
 * Dataset resource type.
 * Azure REST API version: 2018-06-01. Prior API version in Azure Native 1.x: 2018-06-01.
 * 
 * ## Example Usage
 * ### Datasets_Create
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.datafactory.Dataset;
 * import com.pulumi.azurenative.datafactory.DatasetArgs;
 * 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 dataset = new Dataset("dataset", DatasetArgs.builder()
 *             .datasetName("exampleDataset")
 *             .factoryName("exampleFactoryName")
 *             .properties(AzureBlobDatasetArgs.builder()
 *                 .fileName(Map.ofEntries(
 *                     Map.entry("type", "Expression"),
 *                     Map.entry("value", "}{@literal @}{@code dataset().MyFileName")
 *                 ))
 *                 .folderPath(Map.ofEntries(
 *                     Map.entry("type", "Expression"),
 *                     Map.entry("value", "}{@literal @}{@code dataset().MyFolderPath")
 *                 ))
 *                 .format(TextFormatArgs.builder()
 *                     .type("TextFormat")
 *                     .build())
 *                 .linkedServiceName(LinkedServiceReferenceArgs.builder()
 *                     .referenceName("exampleLinkedService")
 *                     .type("LinkedServiceReference")
 *                     .build())
 *                 .parameters(Map.ofEntries(
 *                     Map.entry("MyFileName", Map.of("type", "String")),
 *                     Map.entry("MyFolderPath", Map.of("type", "String"))
 *                 ))
 *                 .type("AzureBlob")
 *                 .build())
 *             .resourceGroupName("exampleResourceGroup")
 *             .build());
 * 
 *     }}{@code
 * }}{@code
 * 
 * }
 * 
* ### Datasets_Update * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.datafactory.Dataset;
 * import com.pulumi.azurenative.datafactory.DatasetArgs;
 * 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 dataset = new Dataset("dataset", DatasetArgs.builder()
 *             .datasetName("exampleDataset")
 *             .factoryName("exampleFactoryName")
 *             .properties(AzureBlobDatasetArgs.builder()
 *                 .description("Example description")
 *                 .fileName(Map.ofEntries(
 *                     Map.entry("type", "Expression"),
 *                     Map.entry("value", "}{@literal @}{@code dataset().MyFileName")
 *                 ))
 *                 .folderPath(Map.ofEntries(
 *                     Map.entry("type", "Expression"),
 *                     Map.entry("value", "}{@literal @}{@code dataset().MyFolderPath")
 *                 ))
 *                 .format(TextFormatArgs.builder()
 *                     .type("TextFormat")
 *                     .build())
 *                 .linkedServiceName(LinkedServiceReferenceArgs.builder()
 *                     .referenceName("exampleLinkedService")
 *                     .type("LinkedServiceReference")
 *                     .build())
 *                 .parameters(Map.ofEntries(
 *                     Map.entry("MyFileName", Map.of("type", "String")),
 *                     Map.entry("MyFolderPath", Map.of("type", "String"))
 *                 ))
 *                 .type("AzureBlob")
 *                 .build())
 *             .resourceGroupName("exampleResourceGroup")
 *             .build());
 * 
 *     }}{@code
 * }}{@code
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:datafactory:Dataset exampleDataset /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/datasets/{datasetName} * ``` * */ @ResourceType(type="azure-native:datafactory:Dataset") public class Dataset extends com.pulumi.resources.CustomResource { /** * Etag identifies change in the resource. * */ @Export(name="etag", refs={String.class}, tree="[0]") private Output etag; /** * @return Etag identifies change in the resource. * */ public Output etag() { return this.etag; } /** * The resource name. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The resource name. * */ public Output name() { return this.name; } /** * Dataset properties. * */ @Export(name="properties", refs={Object.class}, tree="[0]") private Output properties; /** * @return Dataset properties. * */ public Output properties() { return this.properties; } /** * The resource type. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The resource type. * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public Dataset(java.lang.String name) { this(name, DatasetArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Dataset(java.lang.String name, DatasetArgs 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 Dataset(java.lang.String name, DatasetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:datafactory:Dataset", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Dataset(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:datafactory:Dataset", name, null, makeResourceOptions(options, id), false); } private static DatasetArgs makeArgs(DatasetArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? DatasetArgs.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:datafactory/v20170901preview:Dataset").build()), Output.of(Alias.builder().type("azure-native:datafactory/v20180601:Dataset").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 Dataset get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Dataset(name, id, options); } }