App

Import

Api gateway app can be imported using the id, e.g.

 $ pulumi import alicloud:apigateway/app:App example "7379660"

Example Usage

Basic Usage

using Pulumi;
using AliCloud = Pulumi.AliCloud;

class MyStack : Stack
{
    public MyStack()
    {
        var apiTest = new AliCloud.ApiGateway.App("apiTest", new AliCloud.ApiGateway.AppArgs
        {
            Description = "description of the app",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/apigateway"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := apigateway.NewApp(ctx, "apiTest", &apigateway.AppArgs{
			Description: pulumi.String("description of the app"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.apigateway.App;
import com.pulumi.alicloud.apigateway.AppArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var apiTest = new App("apiTest", AppArgs.builder()        
            .description("description of the app")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

api_test = alicloud.apigateway.App("apiTest", description="description of the app")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const apiTest = new alicloud.apigateway.App("apiTest", {
    description: "description of the app",
});
resources:
  apiTest:
    type: alicloud:apigateway:App
    properties:
      description: description of the app

Create App Resource

new App(name: string, args?: AppArgs, opts?: CustomResourceOptions);
@overload
def App(resource_name: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        tags: Optional[Mapping[str, Any]] = None)
@overload
def App(resource_name: str,
        args: Optional[AppArgs] = None,
        opts: Optional[ResourceOptions] = None)
func NewApp(ctx *Context, name string, args *AppArgs, opts ...ResourceOption) (*App, error)
public App(string name, AppArgs? args = null, CustomResourceOptions? opts = null)
public App(String name, AppArgs args)
public App(String name, AppArgs args, CustomResourceOptions options)
type: alicloud:apigateway:App
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AppArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args AppArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args AppArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AppArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AppArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

App Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The App resource accepts the following input properties:

Description string

The description of the app. Defaults to null.

Name string

The name of the app.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

Description string

The description of the app. Defaults to null.

Name string

The name of the app.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

description String

The description of the app. Defaults to null.

name String

The name of the app.

tags Map<String,Object>

A mapping of tags to assign to the resource.

description string

The description of the app. Defaults to null.

name string

The name of the app.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

description str

The description of the app. Defaults to null.

name str

The name of the app.

tags Mapping[str, Any]

A mapping of tags to assign to the resource.

description String

The description of the app. Defaults to null.

name String

The name of the app.

tags Map<Any>

A mapping of tags to assign to the resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the App resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

Id string

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

id string

The provider-assigned unique ID for this managed resource.

id str

The provider-assigned unique ID for this managed resource.

id String

The provider-assigned unique ID for this managed resource.

Look up Existing App Resource

Get an existing App 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?: AppState, opts?: CustomResourceOptions): App
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        name: Optional[str] = None,
        tags: Optional[Mapping[str, Any]] = None) -> App
func GetApp(ctx *Context, name string, id IDInput, state *AppState, opts ...ResourceOption) (*App, error)
public static App Get(string name, Input<string> id, AppState? state, CustomResourceOptions? opts = null)
public static App get(String name, Output<String> id, AppState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
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.
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:
Description string

The description of the app. Defaults to null.

Name string

The name of the app.

Tags Dictionary<string, object>

A mapping of tags to assign to the resource.

Description string

The description of the app. Defaults to null.

Name string

The name of the app.

Tags map[string]interface{}

A mapping of tags to assign to the resource.

description String

The description of the app. Defaults to null.

name String

The name of the app.

tags Map<String,Object>

A mapping of tags to assign to the resource.

description string

The description of the app. Defaults to null.

name string

The name of the app.

tags {[key: string]: any}

A mapping of tags to assign to the resource.

description str

The description of the app. Defaults to null.

name str

The name of the app.

tags Mapping[str, Any]

A mapping of tags to assign to the resource.

description String

The description of the app. Defaults to null.

name String

The name of the app.

tags Map<Any>

A mapping of tags to assign to the resource.

Package Details

Repository
https://github.com/pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.