import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages a Spring Cloud Configuration Service. * * > **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.SpringCloudConfigurationService` 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 exampleSpringCloudConfigurationService = new azure.appplatform.SpringCloudConfigurationService("example", { * name: "default", * springCloudServiceId: exampleSpringCloudService.id, * repositories: [{ * name: "fake", * label: "master", * patterns: ["app/dev"], * uri: "https://github.com/Azure-Samples/piggymetrics", * searchPaths: [ * "dir1", * "dir2", * ], * strictHostKeyChecking: false, * username: "adminuser", * password: "H@Sh1CoR3!", * }], * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.AppPlatform` - 2024-01-01-preview * * ## Import * * Spring Cloud Configuration Services can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:appplatform/springCloudConfigurationService:SpringCloudConfigurationService example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resourceGroup1/providers/Microsoft.AppPlatform/spring/service1/configurationServices/configurationService1 * ``` */ export declare class SpringCloudConfigurationService extends pulumi.CustomResource { /** * Get an existing SpringCloudConfigurationService 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?: SpringCloudConfigurationServiceState, opts?: pulumi.CustomResourceOptions): SpringCloudConfigurationService; /** * Returns true if the given object is an instance of SpringCloudConfigurationService. 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 SpringCloudConfigurationService; /** * The generation of the Spring Cloud Configuration Service. Possible values are `Gen1` and `Gen2`. */ readonly generation: pulumi.Output; /** * The name which should be used for this Spring Cloud Configuration Service. The only possible value is `default`. Changing this forces a new Spring Cloud Configuration Service to be created. */ readonly name: pulumi.Output; /** * Specifies how often to check repository updates. Minimum value is 0. */ readonly refreshIntervalInSeconds: pulumi.Output; /** * One or more `repository` blocks as defined below. */ readonly repositories: pulumi.Output; /** * The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Configuration Service to be created. */ readonly springCloudServiceId: pulumi.Output; /** * Create a SpringCloudConfigurationService 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: SpringCloudConfigurationServiceArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SpringCloudConfigurationService resources. */ export interface SpringCloudConfigurationServiceState { /** * The generation of the Spring Cloud Configuration Service. Possible values are `Gen1` and `Gen2`. */ generation?: pulumi.Input; /** * The name which should be used for this Spring Cloud Configuration Service. The only possible value is `default`. Changing this forces a new Spring Cloud Configuration Service to be created. */ name?: pulumi.Input; /** * Specifies how often to check repository updates. Minimum value is 0. */ refreshIntervalInSeconds?: pulumi.Input; /** * One or more `repository` blocks as defined below. */ repositories?: pulumi.Input[]>; /** * The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Configuration Service to be created. */ springCloudServiceId?: pulumi.Input; } /** * The set of arguments for constructing a SpringCloudConfigurationService resource. */ export interface SpringCloudConfigurationServiceArgs { /** * The generation of the Spring Cloud Configuration Service. Possible values are `Gen1` and `Gen2`. */ generation?: pulumi.Input; /** * The name which should be used for this Spring Cloud Configuration Service. The only possible value is `default`. Changing this forces a new Spring Cloud Configuration Service to be created. */ name?: pulumi.Input; /** * Specifies how often to check repository updates. Minimum value is 0. */ refreshIntervalInSeconds?: pulumi.Input; /** * One or more `repository` blocks as defined below. */ repositories?: pulumi.Input[]>; /** * The ID of the Spring Cloud Service. Changing this forces a new Spring Cloud Configuration Service to be created. */ springCloudServiceId: pulumi.Input; }