import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Spring Cloud Container Deployment. * * !> **Note:** Azure Spring Apps is now deprecated and will be retired on 2028-05-31 - as such the `azure.appplatform.SpringCloudContainerDeployment` 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", * location: "West Europe", * }); * const exampleSpringCloudService = new azure.appplatform.SpringCloudService("example", { * name: "example", * location: example.location, * resourceGroupName: example.name, * skuName: "E0", * }); * const exampleSpringCloudApp = new azure.appplatform.SpringCloudApp("example", { * name: "example", * resourceGroupName: exampleSpringCloudService.resourceGroupName, * serviceName: exampleSpringCloudService.name, * }); * const exampleSpringCloudContainerDeployment = new azure.appplatform.SpringCloudContainerDeployment("example", { * name: "example", * springCloudAppId: exampleSpringCloudApp.id, * instanceCount: 2, * arguments: [ * "-cp", * "/app/resources:/app/classes:/app/libs/*", * "hello.Application", * ], * commands: ["java"], * environmentVariables: { * Foo: "Bar", * Env: "Staging", * }, * server: "docker.io", * image: "springio/gs-spring-boot-docker", * languageFramework: "springboot", * }); * ``` * * ## Import * * Spring Cloud Container Deployments can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:appplatform/springCloudContainerDeployment:SpringCloudContainerDeployment example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.AppPlatform/spring/spring1/apps/app1/deployments/deploy1 * ``` */ export declare class SpringCloudContainerDeployment extends pulumi.CustomResource { /** * Get an existing SpringCloudContainerDeployment 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?: SpringCloudContainerDeploymentState, opts?: pulumi.CustomResourceOptions): SpringCloudContainerDeployment; /** * Returns true if the given object is an instance of SpringCloudContainerDeployment. 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 SpringCloudContainerDeployment; /** * A JSON object that contains the addon configurations of the Spring Cloud Container Deployment. */ readonly addonJson: pulumi.Output; /** * Specifies a list of Spring Cloud Application Performance Monitoring IDs. */ readonly applicationPerformanceMonitoringIds: pulumi.Output; /** * Specifies the arguments to the entrypoint. The docker image's `CMD` is used if not specified. */ readonly arguments: pulumi.Output; /** * Specifies the entrypoint array. It will not be executed within a shell. The docker image's `ENTRYPOINT` is used if not specified. */ readonly commands: pulumi.Output; /** * Specifies the environment variables of the Spring Cloud Deployment as a map of key-value pairs. */ readonly environmentVariables: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Container image of the custom container. This should be in the form of `:` without the server name of the registry. */ readonly image: pulumi.Output; /** * 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 language framework of the container image. The only possible value is `springboot`. */ readonly languageFramework: pulumi.Output; /** * The name which should be used for this Spring Cloud Container Deployment. Changing this forces a new Spring Cloud Container Deployment to be created. */ readonly name: pulumi.Output; /** * A `quota` block as defined below. */ readonly quota: pulumi.Output; /** * The name of the registry that contains the container image. */ readonly server: pulumi.Output; /** * The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Container Deployment to be created. */ readonly springCloudAppId: pulumi.Output; /** * Create a SpringCloudContainerDeployment 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: SpringCloudContainerDeploymentArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SpringCloudContainerDeployment resources. */ export interface SpringCloudContainerDeploymentState { /** * A JSON object that contains the addon configurations of the Spring Cloud Container Deployment. */ addonJson?: pulumi.Input; /** * Specifies a list of Spring Cloud Application Performance Monitoring IDs. */ applicationPerformanceMonitoringIds?: pulumi.Input[]>; /** * Specifies the arguments to the entrypoint. The docker image's `CMD` is used if not specified. */ arguments?: pulumi.Input[]>; /** * Specifies the entrypoint array. It will not be executed within a shell. The docker image's `ENTRYPOINT` is used if not specified. */ commands?: pulumi.Input[]>; /** * Specifies the environment variables of the Spring Cloud Deployment as a map of key-value pairs. */ environmentVariables?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Container image of the custom container. This should be in the form of `:` without the server name of the registry. */ image?: 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 language framework of the container image. The only possible value is `springboot`. */ languageFramework?: pulumi.Input; /** * The name which should be used for this Spring Cloud Container Deployment. Changing this forces a new Spring Cloud Container Deployment to be created. */ name?: pulumi.Input; /** * A `quota` block as defined below. */ quota?: pulumi.Input; /** * The name of the registry that contains the container image. */ server?: pulumi.Input; /** * The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Container Deployment to be created. */ springCloudAppId?: pulumi.Input; } /** * The set of arguments for constructing a SpringCloudContainerDeployment resource. */ export interface SpringCloudContainerDeploymentArgs { /** * A JSON object that contains the addon configurations of the Spring Cloud Container Deployment. */ addonJson?: pulumi.Input; /** * Specifies a list of Spring Cloud Application Performance Monitoring IDs. */ applicationPerformanceMonitoringIds?: pulumi.Input[]>; /** * Specifies the arguments to the entrypoint. The docker image's `CMD` is used if not specified. */ arguments?: pulumi.Input[]>; /** * Specifies the entrypoint array. It will not be executed within a shell. The docker image's `ENTRYPOINT` is used if not specified. */ commands?: pulumi.Input[]>; /** * Specifies the environment variables of the Spring Cloud Deployment as a map of key-value pairs. */ environmentVariables?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Container image of the custom container. This should be in the form of `:` without the server name of the registry. */ image: 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 language framework of the container image. The only possible value is `springboot`. */ languageFramework?: pulumi.Input; /** * The name which should be used for this Spring Cloud Container Deployment. Changing this forces a new Spring Cloud Container Deployment to be created. */ name?: pulumi.Input; /** * A `quota` block as defined below. */ quota?: pulumi.Input; /** * The name of the registry that contains the container image. */ server: pulumi.Input; /** * The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Container Deployment to be created. */ springCloudAppId: pulumi.Input; }