com.pulumi.azure.stack.HciDeploymentSetting Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.stack;
import com.pulumi.azure.Utilities;
import com.pulumi.azure.stack.HciDeploymentSettingArgs;
import com.pulumi.azure.stack.inputs.HciDeploymentSettingState;
import com.pulumi.azure.stack.outputs.HciDeploymentSettingScaleUnit;
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 javax.annotation.Nullable;
/**
* Manages a Stack HCI Deployment Setting.
*
* > Note: Completion of the prerequisites of deploying the Azure Stack HCI in your environment is outside the scope of this document. For more details refer to the [Azure Stack HCI deployment sequence](https://learn.microsoft.com/en-us/azure-stack/hci/deploy/deployment-introduction#deployment-sequence). If you encounter issues completing the prerequisites, we'd recommend opening a ticket with Microsoft Support.
*
* > Note: During the deployment process, the service will generate additional resources, including a new Arc Bridge Appliance and a Custom Location containing several Stack HCI Storage Paths. The provider will attempt to remove these resources on the deletion or recreation of `azure.stack.HciDeploymentSetting`.
*
* ## Import
*
* Stack HCI Deployment Settings can be imported using the `resource id`, e.g.
*
* ```sh
* $ pulumi import azure:stack/hciDeploymentSetting:HciDeploymentSetting example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/group1/providers/Microsoft.AzureStackHCI/clusters/clus1/deploymentSettings/default
* ```
*
*/
@ResourceType(type="azure:stack/hciDeploymentSetting:HciDeploymentSetting")
public class HciDeploymentSetting extends com.pulumi.resources.CustomResource {
/**
* Specifies a list of IDs of Azure ARC machine resource to be part of cluster. Changing this forces a new Stack HCI Deployment Setting to be created.
*
*/
@Export(name="arcResourceIds", refs={List.class,String.class}, tree="[0,1]")
private Output> arcResourceIds;
/**
* @return Specifies a list of IDs of Azure ARC machine resource to be part of cluster. Changing this forces a new Stack HCI Deployment Setting to be created.
*
*/
public Output> arcResourceIds() {
return this.arcResourceIds;
}
/**
* One or more `scale_unit` blocks as defined below. Changing this forces a new Stack HCI Deployment Setting to be created.
*
*/
@Export(name="scaleUnits", refs={List.class,HciDeploymentSettingScaleUnit.class}, tree="[0,1]")
private Output> scaleUnits;
/**
* @return One or more `scale_unit` blocks as defined below. Changing this forces a new Stack HCI Deployment Setting to be created.
*
*/
public Output> scaleUnits() {
return this.scaleUnits;
}
/**
* The ID of the Azure Stack HCI cluster. Changing this forces a new Stack HCI Deployment Setting to be created.
*
*/
@Export(name="stackHciClusterId", refs={String.class}, tree="[0]")
private Output stackHciClusterId;
/**
* @return The ID of the Azure Stack HCI cluster. Changing this forces a new Stack HCI Deployment Setting to be created.
*
*/
public Output stackHciClusterId() {
return this.stackHciClusterId;
}
/**
* The deployment template version. The format must be a set of numbers separated by dots such as `10.0.0.0`. Changing this forces a new Stack HCI Deployment Setting to be created.
*
*/
@Export(name="version", refs={String.class}, tree="[0]")
private Output version;
/**
* @return The deployment template version. The format must be a set of numbers separated by dots such as `10.0.0.0`. Changing this forces a new Stack HCI Deployment Setting to be created.
*
*/
public Output version() {
return this.version;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public HciDeploymentSetting(java.lang.String name) {
this(name, HciDeploymentSettingArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public HciDeploymentSetting(java.lang.String name, HciDeploymentSettingArgs 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 HciDeploymentSetting(java.lang.String name, HciDeploymentSettingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:stack/hciDeploymentSetting:HciDeploymentSetting", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private HciDeploymentSetting(java.lang.String name, Output id, @Nullable HciDeploymentSettingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:stack/hciDeploymentSetting:HciDeploymentSetting", name, state, makeResourceOptions(options, id), false);
}
private static HciDeploymentSettingArgs makeArgs(HciDeploymentSettingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? HciDeploymentSettingArgs.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())
.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 state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static HciDeploymentSetting get(java.lang.String name, Output id, @Nullable HciDeploymentSettingState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new HciDeploymentSetting(name, id, state, options);
}
}