GroupArgs

data class GroupArgs(val basePath: Output<String>? = null, val description: Output<String>? = null, val instanceId: Output<String>? = null, val name: Output<String>? = null, val userLogConfig: Output<GroupUserLogConfigArgs>? = null, val vpcIntranetEnable: Output<Boolean>? = null) : ConvertibleToJava<GroupArgs>

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = new alicloud.apigateway.Group("default", {
name: "tf_example",
description: "tf_example",
basePath: "/",
userLogConfig: {
requestBody: true,
responseBody: true,
queryString: "*",
requestHeaders: "*",
responseHeaders: "*",
jwtClaims: "*",
},
});
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.apigateway.Group("default",
name="tf_example",
description="tf_example",
base_path="/",
user_log_config={
"request_body": True,
"response_body": True,
"query_string": "*",
"request_headers": "*",
"response_headers": "*",
"jwt_claims": "*",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = new AliCloud.ApiGateway.Group("default", new()
{
Name = "tf_example",
Description = "tf_example",
BasePath = "/",
UserLogConfig = new AliCloud.ApiGateway.Inputs.GroupUserLogConfigArgs
{
RequestBody = true,
ResponseBody = true,
QueryString = "*",
RequestHeaders = "*",
ResponseHeaders = "*",
JwtClaims = "*",
},
});
});
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.NewGroup(ctx, "default", &apigateway.GroupArgs{
Name: pulumi.String("tf_example"),
Description: pulumi.String("tf_example"),
BasePath: pulumi.String("/"),
UserLogConfig: &apigateway.GroupUserLogConfigArgs{
RequestBody: pulumi.Bool(true),
ResponseBody: pulumi.Bool(true),
QueryString: pulumi.String("*"),
RequestHeaders: pulumi.String("*"),
ResponseHeaders: pulumi.String("*"),
JwtClaims: pulumi.String("*"),
},
})
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.Group;
import com.pulumi.alicloud.apigateway.GroupArgs;
import com.pulumi.alicloud.apigateway.inputs.GroupUserLogConfigArgs;
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 default_ = new Group("default", GroupArgs.builder()
.name("tf_example")
.description("tf_example")
.basePath("/")
.userLogConfig(GroupUserLogConfigArgs.builder()
.requestBody(true)
.responseBody(true)
.queryString("*")
.requestHeaders("*")
.responseHeaders("*")
.jwtClaims("*")
.build())
.build());
}
}
resources:
default:
type: alicloud:apigateway:Group
properties:
name: tf_example
description: tf_example
basePath: /
userLogConfig:
requestBody: true
responseBody: true
queryString: '*'
requestHeaders: '*'
responseHeaders: '*'
jwtClaims: '*'

Import

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

$ pulumi import alicloud:apigateway/group:Group example "ab2351f2ce904edaa8d92a0510832b91"

Constructors

Link copied to clipboard
constructor(basePath: Output<String>? = null, description: Output<String>? = null, instanceId: Output<String>? = null, name: Output<String>? = null, userLogConfig: Output<GroupUserLogConfigArgs>? = null, vpcIntranetEnable: Output<Boolean>? = null)

Properties

Link copied to clipboard
val basePath: Output<String>? = null

The base path of the api gateway group. Defaults to /.

Link copied to clipboard
val description: Output<String>? = null

The description of the api gateway group. Defaults to null.

Link copied to clipboard
val instanceId: Output<String>? = null

The id of the api gateway.

Link copied to clipboard
val name: Output<String>? = null

The name of the api gateway group. Defaults to null.

Link copied to clipboard

user_log_config defines the config of user log of the group. See user_log_config below.

Link copied to clipboard
val vpcIntranetEnable: Output<Boolean>? = null

Whether to enable vpc_domain. Defaults to false.

Functions

Link copied to clipboard
open override fun toJava(): GroupArgs