alicloud logo
Alibaba Cloud v3.37.0, May 15 23

alicloud.apigateway.AppAttachment

Explore with Pulumi AI

Example Usage

Basic Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var foo = new AliCloud.ApiGateway.AppAttachment("foo", new()
    {
        ApiId = "d29d25b9cfdf4742b1a3f6537299a749",
        AppId = "20898181",
        GroupId = "aaef8cdbb404420f9398a74ed1db7fff",
        StageName = "PRE",
    });

});
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.NewAppAttachment(ctx, "foo", &apigateway.AppAttachmentArgs{
			ApiId:     pulumi.String("d29d25b9cfdf4742b1a3f6537299a749"),
			AppId:     pulumi.String("20898181"),
			GroupId:   pulumi.String("aaef8cdbb404420f9398a74ed1db7fff"),
			StageName: pulumi.String("PRE"),
		})
		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.AppAttachment;
import com.pulumi.alicloud.apigateway.AppAttachmentArgs;
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 foo = new AppAttachment("foo", AppAttachmentArgs.builder()        
            .apiId("d29d25b9cfdf4742b1a3f6537299a749")
            .appId("20898181")
            .groupId("aaef8cdbb404420f9398a74ed1db7fff")
            .stageName("PRE")
            .build());

    }
}
import pulumi
import pulumi_alicloud as alicloud

foo = alicloud.apigateway.AppAttachment("foo",
    api_id="d29d25b9cfdf4742b1a3f6537299a749",
    app_id="20898181",
    group_id="aaef8cdbb404420f9398a74ed1db7fff",
    stage_name="PRE")
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const foo = new alicloud.apigateway.AppAttachment("foo", {
    apiId: "d29d25b9cfdf4742b1a3f6537299a749",
    appId: "20898181",
    groupId: "aaef8cdbb404420f9398a74ed1db7fff",
    stageName: "PRE",
});
resources:
  foo:
    type: alicloud:apigateway:AppAttachment
    properties:
      apiId: d29d25b9cfdf4742b1a3f6537299a749
      appId: '20898181'
      groupId: aaef8cdbb404420f9398a74ed1db7fff
      stageName: PRE

Create AppAttachment Resource

new AppAttachment(name: string, args: AppAttachmentArgs, opts?: CustomResourceOptions);
@overload
def AppAttachment(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  api_id: Optional[str] = None,
                  app_id: Optional[str] = None,
                  group_id: Optional[str] = None,
                  stage_name: Optional[str] = None)
@overload
def AppAttachment(resource_name: str,
                  args: AppAttachmentArgs,
                  opts: Optional[ResourceOptions] = None)
func NewAppAttachment(ctx *Context, name string, args AppAttachmentArgs, opts ...ResourceOption) (*AppAttachment, error)
public AppAttachment(string name, AppAttachmentArgs args, CustomResourceOptions? opts = null)
public AppAttachment(String name, AppAttachmentArgs args)
public AppAttachment(String name, AppAttachmentArgs args, CustomResourceOptions options)
type: alicloud:apigateway:AppAttachment
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args AppAttachmentArgs
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 AppAttachmentArgs
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 AppAttachmentArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args AppAttachmentArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args AppAttachmentArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AppAttachment 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 AppAttachment resource accepts the following input properties:

ApiId string

The api_id that app apply to access.

AppId string

The app that apply to the authorization.

GroupId string

The group that the api belongs to.

StageName string

Stage that the app apply to access.

ApiId string

The api_id that app apply to access.

AppId string

The app that apply to the authorization.

GroupId string

The group that the api belongs to.

StageName string

Stage that the app apply to access.

apiId String

The api_id that app apply to access.

appId String

The app that apply to the authorization.

groupId String

The group that the api belongs to.

stageName String

Stage that the app apply to access.

apiId string

The api_id that app apply to access.

appId string

The app that apply to the authorization.

groupId string

The group that the api belongs to.

stageName string

Stage that the app apply to access.

api_id str

The api_id that app apply to access.

app_id str

The app that apply to the authorization.

group_id str

The group that the api belongs to.

stage_name str

Stage that the app apply to access.

apiId String

The api_id that app apply to access.

appId String

The app that apply to the authorization.

groupId String

The group that the api belongs to.

stageName String

Stage that the app apply to access.

Outputs

All input properties are implicitly available as output properties. Additionally, the AppAttachment 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 AppAttachment Resource

Get an existing AppAttachment 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?: AppAttachmentState, opts?: CustomResourceOptions): AppAttachment
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        api_id: Optional[str] = None,
        app_id: Optional[str] = None,
        group_id: Optional[str] = None,
        stage_name: Optional[str] = None) -> AppAttachment
func GetAppAttachment(ctx *Context, name string, id IDInput, state *AppAttachmentState, opts ...ResourceOption) (*AppAttachment, error)
public static AppAttachment Get(string name, Input<string> id, AppAttachmentState? state, CustomResourceOptions? opts = null)
public static AppAttachment get(String name, Output<String> id, AppAttachmentState 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:
ApiId string

The api_id that app apply to access.

AppId string

The app that apply to the authorization.

GroupId string

The group that the api belongs to.

StageName string

Stage that the app apply to access.

ApiId string

The api_id that app apply to access.

AppId string

The app that apply to the authorization.

GroupId string

The group that the api belongs to.

StageName string

Stage that the app apply to access.

apiId String

The api_id that app apply to access.

appId String

The app that apply to the authorization.

groupId String

The group that the api belongs to.

stageName String

Stage that the app apply to access.

apiId string

The api_id that app apply to access.

appId string

The app that apply to the authorization.

groupId string

The group that the api belongs to.

stageName string

Stage that the app apply to access.

api_id str

The api_id that app apply to access.

app_id str

The app that apply to the authorization.

group_id str

The group that the api belongs to.

stage_name str

Stage that the app apply to access.

apiId String

The api_id that app apply to access.

appId String

The app that apply to the authorization.

groupId String

The group that the api belongs to.

stageName String

Stage that the app apply to access.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes

This Pulumi package is based on the alicloud Terraform Provider.