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

com.pulumi.azurenative.azurestackhci.Extension Maven / Gradle / Ivy

// *** 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.azurestackhci;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.azurestackhci.ExtensionArgs;
import com.pulumi.azurenative.azurestackhci.outputs.PerNodeExtensionStateResponse;
import com.pulumi.azurenative.azurestackhci.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.Object;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Details of a particular extension in HCI Cluster.
 * Azure REST API version: 2023-03-01. Prior API version in Azure Native 1.x: 2021-01-01-preview.
 * 
 * Other available API versions: 2022-12-15-preview, 2023-06-01, 2023-08-01, 2023-08-01-preview, 2023-11-01-preview, 2024-01-01, 2024-02-15-preview, 2024-04-01, 2024-09-01-preview.
 * 
 * ## Example Usage
 * ### Create Arc Extension
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.azurestackhci.Extension;
 * import com.pulumi.azurenative.azurestackhci.ExtensionArgs;
 * 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 extension = new Extension("extension", ExtensionArgs.builder()
 *             .arcSettingName("default")
 *             .clusterName("myCluster")
 *             .enableAutomaticUpgrade(false)
 *             .extensionName("MicrosoftMonitoringAgent")
 *             .protectedSettings(Map.of("workspaceKey", "xx"))
 *             .publisher("Microsoft.Compute")
 *             .resourceGroupName("test-rg")
 *             .settings(Map.of("workspaceId", "xx"))
 *             .type("MicrosoftMonitoringAgent")
 *             .typeHandlerVersion("1.10")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:azurestackhci:Extension MicrosoftMonitoringAgent /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/arcSettings/{arcSettingName}/extensions/{extensionName} * ``` * */ @ResourceType(type="azure-native:azurestackhci:Extension") public class Extension extends com.pulumi.resources.CustomResource { /** * Aggregate state of Arc Extensions across the nodes in this HCI cluster. * */ @Export(name="aggregateState", refs={String.class}, tree="[0]") private Output aggregateState; /** * @return Aggregate state of Arc Extensions across the nodes in this HCI cluster. * */ public Output aggregateState() { return this.aggregateState; } /** * Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. * */ @Export(name="autoUpgradeMinorVersion", refs={Boolean.class}, tree="[0]") private Output autoUpgradeMinorVersion; /** * @return Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true. * */ public Output> autoUpgradeMinorVersion() { return Codegen.optional(this.autoUpgradeMinorVersion); } /** * Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. * */ @Export(name="enableAutomaticUpgrade", refs={Boolean.class}, tree="[0]") private Output enableAutomaticUpgrade; /** * @return Indicates whether the extension should be automatically upgraded by the platform if there is a newer version available. * */ public Output> enableAutomaticUpgrade() { return Codegen.optional(this.enableAutomaticUpgrade); } /** * How the extension handler should be forced to update even if the extension configuration has not changed. * */ @Export(name="forceUpdateTag", refs={String.class}, tree="[0]") private Output forceUpdateTag; /** * @return How the extension handler should be forced to update even if the extension configuration has not changed. * */ public Output> forceUpdateTag() { return Codegen.optional(this.forceUpdateTag); } /** * Indicates if the extension is managed by azure or the user. * */ @Export(name="managedBy", refs={String.class}, tree="[0]") private Output managedBy; /** * @return Indicates if the extension is managed by azure or the user. * */ public Output managedBy() { return this.managedBy; } /** * 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; } /** * State of Arc Extension in each of the nodes. * */ @Export(name="perNodeExtensionDetails", refs={List.class,PerNodeExtensionStateResponse.class}, tree="[0,1]") private Output> perNodeExtensionDetails; /** * @return State of Arc Extension in each of the nodes. * */ public Output> perNodeExtensionDetails() { return this.perNodeExtensionDetails; } /** * Protected settings (may contain secrets). * */ @Export(name="protectedSettings", refs={Object.class}, tree="[0]") private Output protectedSettings; /** * @return Protected settings (may contain secrets). * */ public Output> protectedSettings() { return Codegen.optional(this.protectedSettings); } /** * Provisioning state of the Extension proxy resource. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Provisioning state of the Extension proxy resource. * */ public Output provisioningState() { return this.provisioningState; } /** * The name of the extension handler publisher. * */ @Export(name="publisher", refs={String.class}, tree="[0]") private Output publisher; /** * @return The name of the extension handler publisher. * */ public Output> publisher() { return Codegen.optional(this.publisher); } /** * Json formatted public settings for the extension. * */ @Export(name="settings", refs={Object.class}, tree="[0]") private Output settings; /** * @return Json formatted public settings for the extension. * */ public Output> settings() { return Codegen.optional(this.settings); } /** * 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; } /** * Specifies the version of the script handler. Latest version would be used if not specified. * */ @Export(name="typeHandlerVersion", refs={String.class}, tree="[0]") private Output typeHandlerVersion; /** * @return Specifies the version of the script handler. Latest version would be used if not specified. * */ public Output> typeHandlerVersion() { return Codegen.optional(this.typeHandlerVersion); } /** * * @param name The _unique_ name of the resulting resource. */ public Extension(java.lang.String name) { this(name, ExtensionArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Extension(java.lang.String name, ExtensionArgs 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 Extension(java.lang.String name, ExtensionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:azurestackhci:Extension", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Extension(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:azurestackhci:Extension", name, null, makeResourceOptions(options, id), false); } private static ExtensionArgs makeArgs(ExtensionArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ExtensionArgs.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:azurestackhci/v20210101preview:Extension").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20210901:Extension").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20210901preview:Extension").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20220101:Extension").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20220301:Extension").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20220501:Extension").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20220901:Extension").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20221001:Extension").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20221201:Extension").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20221215preview:Extension").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20230201:Extension").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20230301:Extension").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20230601:Extension").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20230801:Extension").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20230801preview:Extension").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20231101preview:Extension").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20240101:Extension").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20240215preview:Extension").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20240401:Extension").build()), Output.of(Alias.builder().type("azure-native:azurestackhci/v20240901preview:Extension").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 Extension get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Extension(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy