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

com.pulumi.azurenative.automation.HybridRunbookWorker 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.automation;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.automation.HybridRunbookWorkerArgs;
import com.pulumi.azurenative.automation.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 java.util.Optional;
import javax.annotation.Nullable;

/**
 * Definition of hybrid runbook worker.
 * Azure REST API version: 2022-08-08. Prior API version in Azure Native 1.x: 2021-06-22.
 * 
 * Other available API versions: 2023-05-15-preview, 2023-11-01.
 * 
 * ## Example Usage
 * ### Create a V2 hybrid runbook worker
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.automation.HybridRunbookWorker;
 * import com.pulumi.azurenative.automation.HybridRunbookWorkerArgs;
 * 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 hybridRunbookWorker = new HybridRunbookWorker("hybridRunbookWorker", HybridRunbookWorkerArgs.builder()
 *             .automationAccountName("testaccount")
 *             .hybridRunbookWorkerGroupName("TestHybridGroup")
 *             .hybridRunbookWorkerId("c010ad12-ef14-4a2a-aa9e-ef22c4745ddd")
 *             .resourceGroupName("rg")
 *             .vmResourceId("/subscriptions/vmsubid/resourceGroups/vmrg/providers/Microsoft.Compute/virtualMachines/vmname")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:automation:HybridRunbookWorker c010ad12-ef14-4a2a-aa9e-ef22c4745ddd /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName}/hybridRunbookWorkers/{hybridRunbookWorkerId} * ``` * */ @ResourceType(type="azure-native:automation:HybridRunbookWorker") public class HybridRunbookWorker extends com.pulumi.resources.CustomResource { /** * Gets or sets the assigned machine IP address. * */ @Export(name="ip", refs={String.class}, tree="[0]") private Output ip; /** * @return Gets or sets the assigned machine IP address. * */ public Output> ip() { return Codegen.optional(this.ip); } /** * Last Heartbeat from the Worker * */ @Export(name="lastSeenDateTime", refs={String.class}, tree="[0]") private Output lastSeenDateTime; /** * @return Last Heartbeat from the Worker * */ public Output> lastSeenDateTime() { return Codegen.optional(this.lastSeenDateTime); } /** * 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; } /** * Gets or sets the registration time of the worker machine. * */ @Export(name="registeredDateTime", refs={String.class}, tree="[0]") private Output registeredDateTime; /** * @return Gets or sets the registration time of the worker machine. * */ public Output> registeredDateTime() { return Codegen.optional(this.registeredDateTime); } /** * Resource system metadata. * */ @Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]") private Output systemData; /** * @return Resource system metadata. * */ public Output systemData() { return this.systemData; } /** * The type of the resource. * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return The type of the resource. * */ public Output type() { return this.type; } /** * Azure Resource Manager Id for a virtual machine. * */ @Export(name="vmResourceId", refs={String.class}, tree="[0]") private Output vmResourceId; /** * @return Azure Resource Manager Id for a virtual machine. * */ public Output> vmResourceId() { return Codegen.optional(this.vmResourceId); } /** * Name of the HybridWorker. * */ @Export(name="workerName", refs={String.class}, tree="[0]") private Output workerName; /** * @return Name of the HybridWorker. * */ public Output> workerName() { return Codegen.optional(this.workerName); } /** * Type of the HybridWorker. * */ @Export(name="workerType", refs={String.class}, tree="[0]") private Output workerType; /** * @return Type of the HybridWorker. * */ public Output> workerType() { return Codegen.optional(this.workerType); } /** * * @param name The _unique_ name of the resulting resource. */ public HybridRunbookWorker(java.lang.String name) { this(name, HybridRunbookWorkerArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public HybridRunbookWorker(java.lang.String name, HybridRunbookWorkerArgs 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 HybridRunbookWorker(java.lang.String name, HybridRunbookWorkerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:automation:HybridRunbookWorker", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private HybridRunbookWorker(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:automation:HybridRunbookWorker", name, null, makeResourceOptions(options, id), false); } private static HybridRunbookWorkerArgs makeArgs(HybridRunbookWorkerArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? HybridRunbookWorkerArgs.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:automation/v20210622:HybridRunbookWorker").build()), Output.of(Alias.builder().type("azure-native:automation/v20220808:HybridRunbookWorker").build()), Output.of(Alias.builder().type("azure-native:automation/v20230515preview:HybridRunbookWorker").build()), Output.of(Alias.builder().type("azure-native:automation/v20231101:HybridRunbookWorker").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 HybridRunbookWorker get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new HybridRunbookWorker(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy