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

com.pulumi.azurenative.datafactory.Factory 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.FactoryArgs;
import com.pulumi.azurenative.datafactory.outputs.EncryptionConfigurationResponse;
import com.pulumi.azurenative.datafactory.outputs.FactoryGitHubConfigurationResponse;
import com.pulumi.azurenative.datafactory.outputs.FactoryIdentityResponse;
import com.pulumi.azurenative.datafactory.outputs.FactoryVSTSConfigurationResponse;
import com.pulumi.azurenative.datafactory.outputs.GlobalParameterSpecificationResponse;
import com.pulumi.azurenative.datafactory.outputs.PurviewConfigurationResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Either;
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.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Factory resource type.
 * Azure REST API version: 2018-06-01. Prior API version in Azure Native 1.x: 2018-06-01.
 * 
 * Other available API versions: 2017-09-01-preview.
 * 
 * ## Example Usage
 * ### Factories_CreateOrUpdate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.datafactory.Factory;
 * import com.pulumi.azurenative.datafactory.FactoryArgs;
 * 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 factory = new Factory("factory", FactoryArgs.builder()
 *             .factoryName("exampleFactoryName")
 *             .location("East US")
 *             .resourceGroupName("exampleResourceGroup")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:datafactory:Factory exampleFactoryName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName} * ``` * */ @ResourceType(type="azure-native:datafactory:Factory") public class Factory extends com.pulumi.resources.CustomResource { /** * Time the factory was created in ISO8601 format. * */ @Export(name="createTime", refs={String.class}, tree="[0]") private Output createTime; /** * @return Time the factory was created in ISO8601 format. * */ public Output createTime() { return this.createTime; } /** * 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; } /** * Properties to enable Customer Managed Key for the factory. * */ @Export(name="encryption", refs={EncryptionConfigurationResponse.class}, tree="[0]") private Output encryption; /** * @return Properties to enable Customer Managed Key for the factory. * */ public Output> encryption() { return Codegen.optional(this.encryption); } /** * List of parameters for factory. * */ @Export(name="globalParameters", refs={Map.class,String.class,GlobalParameterSpecificationResponse.class}, tree="[0,1,2]") private Output> globalParameters; /** * @return List of parameters for factory. * */ public Output>> globalParameters() { return Codegen.optional(this.globalParameters); } /** * Managed service identity of the factory. * */ @Export(name="identity", refs={FactoryIdentityResponse.class}, tree="[0]") private Output identity; /** * @return Managed service identity of the factory. * */ public Output> identity() { return Codegen.optional(this.identity); } /** * The resource location. * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The resource location. * */ public Output> location() { return Codegen.optional(this.location); } /** * The resource name. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The resource name. * */ public Output name() { return this.name; } /** * Factory provisioning state, example Succeeded. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Factory provisioning state, example Succeeded. * */ public Output provisioningState() { return this.provisioningState; } /** * Whether or not public network access is allowed for the data factory. * */ @Export(name="publicNetworkAccess", refs={String.class}, tree="[0]") private Output publicNetworkAccess; /** * @return Whether or not public network access is allowed for the data factory. * */ public Output> publicNetworkAccess() { return Codegen.optional(this.publicNetworkAccess); } /** * Purview information of the factory. * */ @Export(name="purviewConfiguration", refs={PurviewConfigurationResponse.class}, tree="[0]") private Output purviewConfiguration; /** * @return Purview information of the factory. * */ public Output> purviewConfiguration() { return Codegen.optional(this.purviewConfiguration); } /** * Git repo information of the factory. * */ @Export(name="repoConfiguration", refs={Either.class,FactoryGitHubConfigurationResponse.class,FactoryVSTSConfigurationResponse.class}, tree="[0,1,2]") private Output> repoConfiguration; /** * @return Git repo information of the factory. * */ public Output>> repoConfiguration() { return Codegen.optional(this.repoConfiguration); } /** * The resource tags. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return The resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * The resource type. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The resource type. * */ public Output type() { return this.type; } /** * Version of the factory. * */ @Export(name="version", refs={String.class}, tree="[0]") private Output version; /** * @return Version of the factory. * */ public Output version() { return this.version; } /** * * @param name The _unique_ name of the resulting resource. */ public Factory(java.lang.String name) { this(name, FactoryArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Factory(java.lang.String name, FactoryArgs 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 Factory(java.lang.String name, FactoryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:datafactory:Factory", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Factory(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:datafactory:Factory", name, null, makeResourceOptions(options, id), false); } private static FactoryArgs makeArgs(FactoryArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? FactoryArgs.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:Factory").build()), Output.of(Alias.builder().type("azure-native:datafactory/v20180601:Factory").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 Factory get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Factory(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy