1. Packages
  2. Volcengine
  3. API Docs
  4. alb
  5. CustomizedCfg
Volcengine v0.0.28 published on Thursday, Apr 24, 2025 by Volcengine

volcengine.alb.CustomizedCfg

Explore with Pulumi AI

Provides a resource to manage alb customized cfg

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";

const foo = new volcengine.alb.CustomizedCfg("foo", {
    customizedCfgContent: "proxy_connect_timeout 4s;proxy_request_buffering on;",
    customizedCfgName: "acc-test-cfg1",
    description: "This is a test modify",
    projectName: "default",
});
Copy
import pulumi
import pulumi_volcengine as volcengine

foo = volcengine.alb.CustomizedCfg("foo",
    customized_cfg_content="proxy_connect_timeout 4s;proxy_request_buffering on;",
    customized_cfg_name="acc-test-cfg1",
    description="This is a test modify",
    project_name="default")
Copy
package main

import (
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/alb"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := alb.NewCustomizedCfg(ctx, "foo", &alb.CustomizedCfgArgs{
			CustomizedCfgContent: pulumi.String("proxy_connect_timeout 4s;proxy_request_buffering on;"),
			CustomizedCfgName:    pulumi.String("acc-test-cfg1"),
			Description:          pulumi.String("This is a test modify"),
			ProjectName:          pulumi.String("default"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;

return await Deployment.RunAsync(() => 
{
    var foo = new Volcengine.Alb.CustomizedCfg("foo", new()
    {
        CustomizedCfgContent = "proxy_connect_timeout 4s;proxy_request_buffering on;",
        CustomizedCfgName = "acc-test-cfg1",
        Description = "This is a test modify",
        ProjectName = "default",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.alb.CustomizedCfg;
import com.pulumi.volcengine.alb.CustomizedCfgArgs;
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 CustomizedCfg("foo", CustomizedCfgArgs.builder()        
            .customizedCfgContent("proxy_connect_timeout 4s;proxy_request_buffering on;")
            .customizedCfgName("acc-test-cfg1")
            .description("This is a test modify")
            .projectName("default")
            .build());

    }
}
Copy
resources:
  foo:
    type: volcengine:alb:CustomizedCfg
    properties:
      customizedCfgContent: proxy_connect_timeout 4s;proxy_request_buffering on;
      customizedCfgName: acc-test-cfg1
      description: This is a test modify
      projectName: default
Copy

Create CustomizedCfg Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new CustomizedCfg(name: string, args: CustomizedCfgArgs, opts?: CustomResourceOptions);
@overload
def CustomizedCfg(resource_name: str,
                  args: CustomizedCfgArgs,
                  opts: Optional[ResourceOptions] = None)

@overload
def CustomizedCfg(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  customized_cfg_content: Optional[str] = None,
                  customized_cfg_name: Optional[str] = None,
                  description: Optional[str] = None,
                  project_name: Optional[str] = None)
func NewCustomizedCfg(ctx *Context, name string, args CustomizedCfgArgs, opts ...ResourceOption) (*CustomizedCfg, error)
public CustomizedCfg(string name, CustomizedCfgArgs args, CustomResourceOptions? opts = null)
public CustomizedCfg(String name, CustomizedCfgArgs args)
public CustomizedCfg(String name, CustomizedCfgArgs args, CustomResourceOptions options)
type: volcengine:alb:CustomizedCfg
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

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

Constructor example

The following reference example uses placeholder values for all input properties.

var customizedCfgResource = new Volcengine.Alb.CustomizedCfg("customizedCfgResource", new()
{
    CustomizedCfgContent = "string",
    CustomizedCfgName = "string",
    Description = "string",
    ProjectName = "string",
});
Copy
example, err := alb.NewCustomizedCfg(ctx, "customizedCfgResource", &alb.CustomizedCfgArgs{
	CustomizedCfgContent: pulumi.String("string"),
	CustomizedCfgName:    pulumi.String("string"),
	Description:          pulumi.String("string"),
	ProjectName:          pulumi.String("string"),
})
Copy
var customizedCfgResource = new CustomizedCfg("customizedCfgResource", CustomizedCfgArgs.builder()
    .customizedCfgContent("string")
    .customizedCfgName("string")
    .description("string")
    .projectName("string")
    .build());
Copy
customized_cfg_resource = volcengine.alb.CustomizedCfg("customizedCfgResource",
    customized_cfg_content="string",
    customized_cfg_name="string",
    description="string",
    project_name="string")
Copy
const customizedCfgResource = new volcengine.alb.CustomizedCfg("customizedCfgResource", {
    customizedCfgContent: "string",
    customizedCfgName: "string",
    description: "string",
    projectName: "string",
});
Copy
type: volcengine:alb:CustomizedCfg
properties:
    customizedCfgContent: string
    customizedCfgName: string
    description: string
    projectName: string
Copy

CustomizedCfg Resource Properties

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

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The CustomizedCfg resource accepts the following input properties:

CustomizedCfgContent This property is required. string
The content of CustomizedCfg. The length cannot exceed 4096 characters. Spaces and semicolons need to be escaped. Currently supported configuration items are ssl_protocols, ssl_ciphers, client_max_body_size, keepalive_timeout, proxy_request_buffering and proxy_connect_timeout.
CustomizedCfgName This property is required. string
The name of CustomizedCfg.
Description string
The description of CustomizedCfg.
ProjectName string
The project name of the CustomizedCfg.
CustomizedCfgContent This property is required. string
The content of CustomizedCfg. The length cannot exceed 4096 characters. Spaces and semicolons need to be escaped. Currently supported configuration items are ssl_protocols, ssl_ciphers, client_max_body_size, keepalive_timeout, proxy_request_buffering and proxy_connect_timeout.
CustomizedCfgName This property is required. string
The name of CustomizedCfg.
Description string
The description of CustomizedCfg.
ProjectName string
The project name of the CustomizedCfg.
customizedCfgContent This property is required. String
The content of CustomizedCfg. The length cannot exceed 4096 characters. Spaces and semicolons need to be escaped. Currently supported configuration items are ssl_protocols, ssl_ciphers, client_max_body_size, keepalive_timeout, proxy_request_buffering and proxy_connect_timeout.
customizedCfgName This property is required. String
The name of CustomizedCfg.
description String
The description of CustomizedCfg.
projectName String
The project name of the CustomizedCfg.
customizedCfgContent This property is required. string
The content of CustomizedCfg. The length cannot exceed 4096 characters. Spaces and semicolons need to be escaped. Currently supported configuration items are ssl_protocols, ssl_ciphers, client_max_body_size, keepalive_timeout, proxy_request_buffering and proxy_connect_timeout.
customizedCfgName This property is required. string
The name of CustomizedCfg.
description string
The description of CustomizedCfg.
projectName string
The project name of the CustomizedCfg.
customized_cfg_content This property is required. str
The content of CustomizedCfg. The length cannot exceed 4096 characters. Spaces and semicolons need to be escaped. Currently supported configuration items are ssl_protocols, ssl_ciphers, client_max_body_size, keepalive_timeout, proxy_request_buffering and proxy_connect_timeout.
customized_cfg_name This property is required. str
The name of CustomizedCfg.
description str
The description of CustomizedCfg.
project_name str
The project name of the CustomizedCfg.
customizedCfgContent This property is required. String
The content of CustomizedCfg. The length cannot exceed 4096 characters. Spaces and semicolons need to be escaped. Currently supported configuration items are ssl_protocols, ssl_ciphers, client_max_body_size, keepalive_timeout, proxy_request_buffering and proxy_connect_timeout.
customizedCfgName This property is required. String
The name of CustomizedCfg.
description String
The description of CustomizedCfg.
projectName String
The project name of the CustomizedCfg.

Outputs

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

Get an existing CustomizedCfg 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?: CustomizedCfgState, opts?: CustomResourceOptions): CustomizedCfg
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        customized_cfg_content: Optional[str] = None,
        customized_cfg_name: Optional[str] = None,
        description: Optional[str] = None,
        project_name: Optional[str] = None) -> CustomizedCfg
func GetCustomizedCfg(ctx *Context, name string, id IDInput, state *CustomizedCfgState, opts ...ResourceOption) (*CustomizedCfg, error)
public static CustomizedCfg Get(string name, Input<string> id, CustomizedCfgState? state, CustomResourceOptions? opts = null)
public static CustomizedCfg get(String name, Output<String> id, CustomizedCfgState state, CustomResourceOptions options)
resources:  _:    type: volcengine:alb:CustomizedCfg    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
CustomizedCfgContent string
The content of CustomizedCfg. The length cannot exceed 4096 characters. Spaces and semicolons need to be escaped. Currently supported configuration items are ssl_protocols, ssl_ciphers, client_max_body_size, keepalive_timeout, proxy_request_buffering and proxy_connect_timeout.
CustomizedCfgName string
The name of CustomizedCfg.
Description string
The description of CustomizedCfg.
ProjectName string
The project name of the CustomizedCfg.
CustomizedCfgContent string
The content of CustomizedCfg. The length cannot exceed 4096 characters. Spaces and semicolons need to be escaped. Currently supported configuration items are ssl_protocols, ssl_ciphers, client_max_body_size, keepalive_timeout, proxy_request_buffering and proxy_connect_timeout.
CustomizedCfgName string
The name of CustomizedCfg.
Description string
The description of CustomizedCfg.
ProjectName string
The project name of the CustomizedCfg.
customizedCfgContent String
The content of CustomizedCfg. The length cannot exceed 4096 characters. Spaces and semicolons need to be escaped. Currently supported configuration items are ssl_protocols, ssl_ciphers, client_max_body_size, keepalive_timeout, proxy_request_buffering and proxy_connect_timeout.
customizedCfgName String
The name of CustomizedCfg.
description String
The description of CustomizedCfg.
projectName String
The project name of the CustomizedCfg.
customizedCfgContent string
The content of CustomizedCfg. The length cannot exceed 4096 characters. Spaces and semicolons need to be escaped. Currently supported configuration items are ssl_protocols, ssl_ciphers, client_max_body_size, keepalive_timeout, proxy_request_buffering and proxy_connect_timeout.
customizedCfgName string
The name of CustomizedCfg.
description string
The description of CustomizedCfg.
projectName string
The project name of the CustomizedCfg.
customized_cfg_content str
The content of CustomizedCfg. The length cannot exceed 4096 characters. Spaces and semicolons need to be escaped. Currently supported configuration items are ssl_protocols, ssl_ciphers, client_max_body_size, keepalive_timeout, proxy_request_buffering and proxy_connect_timeout.
customized_cfg_name str
The name of CustomizedCfg.
description str
The description of CustomizedCfg.
project_name str
The project name of the CustomizedCfg.
customizedCfgContent String
The content of CustomizedCfg. The length cannot exceed 4096 characters. Spaces and semicolons need to be escaped. Currently supported configuration items are ssl_protocols, ssl_ciphers, client_max_body_size, keepalive_timeout, proxy_request_buffering and proxy_connect_timeout.
customizedCfgName String
The name of CustomizedCfg.
description String
The description of CustomizedCfg.
projectName String
The project name of the CustomizedCfg.

Import

AlbCustomizedCfg can be imported using the id, e.g.

$ pulumi import volcengine:alb/customizedCfg:CustomizedCfg default ccfg-3cj44nv0jhhxc6c6rrtet****
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
volcengine volcengine/pulumi-volcengine
License
Apache-2.0
Notes
This Pulumi package is based on the volcengine Terraform Provider.