com.pulumi.azure.workloadssap.SingleNodeVirtualInstance 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.workloadssap;
import com.pulumi.azure.Utilities;
import com.pulumi.azure.workloadssap.SingleNodeVirtualInstanceArgs;
import com.pulumi.azure.workloadssap.inputs.SingleNodeVirtualInstanceState;
import com.pulumi.azure.workloadssap.outputs.SingleNodeVirtualInstanceIdentity;
import com.pulumi.azure.workloadssap.outputs.SingleNodeVirtualInstanceSingleServerConfiguration;
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.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Manages an SAP Single Node Virtual Instance with new SAP System.
*
* > **Note:** Before using this resource, it's required to submit the request of registering the Resource Provider with Azure CLI `az provider register --namespace "Microsoft.Workloads"`. The Resource Provider can take a while to register, you can check the status by running `az provider show --namespace "Microsoft.Workloads" --query "registrationState"`. Once this outputs "Registered" the Resource Provider is available for use.
*
* ## Import
*
* SAP Single Node Virtual Instances with new SAP Systems can be imported using the `resource id`, e.g.
*
* ```sh
* $ pulumi import azure:workloadssap/singleNodeVirtualInstance:SingleNodeVirtualInstance example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Workloads/sapVirtualInstances/vis1
* ```
*
*/
@ResourceType(type="azure:workloadssap/singleNodeVirtualInstance:SingleNodeVirtualInstance")
public class SingleNodeVirtualInstance extends com.pulumi.resources.CustomResource {
/**
* The Geo-Location where the SAP system is to be created. Changing this forces a new resource to be created.
*
*/
@Export(name="appLocation", refs={String.class}, tree="[0]")
private Output appLocation;
/**
* @return The Geo-Location where the SAP system is to be created. Changing this forces a new resource to be created.
*
*/
public Output appLocation() {
return this.appLocation;
}
/**
* The environment type for the SAP Single Node Virtual Instance. Possible values are `NonProd` and `Prod`. Changing this forces a new resource to be created.
*
*/
@Export(name="environment", refs={String.class}, tree="[0]")
private Output environment;
/**
* @return The environment type for the SAP Single Node Virtual Instance. Possible values are `NonProd` and `Prod`. Changing this forces a new resource to be created.
*
*/
public Output environment() {
return this.environment;
}
/**
* An `identity` block as defined below.
*
*/
@Export(name="identity", refs={SingleNodeVirtualInstanceIdentity.class}, tree="[0]")
private Output* @Nullable */ SingleNodeVirtualInstanceIdentity> identity;
/**
* @return An `identity` block as defined below.
*
*/
public Output> identity() {
return Codegen.optional(this.identity);
}
/**
* The Azure Region where the SAP Single Node Virtual Instance should exist. Changing this forces a new resource to be created.
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return The Azure Region where the SAP Single Node Virtual Instance should exist. Changing this forces a new resource to be created.
*
*/
public Output location() {
return this.location;
}
/**
* The name of the managed Resource Group for the SAP Single Node Virtual Instance. Changing this forces a new resource to be created.
*
*/
@Export(name="managedResourceGroupName", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> managedResourceGroupName;
/**
* @return The name of the managed Resource Group for the SAP Single Node Virtual Instance. Changing this forces a new resource to be created.
*
*/
public Output> managedResourceGroupName() {
return Codegen.optional(this.managedResourceGroupName);
}
/**
* Specifies the name of this SAP Single Node Virtual Instance. Changing this forces a new resource to be created.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Specifies the name of this SAP Single Node Virtual Instance. Changing this forces a new resource to be created.
*
*/
public Output name() {
return this.name;
}
/**
* The name of the Resource Group where the SAP Single Node Virtual Instance should exist. Changing this forces a new resource to be created.
*
*/
@Export(name="resourceGroupName", refs={String.class}, tree="[0]")
private Output resourceGroupName;
/**
* @return The name of the Resource Group where the SAP Single Node Virtual Instance should exist. Changing this forces a new resource to be created.
*
*/
public Output resourceGroupName() {
return this.resourceGroupName;
}
/**
* The fully qualified domain name for the SAP system. Changing this forces a new resource to be created.
*
*/
@Export(name="sapFqdn", refs={String.class}, tree="[0]")
private Output sapFqdn;
/**
* @return The fully qualified domain name for the SAP system. Changing this forces a new resource to be created.
*
*/
public Output sapFqdn() {
return this.sapFqdn;
}
/**
* The SAP Product type for the SAP Single Node Virtual Instance. Possible values are `ECC`, `Other` and `S4HANA`. Changing this forces a new resource to be created.
*
*/
@Export(name="sapProduct", refs={String.class}, tree="[0]")
private Output sapProduct;
/**
* @return The SAP Product type for the SAP Single Node Virtual Instance. Possible values are `ECC`, `Other` and `S4HANA`. Changing this forces a new resource to be created.
*
*/
public Output sapProduct() {
return this.sapProduct;
}
/**
* A `single_server_configuration` block as defined below. Changing this forces a new resource to be created.
*
*/
@Export(name="singleServerConfiguration", refs={SingleNodeVirtualInstanceSingleServerConfiguration.class}, tree="[0]")
private Output singleServerConfiguration;
/**
* @return A `single_server_configuration` block as defined below. Changing this forces a new resource to be created.
*
*/
public Output singleServerConfiguration() {
return this.singleServerConfiguration;
}
/**
* A mapping of tags which should be assigned to the SAP Single Node Virtual Instance.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return A mapping of tags which should be assigned to the SAP Single Node Virtual Instance.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public SingleNodeVirtualInstance(java.lang.String name) {
this(name, SingleNodeVirtualInstanceArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public SingleNodeVirtualInstance(java.lang.String name, SingleNodeVirtualInstanceArgs 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 SingleNodeVirtualInstance(java.lang.String name, SingleNodeVirtualInstanceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:workloadssap/singleNodeVirtualInstance:SingleNodeVirtualInstance", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private SingleNodeVirtualInstance(java.lang.String name, Output id, @Nullable SingleNodeVirtualInstanceState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:workloadssap/singleNodeVirtualInstance:SingleNodeVirtualInstance", name, state, makeResourceOptions(options, id), false);
}
private static SingleNodeVirtualInstanceArgs makeArgs(SingleNodeVirtualInstanceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? SingleNodeVirtualInstanceArgs.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 SingleNodeVirtualInstance get(java.lang.String name, Output id, @Nullable SingleNodeVirtualInstanceState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new SingleNodeVirtualInstance(name, id, state, options);
}
}