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

com.pulumi.azurenative.workloads.SAPApplicationServerInstance 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.workloads;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.workloads.SAPApplicationServerInstanceArgs;
import com.pulumi.azurenative.workloads.outputs.ApplicationServerVmDetailsResponse;
import com.pulumi.azurenative.workloads.outputs.LoadBalancerDetailsResponse;
import com.pulumi.azurenative.workloads.outputs.SAPVirtualInstanceErrorResponse;
import com.pulumi.azurenative.workloads.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.Double;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * Define the SAP Application Server Instance resource.
 * Azure REST API version: 2023-04-01. Prior API version in Azure Native 1.x: 2021-12-01-preview.
 * 
 * Other available API versions: 2021-12-01-preview, 2023-10-01-preview.
 * 
 * ## Example Usage
 * ### Create SAP Application Server Instances for HA System with Availability Set
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.workloads.SAPApplicationServerInstance;
 * import com.pulumi.azurenative.workloads.SAPApplicationServerInstanceArgs;
 * 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 sapApplicationServerInstance = new SAPApplicationServerInstance("sapApplicationServerInstance", SAPApplicationServerInstanceArgs.builder()
 *             .applicationInstanceName("app01")
 *             .location("westcentralus")
 *             .resourceGroupName("test-rg")
 *             .sapVirtualInstanceName("X00")
 *             .tags()
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* ### SAPApplicationServerInstances_Create * *
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.workloads.SAPApplicationServerInstance;
 * import com.pulumi.azurenative.workloads.SAPApplicationServerInstanceArgs;
 * 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 sapApplicationServerInstance = new SAPApplicationServerInstance("sapApplicationServerInstance", SAPApplicationServerInstanceArgs.builder()
 *             .applicationInstanceName("app01")
 *             .location("westcentralus")
 *             .resourceGroupName("test-rg")
 *             .sapVirtualInstanceName("X00")
 *             .tags()
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:workloads:SAPApplicationServerInstance app01 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Workloads/sapVirtualInstances/{sapVirtualInstanceName}/applicationInstances/{applicationInstanceName} * ``` * */ @ResourceType(type="azure-native:workloads:SAPApplicationServerInstance") public class SAPApplicationServerInstance extends com.pulumi.resources.CustomResource { /** * Defines the Application Instance errors. * */ @Export(name="errors", refs={SAPVirtualInstanceErrorResponse.class}, tree="[0]") private Output errors; /** * @return Defines the Application Instance errors. * */ public Output errors() { return this.errors; } /** * Application server instance gateway Port. * */ @Export(name="gatewayPort", refs={Double.class}, tree="[0]") private Output gatewayPort; /** * @return Application server instance gateway Port. * */ public Output gatewayPort() { return this.gatewayPort; } /** * Defines the health of SAP Instances. * */ @Export(name="health", refs={String.class}, tree="[0]") private Output health; /** * @return Defines the health of SAP Instances. * */ public Output health() { return this.health; } /** * Application server instance SAP hostname. * */ @Export(name="hostname", refs={String.class}, tree="[0]") private Output hostname; /** * @return Application server instance SAP hostname. * */ public Output hostname() { return this.hostname; } /** * Application server instance ICM HTTP Port. * */ @Export(name="icmHttpPort", refs={Double.class}, tree="[0]") private Output icmHttpPort; /** * @return Application server instance ICM HTTP Port. * */ public Output icmHttpPort() { return this.icmHttpPort; } /** * Application server instance ICM HTTPS Port. * */ @Export(name="icmHttpsPort", refs={Double.class}, tree="[0]") private Output icmHttpsPort; /** * @return Application server instance ICM HTTPS Port. * */ public Output icmHttpsPort() { return this.icmHttpsPort; } /** * Application server Instance Number. * */ @Export(name="instanceNo", refs={String.class}, tree="[0]") private Output instanceNo; /** * @return Application server Instance Number. * */ public Output instanceNo() { return this.instanceNo; } /** * Application server instance SAP IP Address. * */ @Export(name="ipAddress", refs={String.class}, tree="[0]") private Output ipAddress; /** * @return Application server instance SAP IP Address. * */ public Output ipAddress() { return this.ipAddress; } /** * Application server instance SAP Kernel Patch level. * */ @Export(name="kernelPatch", refs={String.class}, tree="[0]") private Output kernelPatch; /** * @return Application server instance SAP Kernel Patch level. * */ public Output kernelPatch() { return this.kernelPatch; } /** * Application server instance SAP Kernel Version. * */ @Export(name="kernelVersion", refs={String.class}, tree="[0]") private Output kernelVersion; /** * @return Application server instance SAP Kernel Version. * */ public Output kernelVersion() { return this.kernelVersion; } /** * The Load Balancer details such as LoadBalancer ID attached to Application Server Virtual Machines * */ @Export(name="loadBalancerDetails", refs={LoadBalancerDetailsResponse.class}, tree="[0]") private Output loadBalancerDetails; /** * @return The Load Balancer details such as LoadBalancer ID attached to Application Server Virtual Machines * */ public Output loadBalancerDetails() { return this.loadBalancerDetails; } /** * The geo-location where the resource lives * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return The geo-location where the resource lives * */ public Output location() { return this.location; } /** * 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; } /** * Defines the provisioning states. * */ @Export(name="provisioningState", refs={String.class}, tree="[0]") private Output provisioningState; /** * @return Defines the provisioning states. * */ public Output provisioningState() { return this.provisioningState; } /** * Defines the SAP Instance status. * */ @Export(name="status", refs={String.class}, tree="[0]") private Output status; /** * @return Defines the SAP Instance status. * */ public Output status() { return this.status; } /** * Application server Subnet. * */ @Export(name="subnet", refs={String.class}, tree="[0]") private Output subnet; /** * @return Application server Subnet. * */ public Output subnet() { return this.subnet; } /** * 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; } /** * Resource tags. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return Resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * 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; } /** * The list of virtual machines. * */ @Export(name="vmDetails", refs={List.class,ApplicationServerVmDetailsResponse.class}, tree="[0,1]") private Output> vmDetails; /** * @return The list of virtual machines. * */ public Output> vmDetails() { return this.vmDetails; } /** * * @param name The _unique_ name of the resulting resource. */ public SAPApplicationServerInstance(java.lang.String name) { this(name, SAPApplicationServerInstanceArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public SAPApplicationServerInstance(java.lang.String name, SAPApplicationServerInstanceArgs 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 SAPApplicationServerInstance(java.lang.String name, SAPApplicationServerInstanceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:workloads:SAPApplicationServerInstance", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private SAPApplicationServerInstance(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:workloads:SAPApplicationServerInstance", name, null, makeResourceOptions(options, id), false); } private static SAPApplicationServerInstanceArgs makeArgs(SAPApplicationServerInstanceArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? SAPApplicationServerInstanceArgs.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:workloads/v20211201preview:SAPApplicationServerInstance").build()), Output.of(Alias.builder().type("azure-native:workloads/v20221101preview:SAPApplicationServerInstance").build()), Output.of(Alias.builder().type("azure-native:workloads/v20230401:SAPApplicationServerInstance").build()), Output.of(Alias.builder().type("azure-native:workloads/v20231001preview:SAPApplicationServerInstance").build()), Output.of(Alias.builder().type("azure-native:workloads/v20240901:SAPApplicationServerInstance").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 SAPApplicationServerInstance get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new SAPApplicationServerInstance(name, id, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy