SpringCloudApp
Manage an Azure Spring Cloud Application.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "Southeast Asia",
});
var exampleSpringCloudService = new Azure.AppPlatform.SpringCloudService("exampleSpringCloudService", new Azure.AppPlatform.SpringCloudServiceArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = exampleResourceGroup.Location,
});
var exampleSpringCloudApp = new Azure.AppPlatform.SpringCloudApp("exampleSpringCloudApp", new Azure.AppPlatform.SpringCloudAppArgs
{
ResourceGroupName = exampleResourceGroup.Name,
ServiceName = exampleSpringCloudService.Name,
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/appplatform"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("Southeast Asia"),
})
if err != nil {
return err
}
exampleSpringCloudService, err := appplatform.NewSpringCloudService(ctx, "exampleSpringCloudService", &appplatform.SpringCloudServiceArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: exampleResourceGroup.Location,
})
if err != nil {
return err
}
_, err = appplatform.NewSpringCloudApp(ctx, "exampleSpringCloudApp", &appplatform.SpringCloudAppArgs{
ResourceGroupName: exampleResourceGroup.Name,
ServiceName: exampleSpringCloudService.Name,
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="Southeast Asia")
example_spring_cloud_service = azure.appplatform.SpringCloudService("exampleSpringCloudService",
resource_group_name=example_resource_group.name,
location=example_resource_group.location)
example_spring_cloud_app = azure.appplatform.SpringCloudApp("exampleSpringCloudApp",
resource_group_name=example_resource_group.name,
service_name=example_spring_cloud_service.name)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "Southeast Asia"});
const exampleSpringCloudService = new azure.appplatform.SpringCloudService("exampleSpringCloudService", {
resourceGroupName: exampleResourceGroup.name,
location: exampleResourceGroup.location,
});
const exampleSpringCloudApp = new azure.appplatform.SpringCloudApp("exampleSpringCloudApp", {
resourceGroupName: exampleResourceGroup.name,
serviceName: exampleSpringCloudService.name,
});Create a SpringCloudApp Resource
new SpringCloudApp(name: string, args: SpringCloudAppArgs, opts?: CustomResourceOptions);def SpringCloudApp(resource_name, opts=None, name=None, resource_group_name=None, service_name=None, __props__=None);func NewSpringCloudApp(ctx *Context, name string, args SpringCloudAppArgs, opts ...ResourceOption) (*SpringCloudApp, error)public SpringCloudApp(string name, SpringCloudAppArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args SpringCloudAppArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SpringCloudAppArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SpringCloudAppArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
SpringCloudApp Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The SpringCloudApp resource accepts the following input properties:
- Resource
Group stringName Specifies the name of the resource group in which to create the Spring Cloud Application. Changing this forces a new resource to be created.
- Service
Name string Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Spring Cloud Application. Changing this forces a new resource to be created.
- Resource
Group stringName Specifies the name of the resource group in which to create the Spring Cloud Application. Changing this forces a new resource to be created.
- Service
Name string Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Spring Cloud Application. Changing this forces a new resource to be created.
- resource
Group stringName Specifies the name of the resource group in which to create the Spring Cloud Application. Changing this forces a new resource to be created.
- service
Name string Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
- name string
Specifies the name of the Spring Cloud Application. Changing this forces a new resource to be created.
- resource_
group_ strname Specifies the name of the resource group in which to create the Spring Cloud Application. Changing this forces a new resource to be created.
- service_
name str Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
- name str
Specifies the name of the Spring Cloud Application. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the SpringCloudApp resource produces the following output properties:
Look up an Existing SpringCloudApp Resource
Get an existing SpringCloudApp resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SpringCloudAppState, opts?: CustomResourceOptions): SpringCloudAppstatic get(resource_name, id, opts=None, name=None, resource_group_name=None, service_name=None, __props__=None);func GetSpringCloudApp(ctx *Context, name string, id IDInput, state *SpringCloudAppState, opts ...ResourceOption) (*SpringCloudApp, error)public static SpringCloudApp Get(string name, Input<string> id, SpringCloudAppState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Name string
Specifies the name of the Spring Cloud Application. Changing this forces a new resource to be created.
- Resource
Group stringName Specifies the name of the resource group in which to create the Spring Cloud Application. Changing this forces a new resource to be created.
- Service
Name string Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
- Name string
Specifies the name of the Spring Cloud Application. Changing this forces a new resource to be created.
- Resource
Group stringName Specifies the name of the resource group in which to create the Spring Cloud Application. Changing this forces a new resource to be created.
- Service
Name string Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
- name string
Specifies the name of the Spring Cloud Application. Changing this forces a new resource to be created.
- resource
Group stringName Specifies the name of the resource group in which to create the Spring Cloud Application. Changing this forces a new resource to be created.
- service
Name string Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
- name str
Specifies the name of the Spring Cloud Application. Changing this forces a new resource to be created.
- resource_
group_ strname Specifies the name of the resource group in which to create the Spring Cloud Application. Changing this forces a new resource to be created.
- service_
name str Specifies the name of the Spring Cloud Service resource. Changing this forces a new resource to be created.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.