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

com.pulumi.azure.streamanalytics.OutputBlob Maven / Gradle / Ivy

// *** 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.azure.streamanalytics;

import com.pulumi.azure.Utilities;
import com.pulumi.azure.streamanalytics.OutputBlobArgs;
import com.pulumi.azure.streamanalytics.inputs.OutputBlobState;
import com.pulumi.azure.streamanalytics.outputs.OutputBlobSerialization;
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.Integer;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Manages a Stream Analytics Output to Blob Storage.
 * 
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.streamanalytics.StreamanalyticsFunctions;
 * import com.pulumi.azure.streamanalytics.inputs.GetJobArgs;
 * import com.pulumi.azure.storage.Account;
 * import com.pulumi.azure.storage.AccountArgs;
 * import com.pulumi.azure.storage.Container;
 * import com.pulumi.azure.storage.ContainerArgs;
 * import com.pulumi.azure.streamanalytics.OutputBlob;
 * import com.pulumi.azure.streamanalytics.OutputBlobArgs;
 * import com.pulumi.azure.streamanalytics.inputs.OutputBlobSerializationArgs;
 * 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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
 *             .name("rg-example")
 *             .location("West Europe")
 *             .build());
 * 
 *         final var example = StreamanalyticsFunctions.getJob(GetJobArgs.builder()
 *             .name("example-job")
 *             .resourceGroupName(exampleResourceGroup.name())
 *             .build());
 * 
 *         var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
 *             .name("examplesa")
 *             .resourceGroupName(exampleResourceGroup.name())
 *             .location(exampleResourceGroup.location())
 *             .accountTier("Standard")
 *             .accountReplicationType("LRS")
 *             .build());
 * 
 *         var exampleContainer = new Container("exampleContainer", ContainerArgs.builder()
 *             .name("example")
 *             .storageAccountName(exampleAccount.name())
 *             .containerAccessType("private")
 *             .build());
 * 
 *         var exampleOutputBlob = new OutputBlob("exampleOutputBlob", OutputBlobArgs.builder()
 *             .name("output-to-blob-storage")
 *             .streamAnalyticsJobName(example.applyValue(getJobResult -> getJobResult).applyValue(example -> example.applyValue(getJobResult -> getJobResult.name())))
 *             .resourceGroupName(example.applyValue(getJobResult -> getJobResult).applyValue(example -> example.applyValue(getJobResult -> getJobResult.resourceGroupName())))
 *             .storageAccountName(exampleAccount.name())
 *             .storageAccountKey(exampleAccount.primaryAccessKey())
 *             .storageContainerName(exampleContainer.name())
 *             .pathPattern("some-pattern")
 *             .dateFormat("yyyy-MM-dd")
 *             .timeFormat("HH")
 *             .serialization(OutputBlobSerializationArgs.builder()
 *                 .type("Csv")
 *                 .encoding("UTF8")
 *                 .fieldDelimiter(",")
 *                 .build())
 *             .build());
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * Stream Analytics Outputs to Blob Storage can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:streamanalytics/outputBlob:OutputBlob example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.StreamAnalytics/streamingJobs/job1/outputs/output1 * ``` * */ @ResourceType(type="azure:streamanalytics/outputBlob:OutputBlob") public class OutputBlob extends com.pulumi.resources.CustomResource { /** * The authentication mode for the Stream Output. Possible values are `Msi` and `ConnectionString`. Defaults to `ConnectionString`. * */ @Export(name="authenticationMode", refs={String.class}, tree="[0]") private Output authenticationMode; /** * @return The authentication mode for the Stream Output. Possible values are `Msi` and `ConnectionString`. Defaults to `ConnectionString`. * */ public Output> authenticationMode() { return Codegen.optional(this.authenticationMode); } /** * The maximum wait time per batch in `hh:mm:ss` e.g. `00:02:00` for two minutes. * */ @Export(name="batchMaxWaitTime", refs={String.class}, tree="[0]") private Output batchMaxWaitTime; /** * @return The maximum wait time per batch in `hh:mm:ss` e.g. `00:02:00` for two minutes. * */ public Output> batchMaxWaitTime() { return Codegen.optional(this.batchMaxWaitTime); } /** * The minimum number of rows per batch (must be between `0` and `1000000`). * */ @Export(name="batchMinRows", refs={Integer.class}, tree="[0]") private Output batchMinRows; /** * @return The minimum number of rows per batch (must be between `0` and `1000000`). * */ public Output> batchMinRows() { return Codegen.optional(this.batchMinRows); } /** * Determines whether blob blocks are either committed automatically or appended. Possible values are `Append` and `Once`. Defaults to `Append`. * */ @Export(name="blobWriteMode", refs={String.class}, tree="[0]") private Output blobWriteMode; /** * @return Determines whether blob blocks are either committed automatically or appended. Possible values are `Append` and `Once`. Defaults to `Append`. * */ public Output> blobWriteMode() { return Codegen.optional(this.blobWriteMode); } /** * The date format. Wherever `{date}` appears in `path_pattern`, the value of this property is used as the date format instead. * */ @Export(name="dateFormat", refs={String.class}, tree="[0]") private Output dateFormat; /** * @return The date format. Wherever `{date}` appears in `path_pattern`, the value of this property is used as the date format instead. * */ public Output dateFormat() { return this.dateFormat; } /** * The name of the Stream Output. Changing this forces a new resource to be created. * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the Stream Output. Changing this forces a new resource to be created. * */ public Output name() { return this.name; } /** * The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine whether or not they should be included as input or output to the job. * */ @Export(name="pathPattern", refs={String.class}, tree="[0]") private Output pathPattern; /** * @return The blob path pattern. Not a regular expression. It represents a pattern against which blob names will be matched to determine whether or not they should be included as input or output to the job. * */ public Output pathPattern() { return this.pathPattern; } /** * The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created. * */ @Export(name="resourceGroupName", refs={String.class}, tree="[0]") private Output resourceGroupName; /** * @return The name of the Resource Group where the Stream Analytics Job exists. Changing this forces a new resource to be created. * */ public Output resourceGroupName() { return this.resourceGroupName; } /** * A `serialization` block as defined below. * */ @Export(name="serialization", refs={OutputBlobSerialization.class}, tree="[0]") private Output serialization; /** * @return A `serialization` block as defined below. * */ public Output serialization() { return this.serialization; } /** * The Access Key which should be used to connect to this Storage Account. * */ @Export(name="storageAccountKey", refs={String.class}, tree="[0]") private Output storageAccountKey; /** * @return The Access Key which should be used to connect to this Storage Account. * */ public Output> storageAccountKey() { return Codegen.optional(this.storageAccountKey); } /** * The name of the Storage Account. * */ @Export(name="storageAccountName", refs={String.class}, tree="[0]") private Output storageAccountName; /** * @return The name of the Storage Account. * */ public Output storageAccountName() { return this.storageAccountName; } /** * The name of the Container within the Storage Account. * */ @Export(name="storageContainerName", refs={String.class}, tree="[0]") private Output storageContainerName; /** * @return The name of the Container within the Storage Account. * */ public Output storageContainerName() { return this.storageContainerName; } /** * The name of the Stream Analytics Job. Changing this forces a new resource to be created. * */ @Export(name="streamAnalyticsJobName", refs={String.class}, tree="[0]") private Output streamAnalyticsJobName; /** * @return The name of the Stream Analytics Job. Changing this forces a new resource to be created. * */ public Output streamAnalyticsJobName() { return this.streamAnalyticsJobName; } /** * The time format. Wherever `{time}` appears in `path_pattern`, the value of this property is used as the time format instead. * */ @Export(name="timeFormat", refs={String.class}, tree="[0]") private Output timeFormat; /** * @return The time format. Wherever `{time}` appears in `path_pattern`, the value of this property is used as the time format instead. * */ public Output timeFormat() { return this.timeFormat; } /** * * @param name The _unique_ name of the resulting resource. */ public OutputBlob(java.lang.String name) { this(name, OutputBlobArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public OutputBlob(java.lang.String name, OutputBlobArgs 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 OutputBlob(java.lang.String name, OutputBlobArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:streamanalytics/outputBlob:OutputBlob", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private OutputBlob(java.lang.String name, Output id, @Nullable OutputBlobState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure:streamanalytics/outputBlob:OutputBlob", name, state, makeResourceOptions(options, id), false); } private static OutputBlobArgs makeArgs(OutputBlobArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? OutputBlobArgs.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()) .additionalSecretOutputs(List.of( "storageAccountKey" )) .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 state * @param options Optional settings to control the behavior of the CustomResource. */ public static OutputBlob get(java.lang.String name, Output id, @Nullable OutputBlobState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new OutputBlob(name, id, state, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy