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

com.pulumi.azurenative.iotoperationsmq.Broker 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.iotoperationsmq;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.iotoperationsmq.BrokerArgs;
import com.pulumi.azurenative.iotoperationsmq.outputs.BrokerDiagnosticsResponse;
import com.pulumi.azurenative.iotoperationsmq.outputs.CardinalityResponse;
import com.pulumi.azurenative.iotoperationsmq.outputs.CertManagerCertOptionsResponse;
import com.pulumi.azurenative.iotoperationsmq.outputs.ContainerImageResponse;
import com.pulumi.azurenative.iotoperationsmq.outputs.DiskBackedMessageBufferSettingsResponse;
import com.pulumi.azurenative.iotoperationsmq.outputs.ExtendedLocationPropertyResponse;
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.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * MQ broker resource
 * Azure REST API version: 2023-10-04-preview.
 * 
 * ## Example Usage
 * ### Broker_CreateOrUpdate
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.iotoperationsmq.Broker;
 * import com.pulumi.azurenative.iotoperationsmq.BrokerArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.ContainerImageArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.NodeTolerationsArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.CardinalityArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.BackendChainArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.TemporaryResourceLimitsConfigArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.FrontendArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.BrokerDiagnosticsArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.DiskBackedMessageBufferSettingsArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.VolumeClaimSpecArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.VolumeClaimDataSourceArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.VolumeClaimDataSourceRefArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.VolumeClaimResourceRequirementsArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.VolumeClaimSpecSelectorArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.ExtendedLocationPropertyArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.CertManagerCertOptionsArgs;
 * import com.pulumi.azurenative.iotoperationsmq.inputs.CertManagerPrivateKeyArgs;
 * 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 broker = new Broker("broker", BrokerArgs.builder()
 *             .authImage(ContainerImageArgs.builder()
 *                 .pullPolicy("imfuzvqxgbdwliqnn")
 *                 .pullSecrets("klnqimxqsrdwhcqldjvdtsrs")
 *                 .repository("m")
 *                 .tag("jygfdiamhhm")
 *                 .build())
 *             .brokerImage(ContainerImageArgs.builder()
 *                 .pullPolicy("imfuzvqxgbdwliqnn")
 *                 .pullSecrets("klnqimxqsrdwhcqldjvdtsrs")
 *                 .repository("m")
 *                 .tag("jygfdiamhhm")
 *                 .build())
 *             .brokerName("29tAwt4A2-aH6nP")
 *             .brokerNodeTolerations(NodeTolerationsArgs.builder()
 *                 .effect("eeswvciblqmmaeesjoflyvxqbz")
 *                 .key("wbrstdwxgm")
 *                 .operator("lbegegneekwnyodtzraarivtwhmzep")
 *                 .value("sfafsjdcezdmkwibxeluukxgl")
 *                 .build())
 *             .cardinality(CardinalityArgs.builder()
 *                 .backendChain(BackendChainArgs.builder()
 *                     .partitions(34721)
 *                     .redundancyFactor(468)
 *                     .temporaryDiskTransferEnabled(true)
 *                     .temporaryDiskTransferHighWatermarkPercent(79)
 *                     .temporaryDiskTransferLowWatermarkPercent(94)
 *                     .temporaryMaxBackendMemUsagePercent(54)
 *                     .temporaryResourceLimits(TemporaryResourceLimitsConfigArgs.builder()
 *                         .maxInflightMessages(33208)
 *                         .maxInflightPatches(3410)
 *                         .maxInflightPatchesPerClient(58933)
 *                         .maxMessageExpirySecs(2036532516)
 *                         .maxQueuedMessages(8083241696687839232)
 *                         .maxQueuedQos0Messages(6545343433569253376)
 *                         .maxSessionExpirySecs(2526293894)
 *                         .build())
 *                     .workers(15754)
 *                     .build())
 *                 .frontend(FrontendArgs.builder()
 *                     .replicas(38165)
 *                     .temporaryResourceLimits(TemporaryResourceLimitsConfigArgs.builder()
 *                         .maxInflightMessages(33208)
 *                         .maxInflightPatches(3410)
 *                         .maxInflightPatchesPerClient(58933)
 *                         .maxMessageExpirySecs(2036532516)
 *                         .maxQueuedMessages(8083241696687839232)
 *                         .maxQueuedQos0Messages(6545343433569253376)
 *                         .maxSessionExpirySecs(2526293894)
 *                         .build())
 *                     .workers(38)
 *                     .build())
 *                 .build())
 *             .diagnostics(BrokerDiagnosticsArgs.builder()
 *                 .diagnosticServiceEndpoint("cdvelitwasofaaqhdb")
 *                 .enableMetrics(true)
 *                 .enableSelfCheck(true)
 *                 .enableSelfTracing(true)
 *                 .enableTracing(true)
 *                 .logFormat("tcivnlakxcajynypbz")
 *                 .logLevel("zdjh")
 *                 .maxCellMapLifetime(997099872515057664)
 *                 .metricUpdateFrequencySeconds(6156703238506293248)
 *                 .probeImage("uzizubdxsgcpjwly")
 *                 .selfCheckFrequencySeconds(579622483050303872)
 *                 .selfCheckTimeoutSeconds(7847246333600883712)
 *                 .selfTraceFrequencySeconds(6527612490765174784)
 *                 .spanChannelCapacity(5533451650716961792)
 *                 .build())
 *             .diskBackedMessageBufferSettings(DiskBackedMessageBufferSettingsArgs.builder()
 *                 .ephemeralVolumeClaimSpec(VolumeClaimSpecArgs.builder()
 *                     .accessModes("cly")
 *                     .dataSource(VolumeClaimDataSourceArgs.builder()
 *                         .apiGroup("v")
 *                         .kind("pvzbnjebkoslzzucpaem")
 *                         .name("bgzdfwfpdrubbbnfwzyr")
 *                         .build())
 *                     .dataSourceRef(VolumeClaimDataSourceRefArgs.builder()
 *                         .apiGroup("e")
 *                         .kind("hjbktqbtg")
 *                         .name("losjjcujomepwhztzptrobavolc")
 *                         .build())
 *                     .resources(VolumeClaimResourceRequirementsArgs.builder()
 *                         .limits()
 *                         .requests()
 *                         .build())
 *                     .selector(VolumeClaimSpecSelectorArgs.builder()
 *                         .matchExpressions(VolumeClaimSpecSelectorMatchExpressionsArgs.builder()
 *                             .key("d")
 *                             .operator("fcfvoarytcdbtccjervsmdis")
 *                             .values("y")
 *                             .build())
 *                         .matchLabels()
 *                         .build())
 *                     .storageClassName("etajfhrtgatxi")
 *                     .volumeMode("mipdeutsgidkzpxelbrqggjheplvmx")
 *                     .volumeName("dacuvlvuullautxjxwdctvzlmd")
 *                     .build())
 *                 .maxSize("gnwxgqjypylz")
 *                 .persistentVolumeClaimSpec(VolumeClaimSpecArgs.builder()
 *                     .accessModes("cly")
 *                     .dataSource(VolumeClaimDataSourceArgs.builder()
 *                         .apiGroup("v")
 *                         .kind("pvzbnjebkoslzzucpaem")
 *                         .name("bgzdfwfpdrubbbnfwzyr")
 *                         .build())
 *                     .dataSourceRef(VolumeClaimDataSourceRefArgs.builder()
 *                         .apiGroup("e")
 *                         .kind("hjbktqbtg")
 *                         .name("losjjcujomepwhztzptrobavolc")
 *                         .build())
 *                     .resources(VolumeClaimResourceRequirementsArgs.builder()
 *                         .limits()
 *                         .requests()
 *                         .build())
 *                     .selector(VolumeClaimSpecSelectorArgs.builder()
 *                         .matchExpressions(VolumeClaimSpecSelectorMatchExpressionsArgs.builder()
 *                             .key("d")
 *                             .operator("fcfvoarytcdbtccjervsmdis")
 *                             .values("y")
 *                             .build())
 *                         .matchLabels()
 *                         .build())
 *                     .storageClassName("etajfhrtgatxi")
 *                     .volumeMode("mipdeutsgidkzpxelbrqggjheplvmx")
 *                     .volumeName("dacuvlvuullautxjxwdctvzlmd")
 *                     .build())
 *                 .build())
 *             .encryptInternalTraffic(true)
 *             .extendedLocation(ExtendedLocationPropertyArgs.builder()
 *                 .name("an")
 *                 .type("CustomLocation")
 *                 .build())
 *             .healthManagerImage(ContainerImageArgs.builder()
 *                 .pullPolicy("imfuzvqxgbdwliqnn")
 *                 .pullSecrets("klnqimxqsrdwhcqldjvdtsrs")
 *                 .repository("m")
 *                 .tag("jygfdiamhhm")
 *                 .build())
 *             .healthManagerNodeTolerations(NodeTolerationsArgs.builder()
 *                 .effect("eeswvciblqmmaeesjoflyvxqbz")
 *                 .key("wbrstdwxgm")
 *                 .operator("lbegegneekwnyodtzraarivtwhmzep")
 *                 .value("sfafsjdcezdmkwibxeluukxgl")
 *                 .build())
 *             .internalCerts(CertManagerCertOptionsArgs.builder()
 *                 .duration("xjjmzq")
 *                 .privateKey(CertManagerPrivateKeyArgs.builder()
 *                     .algorithm("wwewfsddymjefuhxzqybwvay")
 *                     .rotationPolicy("jxmpyvfneckopjiakjtous")
 *                     .size(63427)
 *                     .build())
 *                 .renewBefore("zkajhllevrxkfmfyzasmbllvd")
 *                 .build())
 *             .location("ltzfwqzs")
 *             .memoryProfile("tiny")
 *             .mode("auto")
 *             .mqName("u229L1RZ5")
 *             .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:Broker blyxqmvmwlzftkvi /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.IoTOperationsMQ/mq/{mqName}/broker/{brokerName} * ``` * */ @ResourceType(type="azure-native:iotoperationsmq:Broker") public class Broker extends com.pulumi.resources.CustomResource { /** * The details of Authentication Docker Image. * */ @Export(name="authImage", refs={ContainerImageResponse.class}, tree="[0]") private Output authImage; /** * @return The details of Authentication Docker Image. * */ public Output authImage() { return this.authImage; } /** * The details of Broker Docker Image. * */ @Export(name="brokerImage", refs={ContainerImageResponse.class}, tree="[0]") private Output brokerImage; /** * @return The details of Broker Docker Image. * */ public Output brokerImage() { return this.brokerImage; } /** * The details of Node Tolerations for Broker Pods. * */ @Export(name="brokerNodeTolerations", refs={NodeTolerationsResponse.class}, tree="[0]") private Output brokerNodeTolerations; /** * @return The details of Node Tolerations for Broker Pods. * */ public Output> brokerNodeTolerations() { return Codegen.optional(this.brokerNodeTolerations); } /** * The cardinality details of the broker. * */ @Export(name="cardinality", refs={CardinalityResponse.class}, tree="[0]") private Output cardinality; /** * @return The cardinality details of the broker. * */ public Output> cardinality() { return Codegen.optional(this.cardinality); } /** * The diagnostic details of the broker deployment. * */ @Export(name="diagnostics", refs={BrokerDiagnosticsResponse.class}, tree="[0]") private Output diagnostics; /** * @return The diagnostic details of the broker deployment. * */ public Output> diagnostics() { return Codegen.optional(this.diagnostics); } /** * The settings of the disk-backed message buffer. * */ @Export(name="diskBackedMessageBufferSettings", refs={DiskBackedMessageBufferSettingsResponse.class}, tree="[0]") private Output diskBackedMessageBufferSettings; /** * @return The settings of the disk-backed message buffer. * */ public Output> diskBackedMessageBufferSettings() { return Codegen.optional(this.diskBackedMessageBufferSettings); } /** * The setting to enable or disable encryption of internal Traffic. * */ @Export(name="encryptInternalTraffic", refs={Boolean.class}, tree="[0]") private Output encryptInternalTraffic; /** * @return The setting to enable or disable encryption of internal Traffic. * */ public Output> encryptInternalTraffic() { return Codegen.optional(this.encryptInternalTraffic); } /** * 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 Health Manager Docker Image. * */ @Export(name="healthManagerImage", refs={ContainerImageResponse.class}, tree="[0]") private Output healthManagerImage; /** * @return The details of Health Manager Docker Image. * */ public Output healthManagerImage() { return this.healthManagerImage; } /** * The details of Node Tolerations for Health Manager Pods. * */ @Export(name="healthManagerNodeTolerations", refs={NodeTolerationsResponse.class}, tree="[0]") private Output healthManagerNodeTolerations; /** * @return The details of Node Tolerations for Health Manager Pods. * */ public Output> healthManagerNodeTolerations() { return Codegen.optional(this.healthManagerNodeTolerations); } /** * Details of the internal CA cert that will be used to secure communication between pods. * */ @Export(name="internalCerts", refs={CertManagerCertOptionsResponse.class}, tree="[0]") private Output internalCerts; /** * @return Details of the internal CA cert that will be used to secure communication between pods. * */ public Output> internalCerts() { return Codegen.optional(this.internalCerts); } /** * 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; } /** * Memory profile of broker. * */ @Export(name="memoryProfile", refs={String.class}, tree="[0]") private Output memoryProfile; /** * @return Memory profile of broker. * */ public Output> memoryProfile() { return Codegen.optional(this.memoryProfile); } /** * The Running Mode of the Broker Deployment. * */ @Export(name="mode", refs={String.class}, tree="[0]") private Output mode; /** * @return The Running Mode of the Broker Deployment. * */ public Output mode() { return this.mode; } /** * 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 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> 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 Broker(java.lang.String name) { this(name, BrokerArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Broker(java.lang.String name, BrokerArgs 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 Broker(java.lang.String name, BrokerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:iotoperationsmq:Broker", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Broker(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:iotoperationsmq:Broker", name, null, makeResourceOptions(options, id), false); } private static BrokerArgs makeArgs(BrokerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? BrokerArgs.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:Broker").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 Broker get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Broker(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy