import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an Azure Spring Cloud Deployment with a Java runtime. * * > **Note:** This resource is applicable only for Spring Cloud Service with basic and standard tier. * * !> **Note:** Azure Spring Apps is now deprecated and will be retired on 2028-05-31 - as such the `azure.appplatform.SpringCloudJavaDeployment` resource is deprecated and will be removed in a future major version of the AzureRM Provider. See https://aka.ms/asaretirement for more information. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const exampleSpringCloudService = new azure.appplatform.SpringCloudService("example", { * name: "example-springcloud", * resourceGroupName: example.name, * location: example.location, * }); * const exampleSpringCloudApp = new azure.appplatform.SpringCloudApp("example", { * name: "example-springcloudapp", * resourceGroupName: example.name, * serviceName: exampleSpringCloudService.name, * identity: { * type: "SystemAssigned", * }, * }); * const exampleSpringCloudJavaDeployment = new azure.appplatform.SpringCloudJavaDeployment("example", { * name: "deploy1", * springCloudAppId: exampleSpringCloudApp.id, * instanceCount: 2, * jvmOptions: "-XX:+PrintGC", * quota: { * cpu: "2", * memory: "4Gi", * }, * runtimeVersion: "Java_11", * environmentVariables: { * Foo: "Bar", * Env: "Staging", * }, * }); * ``` * * ## Import * * Spring Cloud Deployment can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:appplatform/springCloudJavaDeployment:SpringCloudJavaDeployment example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourcegroup1/providers/Microsoft.AppPlatform/spring/service1/apps/app1/deployments/deploy1 * ``` */ export declare class SpringCloudJavaDeployment extends pulumi.CustomResource { /** * Get an existing SpringCloudJavaDeployment 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 Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: SpringCloudJavaDeploymentState, opts?: pulumi.CustomResourceOptions): SpringCloudJavaDeployment; /** * Returns true if the given object is an instance of SpringCloudJavaDeployment. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is SpringCloudJavaDeployment; /** * Specifies the environment variables of the Spring Cloud Deployment as a map of key-value pairs. */ readonly environmentVariables: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Specifies the required instance count of the Spring Cloud Deployment. Possible Values are between `1` and `500`. Defaults to `1` if not specified. */ readonly instanceCount: pulumi.Output; /** * Specifies the jvm option of the Spring Cloud Deployment. */ readonly jvmOptions: pulumi.Output; /** * Specifies the name of the Spring Cloud Deployment. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * A `quota` block as defined below. */ readonly quota: pulumi.Output; /** * Specifies the runtime version of the Spring Cloud Deployment. Possible Values are `Java_8`, `Java_11` and `Java_17`. Defaults to `Java_8`. */ readonly runtimeVersion: pulumi.Output; /** * Specifies the id of the Spring Cloud Application in which to create the Deployment. Changing this forces a new resource to be created. */ readonly springCloudAppId: pulumi.Output; /** * Create a SpringCloudJavaDeployment resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: SpringCloudJavaDeploymentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SpringCloudJavaDeployment resources. */ export interface SpringCloudJavaDeploymentState { /** * Specifies the environment variables of the Spring Cloud Deployment as a map of key-value pairs. */ environmentVariables?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Specifies the required instance count of the Spring Cloud Deployment. Possible Values are between `1` and `500`. Defaults to `1` if not specified. */ instanceCount?: pulumi.Input; /** * Specifies the jvm option of the Spring Cloud Deployment. */ jvmOptions?: pulumi.Input; /** * Specifies the name of the Spring Cloud Deployment. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A `quota` block as defined below. */ quota?: pulumi.Input; /** * Specifies the runtime version of the Spring Cloud Deployment. Possible Values are `Java_8`, `Java_11` and `Java_17`. Defaults to `Java_8`. */ runtimeVersion?: pulumi.Input; /** * Specifies the id of the Spring Cloud Application in which to create the Deployment. Changing this forces a new resource to be created. */ springCloudAppId?: pulumi.Input; } /** * The set of arguments for constructing a SpringCloudJavaDeployment resource. */ export interface SpringCloudJavaDeploymentArgs { /** * Specifies the environment variables of the Spring Cloud Deployment as a map of key-value pairs. */ environmentVariables?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Specifies the required instance count of the Spring Cloud Deployment. Possible Values are between `1` and `500`. Defaults to `1` if not specified. */ instanceCount?: pulumi.Input; /** * Specifies the jvm option of the Spring Cloud Deployment. */ jvmOptions?: pulumi.Input; /** * Specifies the name of the Spring Cloud Deployment. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * A `quota` block as defined below. */ quota?: pulumi.Input; /** * Specifies the runtime version of the Spring Cloud Deployment. Possible Values are `Java_8`, `Java_11` and `Java_17`. Defaults to `Java_8`. */ runtimeVersion?: pulumi.Input; /** * Specifies the id of the Spring Cloud Application in which to create the Deployment. Changing this forces a new resource to be created. */ springCloudAppId: pulumi.Input; }