import * as pulumi from "@pulumi/pulumi"; /** * Manages an Azure Spring Cloud Custom Domain. * * !> **Note:** Azure Spring Apps is now deprecated and will be retired on 2028-05-31 - as such the `azure.appplatform.SpringCloudCustomDomain` 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"; * import * as std from "@pulumi/std"; * * const exampleResourceGroup = new azure.core.ResourceGroup("example", { * name: "rg-example", * location: "West Europe", * }); * const example = azure.dns.getZoneOutput({ * name: "mydomain.com", * resourceGroupName: exampleResourceGroup.name, * }); * const exampleSpringCloudService = new azure.appplatform.SpringCloudService("example", { * name: "example-springcloud", * resourceGroupName: exampleResourceGroup.name, * location: exampleResourceGroup.location, * }); * const exampleSpringCloudApp = new azure.appplatform.SpringCloudApp("example", { * name: "example-springcloudapp", * resourceGroupName: exampleResourceGroup.name, * serviceName: exampleSpringCloudService.name, * }); * const exampleCNameRecord = new azure.dns.CNameRecord("example", { * name: "record1", * zoneName: example.apply(example => example.name), * resourceGroupName: example.apply(example => example.resourceGroupName), * ttl: 300, * record: exampleSpringCloudApp.fqdn, * }); * const exampleSpringCloudCustomDomain = new azure.appplatform.SpringCloudCustomDomain("example", { * name: std.joinOutput({ * separator: ".", * input: [ * exampleCNameRecord.name, * exampleCNameRecord.zoneName, * ], * }).apply(invoke => invoke.result), * springCloudAppId: exampleSpringCloudApp.id, * }); * ``` * * ## Import * * Spring Cloud Custom Domain can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:appplatform/springCloudCustomDomain:SpringCloudCustomDomain example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.AppPlatform/spring/spring1/apps/app1/domains/domain.com * ``` */ export declare class SpringCloudCustomDomain extends pulumi.CustomResource { /** * Get an existing SpringCloudCustomDomain 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?: SpringCloudCustomDomainState, opts?: pulumi.CustomResourceOptions): SpringCloudCustomDomain; /** * Returns true if the given object is an instance of SpringCloudCustomDomain. 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 SpringCloudCustomDomain; /** * Specifies the name of the Spring Cloud Certificate that binds to the Spring Cloud Custom Domain. Required when `thumbprint` is specified */ readonly certificateName: pulumi.Output; /** * Specifies the name of the Spring Cloud Custom Domain. Changing this forces a new resource to be created. */ readonly name: pulumi.Output; /** * Specifies the resource ID of the Spring Cloud Application. Changing this forces a new resource to be created. */ readonly springCloudAppId: pulumi.Output; /** * Specifies the thumbprint of the Spring Cloud Certificate that binds to the Spring Cloud Custom Domain. Required when `certificateName` is specified. Changing this forces a new resource to be created. */ readonly thumbprint: pulumi.Output; /** * Create a SpringCloudCustomDomain 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: SpringCloudCustomDomainArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SpringCloudCustomDomain resources. */ export interface SpringCloudCustomDomainState { /** * Specifies the name of the Spring Cloud Certificate that binds to the Spring Cloud Custom Domain. Required when `thumbprint` is specified */ certificateName?: pulumi.Input; /** * Specifies the name of the Spring Cloud Custom Domain. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies the resource ID of the Spring Cloud Application. Changing this forces a new resource to be created. */ springCloudAppId?: pulumi.Input; /** * Specifies the thumbprint of the Spring Cloud Certificate that binds to the Spring Cloud Custom Domain. Required when `certificateName` is specified. Changing this forces a new resource to be created. */ thumbprint?: pulumi.Input; } /** * The set of arguments for constructing a SpringCloudCustomDomain resource. */ export interface SpringCloudCustomDomainArgs { /** * Specifies the name of the Spring Cloud Certificate that binds to the Spring Cloud Custom Domain. Required when `thumbprint` is specified */ certificateName?: pulumi.Input; /** * Specifies the name of the Spring Cloud Custom Domain. Changing this forces a new resource to be created. */ name?: pulumi.Input; /** * Specifies the resource ID of the Spring Cloud Application. Changing this forces a new resource to be created. */ springCloudAppId: pulumi.Input; /** * Specifies the thumbprint of the Spring Cloud Certificate that binds to the Spring Cloud Custom Domain. Required when `certificateName` is specified. Changing this forces a new resource to be created. */ thumbprint?: pulumi.Input; }