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

com.pulumi.azurenative.datafactory.LinkedService Maven / Gradle / Ivy

There is a newer version: 2.72.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.LinkedServiceArgs;
import com.pulumi.azurenative.datafactory.outputs.AmazonMWSLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AmazonRdsForOracleLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AmazonRdsForSqlServerLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AmazonRedshiftLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AmazonS3CompatibleLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AmazonS3LinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AppFiguresLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AsanaLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureBatchLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureBlobFSLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureBlobStorageLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureDataExplorerLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureDataLakeAnalyticsLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureDataLakeStoreLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureDatabricksDeltaLakeLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureDatabricksLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureFileStorageLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureFunctionLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureKeyVaultLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureMLLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureMLServiceLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureMariaDBLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureMySqlLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzurePostgreSqlLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureSearchLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureSqlDWLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureSqlDatabaseLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureSqlMILinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureStorageLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureSynapseArtifactsLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.AzureTableStorageLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.CassandraLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.CommonDataServiceForAppsLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.ConcurLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.CosmosDbLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.CosmosDbMongoDbApiLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.CouchbaseLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.CustomDataSourceLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.DataworldLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.Db2LinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.DrillLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.DynamicsAXLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.DynamicsCrmLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.DynamicsLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.EloquaLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.FileServerLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.FtpServerLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.GoogleAdWordsLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.GoogleBigQueryLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.GoogleBigQueryV2LinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.GoogleCloudStorageLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.GoogleSheetsLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.GreenplumLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.HBaseLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.HDInsightLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.HDInsightOnDemandLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.HdfsLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.HiveLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.HttpLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.HubspotLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.ImpalaLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.InformixLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.JiraLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.LakeHouseLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.MagentoLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.MariaDBLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.MarketoLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.MicrosoftAccessLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.MongoDbAtlasLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.MongoDbLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.MongoDbV2LinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.MySqlLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.NetezzaLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.ODataLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.OdbcLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.Office365LinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.OracleCloudStorageLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.OracleLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.OracleServiceCloudLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.PaypalLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.PhoenixLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.PostgreSqlLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.PostgreSqlV2LinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.PrestoLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.QuickBooksLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.QuickbaseLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.ResponsysLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.RestServiceLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SalesforceLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SalesforceMarketingCloudLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SalesforceServiceCloudLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SalesforceServiceCloudV2LinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SalesforceV2LinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SapBWLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SapCloudForCustomerLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SapEccLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SapHanaLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SapOdpLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SapOpenHubLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SapTableLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.ServiceNowLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.ServiceNowV2LinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SftpServerLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SharePointOnlineListLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.ShopifyLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SmartsheetLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SnowflakeLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SnowflakeV2LinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SparkLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SqlServerLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SquareLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.SybaseLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.TeamDeskLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.TeradataLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.TwilioLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.VerticaLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.WarehouseLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.WebLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.XeroLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.ZendeskLinkedServiceResponse;
import com.pulumi.azurenative.datafactory.outputs.ZohoLinkedServiceResponse;
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;

/**
 * Linked service resource type.
 * Azure REST API version: 2018-06-01. Prior API version in Azure Native 1.x: 2018-06-01.
 * 
 * ## Example Usage
 * ### LinkedServices_Create
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.datafactory.LinkedService;
 * import com.pulumi.azurenative.datafactory.LinkedServiceArgs;
 * 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 linkedService = new LinkedService("linkedService", LinkedServiceArgs.builder()
 *             .factoryName("exampleFactoryName")
 *             .linkedServiceName("exampleLinkedService")
 *             .properties(AzureStorageLinkedServiceArgs.builder()
 *                 .connectionString(Map.ofEntries(
 *                     Map.entry("type", "SecureString"),
 *                     Map.entry("value", "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=")
 *                 ))
 *                 .type("AzureStorage")
 *                 .build())
 *             .resourceGroupName("exampleResourceGroup")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### LinkedServices_Update * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.datafactory.LinkedService;
 * import com.pulumi.azurenative.datafactory.LinkedServiceArgs;
 * 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 linkedService = new LinkedService("linkedService", LinkedServiceArgs.builder()
 *             .factoryName("exampleFactoryName")
 *             .linkedServiceName("exampleLinkedService")
 *             .properties(AzureStorageLinkedServiceArgs.builder()
 *                 .connectionString(Map.ofEntries(
 *                     Map.entry("type", "SecureString"),
 *                     Map.entry("value", "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=")
 *                 ))
 *                 .description("Example description")
 *                 .type("AzureStorage")
 *                 .build())
 *             .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:LinkedService exampleLinkedService /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/linkedservices/{linkedServiceName} * ``` * */ @ResourceType(type="azure-native:datafactory:LinkedService") public class LinkedService 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; } /** * Properties of linked service. * */ @Export(name="properties", refs={Object.class}, tree="[0]") private Output properties; /** * @return Properties of linked service. * */ 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 LinkedService(java.lang.String name) { this(name, LinkedServiceArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public LinkedService(java.lang.String name, LinkedServiceArgs 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 LinkedService(java.lang.String name, LinkedServiceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:datafactory:LinkedService", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private LinkedService(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:datafactory:LinkedService", name, null, makeResourceOptions(options, id), false); } private static LinkedServiceArgs makeArgs(LinkedServiceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? LinkedServiceArgs.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:LinkedService").build()), Output.of(Alias.builder().type("azure-native:datafactory/v20180601:LinkedService").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 LinkedService get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new LinkedService(name, id, options); } }