import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Spring Cloud Build Pack Binding. * * > **Note:** This resource is applicable only for Spring Cloud Service with enterprise tier. * * !> **Note:** Azure Spring Apps is now deprecated and will be retired on 2028-05-31 - as such the `azure.appplatform.SpringCloudBuildPackBinding` 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, * skuName: "E0", * }); * const exampleSpringCloudBuilder = new azure.appplatform.SpringCloudBuilder("example", { * name: "example", * springCloudServiceId: exampleSpringCloudService.id, * buildPackGroups: [{ * name: "mix", * buildPackIds: ["tanzu-Build Packs/java-azure"], * }], * stack: { * id: "io.Build Packs.stacks.bionic", * version: "base", * }, * }); * const exampleSpringCloudBuildPackBinding = new azure.appplatform.SpringCloudBuildPackBinding("example", { * name: "example", * springCloudBuilderId: exampleSpringCloudBuilder.id, * bindingType: "ApplicationInsights", * launch: { * properties: { * abc: "def", * "any-string": "any-string", * "sampling-rate": "12.0", * }, * secrets: { * "connection-string": "XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXX;XXXXXXXXXXXXXXXXX=XXXXXXXXXXXXXXXXXXX", * }, * }, * }); * ``` * * ## Import * * Spring Cloud Build Pack Bindings can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:appplatform/springCloudBuildPackBinding:SpringCloudBuildPackBinding example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.AppPlatform/spring/service1/buildServices/buildService1/builders/builder1/buildPackBindings/binding1 * ``` */ export declare class SpringCloudBuildPackBinding extends pulumi.CustomResource { /** * Get an existing SpringCloudBuildPackBinding 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?: SpringCloudBuildPackBindingState, opts?: pulumi.CustomResourceOptions): SpringCloudBuildPackBinding; /** * Returns true if the given object is an instance of SpringCloudBuildPackBinding. 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 SpringCloudBuildPackBinding; /** * Specifies the Build Pack Binding Type. Allowed values are `ApacheSkyWalking`, `AppDynamics`, `ApplicationInsights`, `Dynatrace`, `ElasticAPM` and `NewRelic`. */ readonly bindingType: pulumi.Output; /** * A `launch` block as defined below. */ readonly launch: pulumi.Output; /** * The name which should be used for this Spring Cloud Build Pack Binding. Changing this forces a new Spring Cloud Build Pack Binding to be created. */ readonly name: pulumi.Output; /** * The ID of the Spring Cloud Builder. Changing this forces a new Spring Cloud Build Pack Binding to be created. */ readonly springCloudBuilderId: pulumi.Output; /** * Create a SpringCloudBuildPackBinding 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: SpringCloudBuildPackBindingArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SpringCloudBuildPackBinding resources. */ export interface SpringCloudBuildPackBindingState { /** * Specifies the Build Pack Binding Type. Allowed values are `ApacheSkyWalking`, `AppDynamics`, `ApplicationInsights`, `Dynatrace`, `ElasticAPM` and `NewRelic`. */ bindingType?: pulumi.Input; /** * A `launch` block as defined below. */ launch?: pulumi.Input; /** * The name which should be used for this Spring Cloud Build Pack Binding. Changing this forces a new Spring Cloud Build Pack Binding to be created. */ name?: pulumi.Input; /** * The ID of the Spring Cloud Builder. Changing this forces a new Spring Cloud Build Pack Binding to be created. */ springCloudBuilderId?: pulumi.Input; } /** * The set of arguments for constructing a SpringCloudBuildPackBinding resource. */ export interface SpringCloudBuildPackBindingArgs { /** * Specifies the Build Pack Binding Type. Allowed values are `ApacheSkyWalking`, `AppDynamics`, `ApplicationInsights`, `Dynatrace`, `ElasticAPM` and `NewRelic`. */ bindingType?: pulumi.Input; /** * A `launch` block as defined below. */ launch?: pulumi.Input; /** * The name which should be used for this Spring Cloud Build Pack Binding. Changing this forces a new Spring Cloud Build Pack Binding to be created. */ name?: pulumi.Input; /** * The ID of the Spring Cloud Builder. Changing this forces a new Spring Cloud Build Pack Binding to be created. */ springCloudBuilderId: pulumi.Input; }