com.pulumi.azurenative.azurestackhci.DeploymentSetting 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.azurestackhci;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.azurestackhci.DeploymentSettingArgs;
import com.pulumi.azurenative.azurestackhci.outputs.DeploymentConfigurationResponse;
import com.pulumi.azurenative.azurestackhci.outputs.ReportedPropertiesResponse;
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.String;
import java.util.List;
import javax.annotation.Nullable;
/**
* Edge device resource
* Azure REST API version: 2023-08-01-preview.
*
* Other available API versions: 2023-11-01-preview, 2024-01-01, 2024-02-15-preview, 2024-04-01.
*
* ## Example Usage
* ### Create Deployment Settings
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.azurestackhci.DeploymentSetting;
* import com.pulumi.azurenative.azurestackhci.DeploymentSettingArgs;
* import com.pulumi.azurenative.azurestackhci.inputs.DeploymentConfigurationArgs;
* 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 deploymentSetting = new DeploymentSetting("deploymentSetting", DeploymentSettingArgs.builder()
* .arcNodeResourceIds(
* "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-1",
* "/subscriptions/fd3c3665-1729-4b7b-9a38-238e83b0f98b/resourceGroups/ArcInstance-rg/providers/Microsoft.HybridCompute/machines/Node-2")
* .clusterName("myCluster")
* .deploymentConfiguration(DeploymentConfigurationArgs.builder()
* .scaleUnits(ScaleUnitsArgs.builder()
* .deploymentData(DeploymentDataArgs.builder()
* .adouPath("OU=ms169,DC=ASZ1PLab8,DC=nttest,DC=microsoft,DC=com")
* .cluster(ClusterArgs.builder()
* .azureServiceEndpoint("core.windows.net")
* .cloudAccountName("myasestoragacct")
* .name("testHCICluster")
* .witnessPath("Cloud")
* .witnessType("Cloud")
* .build())
* .domainFqdn("ASZ1PLab8.nttest.microsoft.com")
* .hostNetwork(HostNetworkArgs.builder()
* .intents(IntentsArgs.builder()
* .adapter("Port2")
* .adapterPropertyOverrides(AdapterPropertyOverridesArgs.builder()
* .jumboPacket("1514")
* .networkDirect("Enabled")
* .networkDirectTechnology("iWARP")
* .build())
* .name("Compute_Management")
* .overrideAdapterProperty(false)
* .overrideQosPolicy(false)
* .overrideVirtualSwitchConfiguration(false)
* .qosPolicyOverrides(QosPolicyOverridesArgs.builder()
* .bandwidthPercentageSMB("50")
* .priorityValue8021ActionCluster("7")
* .priorityValue8021ActionSMB("3")
* .build())
* .trafficType(
* "Compute",
* "Management")
* .virtualSwitchConfigurationOverrides(VirtualSwitchConfigurationOverridesArgs.builder()
* .enableIov("True")
* .loadBalancingAlgorithm("HyperVPort")
* .build())
* .build())
* .storageConnectivitySwitchless(true)
* .storageNetworks(StorageNetworksArgs.builder()
* .name("Storage1Network")
* .networkAdapterName("Port3")
* .vlanId("5")
* .build())
* .build())
* .infrastructureNetwork(InfrastructureNetworkArgs.builder()
* .dnsServers("10.57.50.90")
* .gateway("255.255.248.0")
* .ipPools(IpPoolsArgs.builder()
* .endingAddress("10.57.48.66")
* .startingAddress("10.57.48.60")
* .build())
* .subnetMask("255.255.248.0")
* .build())
* .namingPrefix("ms169")
* .observability(ObservabilityArgs.builder()
* .episodicDataUpload(true)
* .euLocation(false)
* .streamingDataClient(true)
* .build())
* .optionalServices(OptionalServicesArgs.builder()
* .customLocation("customLocationName")
* .build())
* .physicalNodes(
* PhysicalNodesArgs.builder()
* .ipv4Address("10.57.51.224")
* .name("ms169host")
* .build(),
* PhysicalNodesArgs.builder()
* .ipv4Address("10.57.53.236")
* .name("ms154host")
* .build())
* .secretsLocation("/subscriptions/db4e2fdb-6d80-4e6e-b7cd-xxxxxxx/resourceGroups/test-rg/providers/Microsoft.KeyVault/vaults/abcd123")
* .securitySettings(SecuritySettingsArgs.builder()
* .bitlockerBootVolume(true)
* .bitlockerDataVolumes(true)
* .credentialGuardEnforced(false)
* .driftControlEnforced(true)
* .drtmProtection(true)
* .hvciProtection(true)
* .sideChannelMitigationEnforced(true)
* .smbClusterEncryption(false)
* .smbSigningEnforced(true)
* .wdacEnforced(true)
* .build())
* .storage(StorageArgs.builder()
* .configurationMode("Express")
* .build())
* .build())
* .build())
* .version("string")
* .build())
* .deploymentMode("Deploy")
* .deploymentSettingsName("default")
* .resourceGroupName("test-rg")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:azurestackhci:DeploymentSetting default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHCI/clusters/{clusterName}/deploymentSettings/{deploymentSettingsName}
* ```
*
*/
@ResourceType(type="azure-native:azurestackhci:DeploymentSetting")
public class DeploymentSetting extends com.pulumi.resources.CustomResource {
/**
* Azure resource ids of Arc machines to be part of cluster.
*
*/
@Export(name="arcNodeResourceIds", refs={List.class,String.class}, tree="[0,1]")
private Output> arcNodeResourceIds;
/**
* @return Azure resource ids of Arc machines to be part of cluster.
*
*/
public Output> arcNodeResourceIds() {
return this.arcNodeResourceIds;
}
/**
* Scale units will contains list of deployment data
*
*/
@Export(name="deploymentConfiguration", refs={DeploymentConfigurationResponse.class}, tree="[0]")
private Output deploymentConfiguration;
/**
* @return Scale units will contains list of deployment data
*
*/
public Output deploymentConfiguration() {
return this.deploymentConfiguration;
}
/**
* The deployment mode for cluster deployment.
*
*/
@Export(name="deploymentMode", refs={String.class}, tree="[0]")
private Output deploymentMode;
/**
* @return The deployment mode for cluster deployment.
*
*/
public Output deploymentMode() {
return this.deploymentMode;
}
/**
* 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;
}
/**
* DeploymentSetting provisioning state
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return DeploymentSetting provisioning state
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* Deployment Status reported from cluster.
*
*/
@Export(name="reportedProperties", refs={ReportedPropertiesResponse.class}, tree="[0]")
private Output reportedProperties;
/**
* @return Deployment Status reported from cluster.
*
*/
public Output reportedProperties() {
return this.reportedProperties;
}
/**
* 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;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public DeploymentSetting(java.lang.String name) {
this(name, DeploymentSettingArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public DeploymentSetting(java.lang.String name, DeploymentSettingArgs 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 DeploymentSetting(java.lang.String name, DeploymentSettingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:azurestackhci:DeploymentSetting", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private DeploymentSetting(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:azurestackhci:DeploymentSetting", name, null, makeResourceOptions(options, id), false);
}
private static DeploymentSettingArgs makeArgs(DeploymentSettingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? DeploymentSettingArgs.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/v20230801preview:DeploymentSetting").build()),
Output.of(Alias.builder().type("azure-native:azurestackhci/v20231101preview:DeploymentSetting").build()),
Output.of(Alias.builder().type("azure-native:azurestackhci/v20240101:DeploymentSetting").build()),
Output.of(Alias.builder().type("azure-native:azurestackhci/v20240215preview:DeploymentSetting").build()),
Output.of(Alias.builder().type("azure-native:azurestackhci/v20240401:DeploymentSetting").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 DeploymentSetting get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new DeploymentSetting(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy