com.pulumi.azurenative.datafactory.DataFlow Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.DataFlowArgs;
import com.pulumi.azurenative.datafactory.outputs.FlowletResponse;
import com.pulumi.azurenative.datafactory.outputs.MappingDataFlowResponse;
import com.pulumi.azurenative.datafactory.outputs.WranglingDataFlowResponse;
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;
/**
* Data flow resource type.
* Azure REST API version: 2018-06-01. Prior API version in Azure Native 1.x: 2018-06-01.
*
* ## Example Usage
* ### DataFlows_Create
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.datafactory.DataFlow;
* import com.pulumi.azurenative.datafactory.DataFlowArgs;
* 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 dataFlow = new DataFlow("dataFlow", DataFlowArgs.builder()
* .dataFlowName("exampleDataFlow")
* .factoryName("exampleFactoryName")
* .properties(MappingDataFlowArgs.builder()
* .description("Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.")
* .scriptLines(
* "source(output(",
* "PreviousConversionRate as double,",
* "Country as string,",
* "DateTime1 as string,",
* "CurrentConversionRate as double",
* "),",
* "allowSchemaDrift: false,",
* "validateSchema: false) ~> USDCurrency",
* "source(output(",
* "PreviousConversionRate as double,",
* "Country as string,",
* "DateTime1 as string,",
* "CurrentConversionRate as double",
* "),",
* "allowSchemaDrift: true,",
* "validateSchema: false) ~> CADSource",
* "USDCurrency, CADSource union(byName: true)~> Union",
* "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn",
* "NewCurrencyColumn split(Country == 'USD',",
* "Country == 'CAD',disjoint: false) ~> ConditionalSplit1}{@literal @}{@code (USD, CAD)",
* "ConditionalSplit1}{@literal @}{@code USD sink(saveMode:'overwrite' ) ~> USDSink",
* "ConditionalSplit1}{@literal @}{@code CAD sink(saveMode:'overwrite' ) ~> CADSink")
* .sinks(
* DataFlowSinkArgs.builder()
* .dataset(DatasetReferenceArgs.builder()
* .referenceName("USDOutput")
* .type("DatasetReference")
* .build())
* .name("USDSink")
* .build(),
* DataFlowSinkArgs.builder()
* .dataset(DatasetReferenceArgs.builder()
* .referenceName("CADOutput")
* .type("DatasetReference")
* .build())
* .name("CADSink")
* .build())
* .sources(
* DataFlowSourceArgs.builder()
* .dataset(DatasetReferenceArgs.builder()
* .referenceName("CurrencyDatasetUSD")
* .type("DatasetReference")
* .build())
* .name("USDCurrency")
* .build(),
* DataFlowSourceArgs.builder()
* .dataset(DatasetReferenceArgs.builder()
* .referenceName("CurrencyDatasetCAD")
* .type("DatasetReference")
* .build())
* .name("CADSource")
* .build())
* .type("MappingDataFlow")
* .build())
* .resourceGroupName("exampleResourceGroup")
* .build());
*
* }}{@code
* }}{@code
*
* }
*
* ### DataFlows_Update
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.datafactory.DataFlow;
* import com.pulumi.azurenative.datafactory.DataFlowArgs;
* 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 dataFlow = new DataFlow("dataFlow", DataFlowArgs.builder()
* .dataFlowName("exampleDataFlow")
* .factoryName("exampleFactoryName")
* .properties(MappingDataFlowArgs.builder()
* .description("Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.")
* .scriptLines(
* "source(output(",
* "PreviousConversionRate as double,",
* "Country as string,",
* "DateTime1 as string,",
* "CurrentConversionRate as double",
* "),",
* "allowSchemaDrift: false,",
* "validateSchema: false) ~> USDCurrency",
* "source(output(",
* "PreviousConversionRate as double,",
* "Country as string,",
* "DateTime1 as string,",
* "CurrentConversionRate as double",
* "),",
* "allowSchemaDrift: true,",
* "validateSchema: false) ~> CADSource",
* "USDCurrency, CADSource union(byName: true)~> Union",
* "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn",
* "NewCurrencyColumn split(Country == 'USD',",
* "Country == 'CAD',disjoint: false) ~> ConditionalSplit1}{@literal @}{@code (USD, CAD)",
* "ConditionalSplit1}{@literal @}{@code USD sink(saveMode:'overwrite' ) ~> USDSink",
* "ConditionalSplit1}{@literal @}{@code CAD sink(saveMode:'overwrite' ) ~> CADSink")
* .sinks(
* DataFlowSinkArgs.builder()
* .dataset(DatasetReferenceArgs.builder()
* .referenceName("USDOutput")
* .type("DatasetReference")
* .build())
* .name("USDSink")
* .build(),
* DataFlowSinkArgs.builder()
* .dataset(DatasetReferenceArgs.builder()
* .referenceName("CADOutput")
* .type("DatasetReference")
* .build())
* .name("CADSink")
* .build())
* .sources(
* DataFlowSourceArgs.builder()
* .dataset(DatasetReferenceArgs.builder()
* .referenceName("CurrencyDatasetUSD")
* .type("DatasetReference")
* .build())
* .name("USDCurrency")
* .build(),
* DataFlowSourceArgs.builder()
* .dataset(DatasetReferenceArgs.builder()
* .referenceName("CurrencyDatasetCAD")
* .type("DatasetReference")
* .build())
* .name("CADSource")
* .build())
* .type("MappingDataFlow")
* .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:DataFlow exampleDataFlow /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/dataflows/{dataFlowName}
* ```
*
*/
@ResourceType(type="azure-native:datafactory:DataFlow")
public class DataFlow 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;
}
/**
* Data flow properties.
*
*/
@Export(name="properties", refs={Object.class}, tree="[0]")
private Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy