
com.pulumi.azurenative.iotoperationsmq.KafkaConnector 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.iotoperationsmq;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.iotoperationsmq.KafkaConnectorArgs;
import com.pulumi.azurenative.iotoperationsmq.outputs.ContainerImageResponse;
import com.pulumi.azurenative.iotoperationsmq.outputs.ExtendedLocationPropertyResponse;
import com.pulumi.azurenative.iotoperationsmq.outputs.KafkaRemoteBrokerConnectionSpecResponse;
import com.pulumi.azurenative.iotoperationsmq.outputs.LocalBrokerConnectionSpecResponse;
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 kafkaConnector resource
* Azure REST API version: 2023-10-04-preview.
*
* ## Example Usage
* ### KafkaConnector_CreateOrUpdate
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.iotoperationsmq.KafkaConnector;
* import com.pulumi.azurenative.iotoperationsmq.KafkaConnectorArgs;
* import com.pulumi.azurenative.iotoperationsmq.inputs.ExtendedLocationPropertyArgs;
* import com.pulumi.azurenative.iotoperationsmq.inputs.ContainerImageArgs;
* import com.pulumi.azurenative.iotoperationsmq.inputs.KafkaRemoteBrokerConnectionSpecArgs;
* import com.pulumi.azurenative.iotoperationsmq.inputs.KafkaRemoteBrokerAuthenticationPropertiesArgs;
* import com.pulumi.azurenative.iotoperationsmq.inputs.KafkaRemoteBrokerAuthenticationTypesArgs;
* import com.pulumi.azurenative.iotoperationsmq.inputs.SaslRemoteBrokerBasicAuthenticationArgs;
* import com.pulumi.azurenative.iotoperationsmq.inputs.SaslRemoteBrokerBasicAuthenticationTokenArgs;
* import com.pulumi.azurenative.iotoperationsmq.inputs.KafkaTokenKeyVaultPropertiesArgs;
* 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.ManagedIdentityAuthenticationArgs;
* import com.pulumi.azurenative.iotoperationsmq.inputs.KafkaX509AuthenticationArgs;
* import com.pulumi.azurenative.iotoperationsmq.inputs.KeyVaultCertificatePropertiesArgs;
* import com.pulumi.azurenative.iotoperationsmq.inputs.KafkaRemoteBrokerConnectionTlsArgs;
* 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 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 kafkaConnector = new KafkaConnector("kafkaConnector", KafkaConnectorArgs.builder()
* .clientIdPrefix("yybbbeowkw")
* .extendedLocation(ExtendedLocationPropertyArgs.builder()
* .name("an")
* .type("CustomLocation")
* .build())
* .image(ContainerImageArgs.builder()
* .pullPolicy("imfuzvqxgbdwliqnn")
* .pullSecrets("klnqimxqsrdwhcqldjvdtsrs")
* .repository("m")
* .tag("jygfdiamhhm")
* .build())
* .instances(55252)
* .kafkaConnection(KafkaRemoteBrokerConnectionSpecArgs.builder()
* .authentication(KafkaRemoteBrokerAuthenticationPropertiesArgs.builder()
* .authType(KafkaRemoteBrokerAuthenticationTypesArgs.builder()
* .sasl(SaslRemoteBrokerBasicAuthenticationArgs.builder()
* .saslType("plain")
* .token(SaslRemoteBrokerBasicAuthenticationTokenArgs.builder()
* .keyVault(KafkaTokenKeyVaultPropertiesArgs.builder()
* .username("fb")
* .vault(KeyVaultConnectionPropertiesArgs.builder()
* .credentials(KeyVaultCredentialsPropertiesArgs.builder()
* .servicePrincipalLocalSecretName("wuimjwpbhoglbsxxa")
* .build())
* .directoryId("eyjniptiykzcgbzok")
* .name("lxmwfan")
* .build())
* .vaultSecret(KeyVaultSecretObjectArgs.builder()
* .name("bmectskddmpjxnsogwooexj")
* .version("unjfbf")
* .build())
* .build())
* .secretName("hxmqokubwldgjdtjv")
* .build())
* .build())
* .systemAssignedManagedIdentity(ManagedIdentityAuthenticationArgs.builder()
* .audience("kjderojhpehosgfcrxxbh")
* .extensionName("cyckjqqzspleajbtkniwrfsqygjfhe")
* .build())
* .x509(KafkaX509AuthenticationArgs.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("jlrjvqyoygynlpsekfbvyrpu")
* .build())
* .build())
* .enabled(true)
* .build())
* .endpoint("odxpssuhjkbonjmbhbebfjcah")
* .tls(KafkaRemoteBrokerConnectionTlsArgs.builder()
* .tlsEnabled(true)
* .trustedCaCertificateConfigMap("kndjozglnxsgnzxq")
* .build())
* .build())
* .kafkaConnectorName("V5--OL8-R")
* .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("mpbupgmqssnb")
* .logLevel("g")
* .mqName("s47Lj-S2S-Q-XY")
* .nodeTolerations(NodeTolerationsArgs.builder()
* .effect("eeswvciblqmmaeesjoflyvxqbz")
* .key("wbrstdwxgm")
* .operator("lbegegneekwnyodtzraarivtwhmzep")
* .value("sfafsjdcezdmkwibxeluukxgl")
* .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:KafkaConnector acntmeqjezkawbphgyprhwv /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsMQ/mq/{mqName}/kafkaConnector/{kafkaConnectorName}
* ```
*
*/
@ResourceType(type="azure-native:iotoperationsmq:KafkaConnector")
public class KafkaConnector extends com.pulumi.resources.CustomResource {
/**
* The client id prefix of the dynamically generated client ids.
*
*/
@Export(name="clientIdPrefix", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> 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 KafkaConnector Docker Image.
*
*/
@Export(name="image", refs={ContainerImageResponse.class}, tree="[0]")
private Output* @Nullable */ ContainerImageResponse> image;
/**
* @return The details of KafkaConnector Docker Image.
*
*/
public Output> image() {
return Codegen.optional(this.image);
}
/**
* The number of KafkaConnector pods to spin up.
*
*/
@Export(name="instances", refs={Integer.class}, tree="[0]")
private Output* @Nullable */ Integer> instances;
/**
* @return The number of KafkaConnector pods to spin up.
*
*/
public Output> instances() {
return Codegen.optional(this.instances);
}
/**
* The details for connecting with Remote Kafka Broker.
*
*/
@Export(name="kafkaConnection", refs={KafkaRemoteBrokerConnectionSpecResponse.class}, tree="[0]")
private Output kafkaConnection;
/**
* @return The details for connecting with Remote Kafka Broker.
*
*/
public Output kafkaConnection() {
return this.kafkaConnection;
}
/**
* The details for connecting with Local Broker.
*
*/
@Export(name="localBrokerConnection", refs={LocalBrokerConnectionSpecResponse.class}, tree="[0]")
private Output* @Nullable */ LocalBrokerConnectionSpecResponse> 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* @Nullable */ String> 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* @Nullable */ NodeTolerationsResponse> nodeTolerations;
/**
* @return The Node Tolerations for the Bridge Connector pods.
*
*/
public Output> nodeTolerations() {
return Codegen.optional(this.nodeTolerations);
}
/**
* 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;
}
/**
* 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* @Nullable */ Map> 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 KafkaConnector(java.lang.String name) {
this(name, KafkaConnectorArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public KafkaConnector(java.lang.String name, KafkaConnectorArgs 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 KafkaConnector(java.lang.String name, KafkaConnectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:iotoperationsmq:KafkaConnector", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private KafkaConnector(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:iotoperationsmq:KafkaConnector", name, null, makeResourceOptions(options, id), false);
}
private static KafkaConnectorArgs makeArgs(KafkaConnectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? KafkaConnectorArgs.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:KafkaConnector").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 KafkaConnector get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new KafkaConnector(name, id, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy