com.pulumi.azurenative.streamanalytics.Output 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.streamanalytics;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.streamanalytics.OutputArgs;
import com.pulumi.azurenative.streamanalytics.outputs.AvroSerializationResponse;
import com.pulumi.azurenative.streamanalytics.outputs.AzureDataLakeStoreOutputDataSourceResponse;
import com.pulumi.azurenative.streamanalytics.outputs.AzureFunctionOutputDataSourceResponse;
import com.pulumi.azurenative.streamanalytics.outputs.AzureSqlDatabaseOutputDataSourceResponse;
import com.pulumi.azurenative.streamanalytics.outputs.AzureSynapseOutputDataSourceResponse;
import com.pulumi.azurenative.streamanalytics.outputs.AzureTableOutputDataSourceResponse;
import com.pulumi.azurenative.streamanalytics.outputs.BlobOutputDataSourceResponse;
import com.pulumi.azurenative.streamanalytics.outputs.CsvSerializationResponse;
import com.pulumi.azurenative.streamanalytics.outputs.DiagnosticsResponse;
import com.pulumi.azurenative.streamanalytics.outputs.DocumentDbOutputDataSourceResponse;
import com.pulumi.azurenative.streamanalytics.outputs.EventHubOutputDataSourceResponse;
import com.pulumi.azurenative.streamanalytics.outputs.EventHubV2OutputDataSourceResponse;
import com.pulumi.azurenative.streamanalytics.outputs.GatewayMessageBusOutputDataSourceResponse;
import com.pulumi.azurenative.streamanalytics.outputs.JsonSerializationResponse;
import com.pulumi.azurenative.streamanalytics.outputs.ParquetSerializationResponse;
import com.pulumi.azurenative.streamanalytics.outputs.PowerBIOutputDataSourceResponse;
import com.pulumi.azurenative.streamanalytics.outputs.ServiceBusQueueOutputDataSourceResponse;
import com.pulumi.azurenative.streamanalytics.outputs.ServiceBusTopicOutputDataSourceResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Integer;
import java.lang.Object;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* An output object, containing all information associated with the named output. All outputs are contained under a streaming job.
* Azure REST API version: 2020-03-01. Prior API version in Azure Native 1.x: 2016-03-01.
*
* Other available API versions: 2021-10-01-preview.
*
* ## Example Usage
* ### Create a DocumentDB output
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.streamanalytics.Output;
* import com.pulumi.azurenative.streamanalytics.OutputArgs;
* 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 output = new Output("output", OutputArgs.builder()
* .datasource(AzureDataLakeStoreOutputDataSourceArgs.builder()
* .accountId("someAccountId")
* .accountKey("accountKey==")
* .collectionNamePattern("collection")
* .database("db01")
* .documentId("documentId")
* .partitionKey("key")
* .type("Microsoft.Storage/DocumentDB")
* .build())
* .jobName("sj2331")
* .outputName("output3022")
* .resourceGroupName("sjrg7983")
* .build());
*
* }
* }
*
* }
*
* ### Create a Gateway Message Bus output
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.streamanalytics.Output;
* import com.pulumi.azurenative.streamanalytics.OutputArgs;
* 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 output = new Output("output", OutputArgs.builder()
* .datasource(GatewayMessageBusOutputDataSourceArgs.builder()
* .topic("EdgeTopic1")
* .type("GatewayMessageBus")
* .build())
* .jobName("sj2331")
* .outputName("output3022")
* .resourceGroupName("sjrg7983")
* .build());
*
* }
* }
*
* }
*
* ### Create a Power BI output
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.streamanalytics.Output;
* import com.pulumi.azurenative.streamanalytics.OutputArgs;
* 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 output = new Output("output", OutputArgs.builder()
* .datasource(PowerBIOutputDataSourceArgs.builder()
* .dataset("someDataset")
* .groupId("ac40305e-3e8d-43ac-8161-c33799f43e95")
* .groupName("MyPowerBIGroup")
* .refreshToken("someRefreshToken==")
* .table("someTable")
* .tokenUserDisplayName("Bob Smith")
* .tokenUserPrincipalName("bobsmith}{@literal @}{@code contoso.com")
* .type("PowerBI")
* .build())
* .jobName("sj2331")
* .outputName("output3022")
* .resourceGroupName("sjrg7983")
* .build());
*
* }}{@code
* }}{@code
*
* }
*
* ### Create a Service Bus Queue output with Avro serialization
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.streamanalytics.Output;
* import com.pulumi.azurenative.streamanalytics.OutputArgs;
* 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 output = new Output("output", OutputArgs.builder()
* .datasource(AzureDataLakeStoreOutputDataSourceArgs.builder()
* .propertyColumns(
* "column1",
* "column2")
* .queueName("sdkqueue")
* .serviceBusNamespace("sdktest")
* .sharedAccessPolicyKey("sharedAccessPolicyKey=")
* .sharedAccessPolicyName("RootManageSharedAccessKey")
* .systemPropertyColumns(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
* .type("Microsoft.ServiceBus/Queue")
* .build())
* .jobName("sj5095")
* .outputName("output3456")
* .resourceGroupName("sjrg3410")
* .serialization(AvroSerializationArgs.builder()
* .type("Avro")
* .build())
* .build());
*
* }
* }
*
* }
*
* ### Create a Service Bus Topic output with CSV serialization
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.streamanalytics.Output;
* import com.pulumi.azurenative.streamanalytics.OutputArgs;
* 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 output = new Output("output", OutputArgs.builder()
* .datasource(AzureDataLakeStoreOutputDataSourceArgs.builder()
* .propertyColumns(
* "column1",
* "column2")
* .serviceBusNamespace("sdktest")
* .sharedAccessPolicyKey("sharedAccessPolicyKey=")
* .sharedAccessPolicyName("RootManageSharedAccessKey")
* .topicName("sdktopic")
* .type("Microsoft.ServiceBus/Topic")
* .build())
* .jobName("sj7094")
* .outputName("output7886")
* .resourceGroupName("sjrg6450")
* .serialization(CsvSerializationArgs.builder()
* .encoding("UTF8")
* .fieldDelimiter(",")
* .type("Csv")
* .build())
* .build());
*
* }
* }
*
* }
*
* ### Create a blob output with CSV serialization
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.streamanalytics.Output;
* import com.pulumi.azurenative.streamanalytics.OutputArgs;
* 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 output = new Output("output", OutputArgs.builder()
* .datasource(AzureDataLakeStoreOutputDataSourceArgs.builder()
* .container("state")
* .dateFormat("yyyy/MM/dd")
* .pathPattern("{date}/{time}")
* .storageAccounts(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
* .timeFormat("HH")
* .type("Microsoft.Storage/Blob")
* .build())
* .jobName("sj900")
* .outputName("output1623")
* .resourceGroupName("sjrg5023")
* .serialization(CsvSerializationArgs.builder()
* .encoding("UTF8")
* .fieldDelimiter(",")
* .type("Csv")
* .build())
* .build());
*
* }
* }
*
* }
*
* ### Create an Azure Data Lake Store output with JSON serialization
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.streamanalytics.Output;
* import com.pulumi.azurenative.streamanalytics.OutputArgs;
* 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 output = new Output("output", OutputArgs.builder()
* .datasource(AzureDataLakeStoreOutputDataSourceArgs.builder()
* .accountName("someaccount")
* .dateFormat("yyyy/MM/dd")
* .filePathPrefix("}{{@code date}}{@code /}{{@code time}}{@code ")
* .refreshToken("someRefreshToken==")
* .tenantId("cea4e98b-c798-49e7-8c40-4a2b3beb47dd")
* .timeFormat("HH")
* .tokenUserDisplayName("Bob Smith")
* .tokenUserPrincipalName("bobsmith}{@literal @}{@code contoso.com")
* .type("Microsoft.DataLake/Accounts")
* .build())
* .jobName("sj3310")
* .outputName("output5195")
* .resourceGroupName("sjrg6912")
* .serialization(JsonSerializationArgs.builder()
* .encoding("UTF8")
* .format("Array")
* .type("Json")
* .build())
* .build());
*
* }}{@code
* }}{@code
*
* }
*
* ### Create an Azure Data Warehouse output
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.streamanalytics.Output;
* import com.pulumi.azurenative.streamanalytics.OutputArgs;
* 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 output = new Output("output", OutputArgs.builder()
* .datasource(AzureDataLakeStoreOutputDataSourceArgs.builder()
* .database("zhayaSQLpool")
* .password("password123")
* .server("asatestserver")
* .table("test2")
* .type("Microsoft.Sql/Server/DataWarehouse")
* .user("tolladmin")
* .build())
* .jobName("sjName")
* .outputName("dwOutput")
* .resourceGroupName("sjrg")
* .build());
*
* }
* }
*
* }
*
* ### Create an Azure Function output
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.streamanalytics.Output;
* import com.pulumi.azurenative.streamanalytics.OutputArgs;
* 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 output = new Output("output", OutputArgs.builder()
* .datasource(AzureDataLakeStoreOutputDataSourceArgs.builder()
* .functionAppName("functionappforasaautomation")
* .functionName("HttpTrigger2")
* .maxBatchCount(100)
* .maxBatchSize(256)
* .type("Microsoft.AzureFunction")
* .build())
* .jobName("sjName")
* .outputName("azureFunction1")
* .resourceGroupName("sjrg")
* .build());
*
* }
* }
*
* }
*
* ### Create an Azure SQL database output
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.streamanalytics.Output;
* import com.pulumi.azurenative.streamanalytics.OutputArgs;
* 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 output = new Output("output", OutputArgs.builder()
* .datasource(AzureDataLakeStoreOutputDataSourceArgs.builder()
* .database("someDatabase")
* .password("somePassword")
* .server("someServer")
* .table("someTable")
* .type("Microsoft.Sql/Server/Database")
* .user("")
* .build())
* .jobName("sj6458")
* .outputName("output1755")
* .resourceGroupName("sjrg2157")
* .build());
*
* }
* }
*
* }
*
* ### Create an Azure Table output
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.streamanalytics.Output;
* import com.pulumi.azurenative.streamanalytics.OutputArgs;
* 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 output = new Output("output", OutputArgs.builder()
* .datasource(AzureDataLakeStoreOutputDataSourceArgs.builder()
* .accountKey("accountKey==")
* .accountName("someAccountName")
* .batchSize(25)
* .columnsToRemove(
* "column1",
* "column2")
* .partitionKey("partitionKey")
* .rowKey("rowKey")
* .table("samples")
* .type("Microsoft.Storage/Table")
* .build())
* .jobName("sj2790")
* .outputName("output958")
* .resourceGroupName("sjrg5176")
* .build());
*
* }
* }
*
* }
*
* ### Create an Event Hub output with JSON serialization
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.streamanalytics.Output;
* import com.pulumi.azurenative.streamanalytics.OutputArgs;
* 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 output = new Output("output", OutputArgs.builder()
* .datasource(AzureDataLakeStoreOutputDataSourceArgs.builder()
* .eventHubName("sdkeventhub")
* .partitionKey("partitionKey")
* .serviceBusNamespace("sdktest")
* .sharedAccessPolicyKey("sharedAccessPolicyKey=")
* .sharedAccessPolicyName("RootManageSharedAccessKey")
* .type("Microsoft.ServiceBus/EventHub")
* .build())
* .jobName("sj3310")
* .outputName("output5195")
* .resourceGroupName("sjrg6912")
* .serialization(JsonSerializationArgs.builder()
* .encoding("UTF8")
* .format("Array")
* .type("Json")
* .build())
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:streamanalytics:Output output5195 /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StreamAnalytics/streamingjobs/{jobName}/outputs/{outputName}
* ```
*
*/
@ResourceType(type="azure-native:streamanalytics:Output")
public class Output extends com.pulumi.resources.CustomResource {
/**
* Describes the data source that output will be written to. Required on PUT (CreateOrReplace) requests.
*
*/
@Export(name="datasource", refs={Object.class}, tree="[0]")
private com.pulumi.core.Output* @Nullable */ Object> datasource;
/**
* @return Describes the data source that output will be written to. Required on PUT (CreateOrReplace) requests.
*
*/
public com.pulumi.core.Output> datasource() {
return Codegen.optional(this.datasource);
}
/**
* Describes conditions applicable to the Input, Output, or the job overall, that warrant customer attention.
*
*/
@Export(name="diagnostics", refs={DiagnosticsResponse.class}, tree="[0]")
private com.pulumi.core.Output diagnostics;
/**
* @return Describes conditions applicable to the Input, Output, or the job overall, that warrant customer attention.
*
*/
public com.pulumi.core.Output diagnostics() {
return this.diagnostics;
}
/**
* The current entity tag for the output. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency.
*
*/
@Export(name="etag", refs={String.class}, tree="[0]")
private com.pulumi.core.Output etag;
/**
* @return The current entity tag for the output. This is an opaque string. You can use it to detect whether the resource has changed between requests. You can also use it in the If-Match or If-None-Match headers for write operations for optimistic concurrency.
*
*/
public com.pulumi.core.Output etag() {
return this.etag;
}
/**
* Resource name
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private com.pulumi.core.Output* @Nullable */ String> name;
/**
* @return Resource name
*
*/
public com.pulumi.core.Output> name() {
return Codegen.optional(this.name);
}
/**
* Describes how data from an input is serialized or how data is serialized when written to an output. Required on PUT (CreateOrReplace) requests.
*
*/
@Export(name="serialization", refs={Object.class}, tree="[0]")
private com.pulumi.core.Output* @Nullable */ Object> serialization;
/**
* @return Describes how data from an input is serialized or how data is serialized when written to an output. Required on PUT (CreateOrReplace) requests.
*
*/
public com.pulumi.core.Output> serialization() {
return Codegen.optional(this.serialization);
}
/**
* The size window to constrain a Stream Analytics output to.
*
*/
@Export(name="sizeWindow", refs={Integer.class}, tree="[0]")
private com.pulumi.core.Output* @Nullable */ Integer> sizeWindow;
/**
* @return The size window to constrain a Stream Analytics output to.
*
*/
public com.pulumi.core.Output> sizeWindow() {
return Codegen.optional(this.sizeWindow);
}
/**
* The time frame for filtering Stream Analytics job outputs.
*
*/
@Export(name="timeWindow", refs={String.class}, tree="[0]")
private com.pulumi.core.Output* @Nullable */ String> timeWindow;
/**
* @return The time frame for filtering Stream Analytics job outputs.
*
*/
public com.pulumi.core.Output> timeWindow() {
return Codegen.optional(this.timeWindow);
}
/**
* Resource type
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private com.pulumi.core.Output type;
/**
* @return Resource type
*
*/
public com.pulumi.core.Output type() {
return this.type;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public Output(java.lang.String name) {
this(name, OutputArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Output(java.lang.String name, OutputArgs 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 Output(java.lang.String name, OutputArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:streamanalytics:Output", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private Output(java.lang.String name, com.pulumi.core.Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:streamanalytics:Output", name, null, makeResourceOptions(options, id), false);
}
private static OutputArgs makeArgs(OutputArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? OutputArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable com.pulumi.core.Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.aliases(List.of(
com.pulumi.core.Output.of(Alias.builder().type("azure-native:streamanalytics/v20160301:Output").build()),
com.pulumi.core.Output.of(Alias.builder().type("azure-native:streamanalytics/v20170401preview:Output").build()),
com.pulumi.core.Output.of(Alias.builder().type("azure-native:streamanalytics/v20200301:Output").build()),
com.pulumi.core.Output.of(Alias.builder().type("azure-native:streamanalytics/v20211001preview:Output").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 Output get(java.lang.String name, com.pulumi.core.Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Output(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy