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

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

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.streamanalytics;

import com.pulumi.azure.Utilities;
import com.pulumi.azure.streamanalytics.OutputCosmosdbArgs;
import com.pulumi.azure.streamanalytics.inputs.OutputCosmosdbState;
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.Optional;
import javax.annotation.Nullable;

/**
 * Manages a Stream Analytics Output to CosmosDB.
 * 
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * <!--End PulumiCodeChooser -->
 * 
 * ## Import
 * 
 * Stream Analytics Outputs for CosmosDB can be imported using the `resource id`, e.g.
 * 
 * ```sh
 * $ pulumi import azure:streamanalytics/outputCosmosdb:OutputCosmosdb example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.StreamAnalytics/streamingJobs/job1/outputs/output1
 * ```
 * 
 */
@ResourceType(type="azure:streamanalytics/outputCosmosdb:OutputCosmosdb")
public class OutputCosmosdb extends com.pulumi.resources.CustomResource {
    /**
     * The name of the CosmosDB container.
     * 
     */
    @Export(name="containerName", refs={String.class}, tree="[0]")
    private Output containerName;

    /**
     * @return The name of the CosmosDB container.
     * 
     */
    public Output containerName() {
        return this.containerName;
    }
    /**
     * The account key for the CosmosDB database.
     * 
     */
    @Export(name="cosmosdbAccountKey", refs={String.class}, tree="[0]")
    private Output cosmosdbAccountKey;

    /**
     * @return The account key for the CosmosDB database.
     * 
     */
    public Output cosmosdbAccountKey() {
        return this.cosmosdbAccountKey;
    }
    /**
     * The ID of the CosmosDB database.
     * 
     */
    @Export(name="cosmosdbSqlDatabaseId", refs={String.class}, tree="[0]")
    private Output cosmosdbSqlDatabaseId;

    /**
     * @return The ID of the CosmosDB database.
     * 
     */
    public Output cosmosdbSqlDatabaseId() {
        return this.cosmosdbSqlDatabaseId;
    }
    /**
     * The name of the field in output events used to specify the primary key which insert or update operations are based on.
     * 
     */
    @Export(name="documentId", refs={String.class}, tree="[0]")
    private Output documentId;

    /**
     * @return The name of the field in output events used to specify the primary key which insert or update operations are based on.
     * 
     */
    public Output> documentId() {
        return Codegen.optional(this.documentId);
    }
    /**
     * The name of the Stream Analytics 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 Analytics Output. Changing this forces a new resource to be created.
     * 
     */
    public Output name() {
        return this.name;
    }
    /**
     * The name of the field in output events used to specify the key for partitioning output across collections. If `container_name` contains `{partition}` token, this property is required to be specified.
     * 
     */
    @Export(name="partitionKey", refs={String.class}, tree="[0]")
    private Output partitionKey;

    /**
     * @return The name of the field in output events used to specify the key for partitioning output across collections. If `container_name` contains `{partition}` token, this property is required to be specified.
     * 
     */
    public Output> partitionKey() {
        return Codegen.optional(this.partitionKey);
    }
    /**
     * The ID of the Stream Analytics Job. Changing this forces a new resource to be created.
     * 
     */
    @Export(name="streamAnalyticsJobId", refs={String.class}, tree="[0]")
    private Output streamAnalyticsJobId;

    /**
     * @return The ID of the Stream Analytics Job. Changing this forces a new resource to be created.
     * 
     */
    public Output streamAnalyticsJobId() {
        return this.streamAnalyticsJobId;
    }

    /**
     *
     * @param name The _unique_ name of the resulting resource.
     */
    public OutputCosmosdb(java.lang.String name) {
        this(name, OutputCosmosdbArgs.Empty);
    }
    /**
     *
     * @param name The _unique_ name of the resulting resource.
     * @param args The arguments to use to populate this resource's properties.
     */
    public OutputCosmosdb(java.lang.String name, OutputCosmosdbArgs 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 OutputCosmosdb(java.lang.String name, OutputCosmosdbArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("azure:streamanalytics/outputCosmosdb:OutputCosmosdb", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
    }

    private OutputCosmosdb(java.lang.String name, Output id, @Nullable OutputCosmosdbState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        super("azure:streamanalytics/outputCosmosdb:OutputCosmosdb", name, state, makeResourceOptions(options, id), false);
    }

    private static OutputCosmosdbArgs makeArgs(OutputCosmosdbArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        if (options != null && options.getUrn().isPresent()) {
            return null;
        }
        return args == null ? OutputCosmosdbArgs.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(
                "cosmosdbAccountKey"
            ))
            .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 OutputCosmosdb get(java.lang.String name, Output id, @Nullable OutputCosmosdbState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
        return new OutputCosmosdb(name, id, state, options);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy