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

com.pulumi.azurenative.iotoperationsmq.MqttBridgeConnector Maven / Gradle / Ivy

There is a newer version: 2.82.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.iotoperationsmq;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.iotoperationsmq.MqttBridgeConnectorArgs;
import com.pulumi.azurenative.iotoperationsmq.outputs.ContainerImageResponse;
import com.pulumi.azurenative.iotoperationsmq.outputs.ExtendedLocationPropertyResponse;
import com.pulumi.azurenative.iotoperationsmq.outputs.LocalBrokerConnectionSpecResponse;
import com.pulumi.azurenative.iotoperationsmq.outputs.MqttBridgeRemoteBrokerConnectionSpecResponse;
import com.pulumi.azurenative.iotoperationsmq.outputs.NodeTolerationsResponse;
import com.pulumi.azurenative.iotoperationsmq.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.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * MQ mqttBridgeConnector resource
 * Azure REST API version: 2023-10-04-preview.
 * 
 * ## Example Usage
 * ### MqttBridgeConnector_CreateOrUpdate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.iotoperationsmq.MqttBridgeConnector;
 * import com.pulumi.azurenative.iotoperationsmq.MqttBridgeConnectorArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.ExtendedLocationPropertyArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.ContainerImageArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.LocalBrokerConnectionSpecArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.LocalBrokerAuthenticationMethodsArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.LocalBrokerKubernetesAuthenticationArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.LocalBrokerConnectionTlsArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.NodeTolerationsArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.MqttBridgeRemoteBrokerConnectionSpecArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.MqttBridgeRemoteBrokerAuthenticationMethodsArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.ManagedIdentityAuthenticationArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.MqttBridgeRemoteBrokerX509AuthenticationArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.KeyVaultCertificatePropertiesArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.KeyVaultConnectionPropertiesArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.KeyVaultCredentialsPropertiesArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.KeyVaultSecretObjectArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.MqttBridgeRemoteBrokerConnectionTlsArgs;
 * 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 mqttBridgeConnector = new MqttBridgeConnector("mqttBridgeConnector", MqttBridgeConnectorArgs.builder()
 *             .bridgeInstances(4528)
 *             .clientIdPrefix("yqipejvabahsexbnttiegjnh")
 *             .extendedLocation(ExtendedLocationPropertyArgs.builder()
 *                 .name("an")
 *                 .type("CustomLocation")
 *                 .build())
 *             .image(ContainerImageArgs.builder()
 *                 .pullPolicy("imfuzvqxgbdwliqnn")
 *                 .pullSecrets("klnqimxqsrdwhcqldjvdtsrs")
 *                 .repository("m")
 *                 .tag("jygfdiamhhm")
 *                 .build())
 *             .localBrokerConnection(LocalBrokerConnectionSpecArgs.builder()
 *                 .authentication(LocalBrokerAuthenticationMethodsArgs.builder()
 *                     .kubernetes(LocalBrokerKubernetesAuthenticationArgs.builder()
 *                         .secretPath("soukzfkouir")
 *                         .serviceAccountTokenName("suwetviuhmhorhvsidlznnufe")
 *                         .build())
 *                     .build())
 *                 .endpoint("xc")
 *                 .tls(LocalBrokerConnectionTlsArgs.builder()
 *                     .tlsEnabled(true)
 *                     .trustedCaCertificateConfigMap("rinkomfeznsfedbmllxlbmmhc")
 *                     .build())
 *                 .build())
 *             .location("frztvxzhskx")
 *             .logLevel("gpgijsotipdtvvkpnckuziqqv")
 *             .mqName("R8-6x-Y-L-F-21RP5-XVv")
 *             .mqttBridgeConnectorName("k1v-U4P2440C1b7T8y-G")
 *             .nodeTolerations(NodeTolerationsArgs.builder()
 *                 .effect("eeswvciblqmmaeesjoflyvxqbz")
 *                 .key("wbrstdwxgm")
 *                 .operator("lbegegneekwnyodtzraarivtwhmzep")
 *                 .value("sfafsjdcezdmkwibxeluukxgl")
 *                 .build())
 *             .protocol("v3")
 *             .remoteBrokerConnection(MqttBridgeRemoteBrokerConnectionSpecArgs.builder()
 *                 .authentication(MqttBridgeRemoteBrokerAuthenticationMethodsArgs.builder()
 *                     .systemAssignedManagedIdentity(ManagedIdentityAuthenticationArgs.builder()
 *                         .audience("kjderojhpehosgfcrxxbh")
 *                         .extensionName("cyckjqqzspleajbtkniwrfsqygjfhe")
 *                         .build())
 *                     .x509(MqttBridgeRemoteBrokerX509AuthenticationArgs.builder()
 *                         .keyVault(KeyVaultCertificatePropertiesArgs.builder()
 *                             .vault(KeyVaultConnectionPropertiesArgs.builder()
 *                                 .credentials(KeyVaultCredentialsPropertiesArgs.builder()
 *                                     .servicePrincipalLocalSecretName("wuimjwpbhoglbsxxa")
 *                                     .build())
 *                                 .directoryId("eyjniptiykzcgbzok")
 *                                 .name("lxmwfan")
 *                                 .build())
 *                             .vaultCaChainSecret(KeyVaultSecretObjectArgs.builder()
 *                                 .name("bmectskddmpjxnsogwooexj")
 *                                 .version("unjfbf")
 *                                 .build())
 *                             .vaultCert(KeyVaultSecretObjectArgs.builder()
 *                                 .name("bmectskddmpjxnsogwooexj")
 *                                 .version("unjfbf")
 *                                 .build())
 *                             .build())
 *                         .secretName("x")
 *                         .build())
 *                     .build())
 *                 .endpoint("bshzrukafmxjgnrlhzlxbbzjdbqh")
 *                 .protocol("mqtt")
 *                 .tls(MqttBridgeRemoteBrokerConnectionTlsArgs.builder()
 *                     .tlsEnabled(true)
 *                     .trustedCaCertificateConfigMap("ivtebqmclgfjx")
 *                     .build())
 *                 .build())
 *             .resourceGroupName("rgiotoperationsmq")
 *             .tags()
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:iotoperationsmq:MqttBridgeConnector pjcjtrthj /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsMQ/mq/{mqName}/mqttBridgeConnector/{mqttBridgeConnectorName} * ``` * */ @ResourceType(type="azure-native:iotoperationsmq:MqttBridgeConnector") public class MqttBridgeConnector extends com.pulumi.resources.CustomResource { /** * The number of instances to deploy for a bridge rollout. * */ @Export(name="bridgeInstances", refs={Integer.class}, tree="[0]") private Output bridgeInstances; /** * @return The number of instances to deploy for a bridge rollout. * */ public Output> bridgeInstances() { return Codegen.optional(this.bridgeInstances); } /** * The client id prefix of the dynamically generated client ids. * */ @Export(name="clientIdPrefix", refs={String.class}, tree="[0]") private Output clientIdPrefix; /** * @return The client id prefix of the dynamically generated client ids. * */ public Output> clientIdPrefix() { return Codegen.optional(this.clientIdPrefix); } /** * Extended Location * */ @Export(name="extendedLocation", refs={ExtendedLocationPropertyResponse.class}, tree="[0]") private Output extendedLocation; /** * @return Extended Location * */ public Output extendedLocation() { return this.extendedLocation; } /** * The details of MqttBridge Docker Image. * */ @Export(name="image", refs={ContainerImageResponse.class}, tree="[0]") private Output image; /** * @return The details of MqttBridge Docker Image. * */ public Output image() { return this.image; } /** * The details for connecting with Local Broker. * */ @Export(name="localBrokerConnection", refs={LocalBrokerConnectionSpecResponse.class}, tree="[0]") private Output localBrokerConnection; /** * @return The details for connecting with Local Broker. * */ public Output> localBrokerConnection() { return Codegen.optional(this.localBrokerConnection); } /** * The geo-location where the resource lives * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The geo-location where the resource lives * */ public Output location() { return this.location; } /** * The log level of the Bridge Connector instances. * */ @Export(name="logLevel", refs={String.class}, tree="[0]") private Output logLevel; /** * @return The log level of the Bridge Connector instances. * */ public Output> logLevel() { return Codegen.optional(this.logLevel); } /** * 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 Node Tolerations for the Bridge Connector pods. * */ @Export(name="nodeTolerations", refs={NodeTolerationsResponse.class}, tree="[0]") private Output nodeTolerations; /** * @return The Node Tolerations for the Bridge Connector pods. * */ public Output> nodeTolerations() { return Codegen.optional(this.nodeTolerations); } /** * The protocol to use for connecting with Brokers. * */ @Export(name="protocol", refs={String.class}, tree="[0]") private Output protocol; /** * @return The protocol to use for connecting with Brokers. * */ public Output protocol() { return this.protocol; } /** * The status of the last operation. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return The status of the last operation. * */ public Output provisioningState() { return this.provisioningState; } /** * The details for connecting with Remote Broker. * */ @Export(name="remoteBrokerConnection", refs={MqttBridgeRemoteBrokerConnectionSpecResponse.class}, tree="[0]") private Output remoteBrokerConnection; /** * @return The details for connecting with Remote Broker. * */ public Output remoteBrokerConnection() { return this.remoteBrokerConnection; } /** * 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; } /** * Resource tags. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return Resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * 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 MqttBridgeConnector(java.lang.String name) { this(name, MqttBridgeConnectorArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public MqttBridgeConnector(java.lang.String name, MqttBridgeConnectorArgs 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 MqttBridgeConnector(java.lang.String name, MqttBridgeConnectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:iotoperationsmq:MqttBridgeConnector", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private MqttBridgeConnector(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:iotoperationsmq:MqttBridgeConnector", name, null, makeResourceOptions(options, id), false); } private static MqttBridgeConnectorArgs makeArgs(MqttBridgeConnectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? MqttBridgeConnectorArgs.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:iotoperationsmq/v20231004preview:MqttBridgeConnector").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 MqttBridgeConnector get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new MqttBridgeConnector(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy