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

com.pulumi.azurenative.iotoperations.DataFlowEndpoint 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.iotoperations;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.iotoperations.DataFlowEndpointArgs;
import com.pulumi.azurenative.iotoperations.outputs.DataFlowEndpointPropertiesResponse;
import com.pulumi.azurenative.iotoperations.outputs.ExtendedLocationResponse;
import com.pulumi.azurenative.iotoperations.outputs.SystemDataResponse;
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.String;
import java.util.List;
import javax.annotation.Nullable;

/**
 * Instance dataflowEndpoint resource
 * Azure REST API version: 2024-07-01-preview.
 * 
 * ## Example Usage
 * ### DataFlowEndpoint_CreateOrUpdate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.iotoperations.DataFlowEndpoint;
 * import com.pulumi.azurenative.iotoperations.DataFlowEndpointArgs;
 * import com.pulumi.azurenative.iotoperations.inputs.ExtendedLocationArgs;
 * import com.pulumi.azurenative.iotoperations.inputs.DataFlowEndpointPropertiesArgs;
 * import com.pulumi.azurenative.iotoperations.inputs.DataFlowEndpointAuthenticationArgs;
 * import com.pulumi.azurenative.iotoperations.inputs.DataFlowEndpointAuthenticationSaslArgs;
 * import com.pulumi.azurenative.iotoperations.inputs.DataFlowEndpointAuthenticationServiceAccountTokenArgs;
 * import com.pulumi.azurenative.iotoperations.inputs.DataFlowEndpointAuthenticationSystemAssignedManagedIdentityArgs;
 * import com.pulumi.azurenative.iotoperations.inputs.DataFlowEndpointAuthenticationUserAssignedManagedIdentityArgs;
 * import com.pulumi.azurenative.iotoperations.inputs.DataFlowEndpointAuthenticationX509Args;
 * import com.pulumi.azurenative.iotoperations.inputs.DataFlowEndpointDataExplorerArgs;
 * import com.pulumi.azurenative.iotoperations.inputs.BatchingConfigurationArgs;
 * import com.pulumi.azurenative.iotoperations.inputs.DataFlowEndpointDataLakeStorageArgs;
 * import com.pulumi.azurenative.iotoperations.inputs.DataFlowEndpointFabricOneLakeArgs;
 * import com.pulumi.azurenative.iotoperations.inputs.DataFlowEndpointFabricOneLakeNamesArgs;
 * import com.pulumi.azurenative.iotoperations.inputs.DataFlowEndpointKafkaArgs;
 * import com.pulumi.azurenative.iotoperations.inputs.DataFlowEndpointKafkaBatchingArgs;
 * import com.pulumi.azurenative.iotoperations.inputs.TlsPropertiesArgs;
 * import com.pulumi.azurenative.iotoperations.inputs.DataFlowEndpointLocalStorageArgs;
 * import com.pulumi.azurenative.iotoperations.inputs.DataFlowEndpointMqttArgs;
 * 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 dataFlowEndpoint = new DataFlowEndpoint("dataFlowEndpoint", DataFlowEndpointArgs.builder()
 *             .dataflowEndpointName("aio-dataflowendpoint")
 *             .extendedLocation(ExtendedLocationArgs.builder()
 *                 .name("ycsyubcxttlusbhfdqaynmkaatnbyv")
 *                 .type("CustomLocation")
 *                 .build())
 *             .instanceName("aio-instance")
 *             .properties(DataFlowEndpointPropertiesArgs.builder()
 *                 .authentication(DataFlowEndpointAuthenticationArgs.builder()
 *                     .accessTokenSecretRef("tnwgineiasofrjwmpvrpxrvgxesxge")
 *                     .method("SystemAssignedManagedIdentity")
 *                     .saslSettings(DataFlowEndpointAuthenticationSaslArgs.builder()
 *                         .saslType("Plain")
 *                         .tokenSecretRef("yveihxxdxfczlnsp")
 *                         .build())
 *                     .serviceAccountTokenSettings(DataFlowEndpointAuthenticationServiceAccountTokenArgs.builder()
 *                         .audience("jwqprkifp")
 *                         .build())
 *                     .systemAssignedManagedIdentitySettings(DataFlowEndpointAuthenticationSystemAssignedManagedIdentityArgs.builder()
 *                         .audience("imuwrt")
 *                         .build())
 *                     .userAssignedManagedIdentitySettings(DataFlowEndpointAuthenticationUserAssignedManagedIdentityArgs.builder()
 *                         .audience("lwqpynroxkgvk")
 *                         .clientId("qjwbqdunldmwiknaifmjtdzc")
 *                         .tenantId("xuhbmockgsjanbccm")
 *                         .build())
 *                     .x509CredentialsSettings(DataFlowEndpointAuthenticationX509Args.builder()
 *                         .secretRef("ginzjdbcaebellwqjwiy")
 *                         .build())
 *                     .build())
 *                 .dataExplorerSettings(DataFlowEndpointDataExplorerArgs.builder()
 *                     .batching(BatchingConfigurationArgs.builder()
 *                         .latencySeconds(9312)
 *                         .maxMessages(9028)
 *                         .build())
 *                     .database("vlzldgzfnjrenepi")
 *                     .host("..kusto.windows.net")
 *                     .build())
 *                 .dataLakeStorageSettings(DataFlowEndpointDataLakeStorageArgs.builder()
 *                     .batching(BatchingConfigurationArgs.builder()
 *                         .latencySeconds(9312)
 *                         .maxMessages(9028)
 *                         .build())
 *                     .host(".blob.core.windows.net")
 *                     .build())
 *                 .endpointType("DataExplorer")
 *                 .fabricOneLakeSettings(DataFlowEndpointFabricOneLakeArgs.builder()
 *                     .batching(BatchingConfigurationArgs.builder()
 *                         .latencySeconds(9312)
 *                         .maxMessages(9028)
 *                         .build())
 *                     .host("https://.fabric.microsoft.com")
 *                     .names(DataFlowEndpointFabricOneLakeNamesArgs.builder()
 *                         .lakehouseName("wlkswgqkputd")
 *                         .workspaceName("jpixitkilnnznphuv")
 *                         .build())
 *                     .oneLakePathType("Files")
 *                     .build())
 *                 .kafkaSettings(DataFlowEndpointKafkaArgs.builder()
 *                     .batching(DataFlowEndpointKafkaBatchingArgs.builder()
 *                         .latencyMs(5560)
 *                         .maxBytes(2289)
 *                         .maxMessages(7908)
 *                         .mode("Enabled")
 *                         .build())
 *                     .compression("None")
 *                     .consumerGroupId("bpihkcqsi")
 *                     .copyMqttProperties("Enabled")
 *                     .host("duqkazfangmbwtfnivqmhpxfqigi")
 *                     .kafkaAcks("Zero")
 *                     .partitionStrategy("Default")
 *                     .tls(TlsPropertiesArgs.builder()
 *                         .mode("Enabled")
 *                         .trustedCaCertificateConfigMapRef("p")
 *                         .build())
 *                     .build())
 *                 .localStorageSettings(DataFlowEndpointLocalStorageArgs.builder()
 *                     .persistentVolumeClaimRef("fnswdfocruvmkzqbtfvzhzremdohtv")
 *                     .build())
 *                 .mqttSettings(DataFlowEndpointMqttArgs.builder()
 *                     .clientIdPrefix("vhfupaialczfkrcmo")
 *                     .host("lenprkulhttcpqop")
 *                     .keepAliveSeconds(0)
 *                     .maxInflightMessages(0)
 *                     .protocol("Mqtt")
 *                     .qos(1)
 *                     .retain("Keep")
 *                     .sessionExpirySeconds(0)
 *                     .tls(TlsPropertiesArgs.builder()
 *                         .mode("Enabled")
 *                         .trustedCaCertificateConfigMapRef("p")
 *                         .build())
 *                     .build())
 *                 .build())
 *             .resourceGroupName("rgiotoperations")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:iotoperations:DataFlowEndpoint kvyqxmrwwvxxvrlwyxfkxoebrapxbj /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperations/instances/{instanceName}/dataflowEndpoints/{dataflowEndpointName} * ``` * */ @ResourceType(type="azure-native:iotoperations:DataFlowEndpoint") public class DataFlowEndpoint extends com.pulumi.resources.CustomResource { /** * Edge location of the resource. * */ @Export(name="extendedLocation", refs={ExtendedLocationResponse.class}, tree="[0]") private Output extendedLocation; /** * @return Edge location of the resource. * */ public Output extendedLocation() { return this.extendedLocation; } /** * The name of the resource * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return The name of the resource * */ public Output name() { return this.name; } /** * The resource-specific properties for this resource. * */ @Export(name="properties", refs={DataFlowEndpointPropertiesResponse.class}, tree="[0]") private Output properties; /** * @return The resource-specific properties for this resource. * */ public Output properties() { return this.properties; } /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Azure Resource Manager metadata containing createdBy and modifiedBy information. * */ public Output systemData() { return this.systemData; } /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public DataFlowEndpoint(java.lang.String name) { this(name, DataFlowEndpointArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public DataFlowEndpoint(java.lang.String name, DataFlowEndpointArgs 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 DataFlowEndpoint(java.lang.String name, DataFlowEndpointArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:iotoperations:DataFlowEndpoint", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private DataFlowEndpoint(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:iotoperations:DataFlowEndpoint", name, null, makeResourceOptions(options, id), false); } private static DataFlowEndpointArgs makeArgs(DataFlowEndpointArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? DataFlowEndpointArgs.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:iotoperations/v20240701preview:DataFlowEndpoint").build()), Output.of(Alias.builder().type("azure-native:iotoperations/v20240815preview:DataFlowEndpoint").build()), Output.of(Alias.builder().type("azure-native:iotoperations/v20240915preview:DataFlowEndpoint").build()), Output.of(Alias.builder().type("azure-native:iotoperations/v20241101:DataFlowEndpoint").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 DataFlowEndpoint get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new DataFlowEndpoint(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy