1. Packages
  2. Volcengine
  3. API Docs
  4. alb
  5. TlsAccessLog
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine
volcengine logo
Viewing docs for Volcengine v0.0.47
published on Friday, Mar 13, 2026 by Volcengine

    Provides a resource to manage alb tls access log

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    // Enable ALB TLS Access Log (TLS Topic)
    const _default = new volcengine.alb.TlsAccessLog("default", {
        loadBalancerId: "alb-bdchexlt87pc8dv40nbr6mu7",
        projectId: "3746fa99-3eda-42ab-b2c2-a0bf5d6b26ac",
        topicId: "a63a5016-3a68-4723-a754-235a09653ce8",
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    # Enable ALB TLS Access Log (TLS Topic)
    default = volcengine.alb.TlsAccessLog("default",
        load_balancer_id="alb-bdchexlt87pc8dv40nbr6mu7",
        project_id="3746fa99-3eda-42ab-b2c2-a0bf5d6b26ac",
        topic_id="a63a5016-3a68-4723-a754-235a09653ce8")
    
    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 {
    		// Enable ALB TLS Access Log (TLS Topic)
    		_, err := alb.NewTlsAccessLog(ctx, "default", &alb.TlsAccessLogArgs{
    			LoadBalancerId: pulumi.String("alb-bdchexlt87pc8dv40nbr6mu7"),
    			ProjectId:      pulumi.String("3746fa99-3eda-42ab-b2c2-a0bf5d6b26ac"),
    			TopicId:        pulumi.String("a63a5016-3a68-4723-a754-235a09653ce8"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        // Enable ALB TLS Access Log (TLS Topic)
        var @default = new Volcengine.Alb.TlsAccessLog("default", new()
        {
            LoadBalancerId = "alb-bdchexlt87pc8dv40nbr6mu7",
            ProjectId = "3746fa99-3eda-42ab-b2c2-a0bf5d6b26ac",
            TopicId = "a63a5016-3a68-4723-a754-235a09653ce8",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.alb.TlsAccessLog;
    import com.pulumi.volcengine.alb.TlsAccessLogArgs;
    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) {
            // Enable ALB TLS Access Log (TLS Topic)
            var default_ = new TlsAccessLog("default", TlsAccessLogArgs.builder()        
                .loadBalancerId("alb-bdchexlt87pc8dv40nbr6mu7")
                .projectId("3746fa99-3eda-42ab-b2c2-a0bf5d6b26ac")
                .topicId("a63a5016-3a68-4723-a754-235a09653ce8")
                .build());
    
        }
    }
    
    resources:
      # Enable ALB TLS Access Log (TLS Topic)
      default:
        type: volcengine:alb:TlsAccessLog
        properties:
          loadBalancerId: alb-bdchexlt87pc8dv40nbr6mu7
          projectId: 3746fa99-3eda-42ab-b2c2-a0bf5d6b26ac
          topicId: a63a5016-3a68-4723-a754-235a09653ce8
    

    Create TlsAccessLog Resource

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

    Constructor syntax

    new TlsAccessLog(name: string, args: TlsAccessLogArgs, opts?: CustomResourceOptions);
    @overload
    def TlsAccessLog(resource_name: str,
                     args: TlsAccessLogArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def TlsAccessLog(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     load_balancer_id: Optional[str] = None,
                     project_id: Optional[str] = None,
                     topic_id: Optional[str] = None)
    func NewTlsAccessLog(ctx *Context, name string, args TlsAccessLogArgs, opts ...ResourceOption) (*TlsAccessLog, error)
    public TlsAccessLog(string name, TlsAccessLogArgs args, CustomResourceOptions? opts = null)
    public TlsAccessLog(String name, TlsAccessLogArgs args)
    public TlsAccessLog(String name, TlsAccessLogArgs args, CustomResourceOptions options)
    
    type: volcengine:alb:TlsAccessLog
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TlsAccessLogArgs
    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 TlsAccessLogArgs
    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 TlsAccessLogArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TlsAccessLogArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TlsAccessLogArgs
    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 tlsAccessLogResource = new Volcengine.Alb.TlsAccessLog("tlsAccessLogResource", new()
    {
        LoadBalancerId = "string",
        ProjectId = "string",
        TopicId = "string",
    });
    
    example, err := alb.NewTlsAccessLog(ctx, "tlsAccessLogResource", &alb.TlsAccessLogArgs{
    	LoadBalancerId: pulumi.String("string"),
    	ProjectId:      pulumi.String("string"),
    	TopicId:        pulumi.String("string"),
    })
    
    var tlsAccessLogResource = new TlsAccessLog("tlsAccessLogResource", TlsAccessLogArgs.builder()
        .loadBalancerId("string")
        .projectId("string")
        .topicId("string")
        .build());
    
    tls_access_log_resource = volcengine.alb.TlsAccessLog("tlsAccessLogResource",
        load_balancer_id="string",
        project_id="string",
        topic_id="string")
    
    const tlsAccessLogResource = new volcengine.alb.TlsAccessLog("tlsAccessLogResource", {
        loadBalancerId: "string",
        projectId: "string",
        topicId: "string",
    });
    
    type: volcengine:alb:TlsAccessLog
    properties:
        loadBalancerId: string
        projectId: string
        topicId: string
    

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

    LoadBalancerId string
    The ID of the LoadBalancer.
    ProjectId string
    The project ID of the Topic.
    TopicId string
    The ID of the Topic.
    LoadBalancerId string
    The ID of the LoadBalancer.
    ProjectId string
    The project ID of the Topic.
    TopicId string
    The ID of the Topic.
    loadBalancerId String
    The ID of the LoadBalancer.
    projectId String
    The project ID of the Topic.
    topicId String
    The ID of the Topic.
    loadBalancerId string
    The ID of the LoadBalancer.
    projectId string
    The project ID of the Topic.
    topicId string
    The ID of the Topic.
    load_balancer_id str
    The ID of the LoadBalancer.
    project_id str
    The project ID of the Topic.
    topic_id str
    The ID of the Topic.
    loadBalancerId String
    The ID of the LoadBalancer.
    projectId String
    The project ID of the Topic.
    topicId String
    The ID of the Topic.

    Outputs

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

    Get an existing TlsAccessLog 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?: TlsAccessLogState, opts?: CustomResourceOptions): TlsAccessLog
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            load_balancer_id: Optional[str] = None,
            project_id: Optional[str] = None,
            topic_id: Optional[str] = None) -> TlsAccessLog
    func GetTlsAccessLog(ctx *Context, name string, id IDInput, state *TlsAccessLogState, opts ...ResourceOption) (*TlsAccessLog, error)
    public static TlsAccessLog Get(string name, Input<string> id, TlsAccessLogState? state, CustomResourceOptions? opts = null)
    public static TlsAccessLog get(String name, Output<String> id, TlsAccessLogState state, CustomResourceOptions options)
    resources:  _:    type: volcengine:alb:TlsAccessLog    get:      id: ${id}
    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:
    LoadBalancerId string
    The ID of the LoadBalancer.
    ProjectId string
    The project ID of the Topic.
    TopicId string
    The ID of the Topic.
    LoadBalancerId string
    The ID of the LoadBalancer.
    ProjectId string
    The project ID of the Topic.
    TopicId string
    The ID of the Topic.
    loadBalancerId String
    The ID of the LoadBalancer.
    projectId String
    The project ID of the Topic.
    topicId String
    The ID of the Topic.
    loadBalancerId string
    The ID of the LoadBalancer.
    projectId string
    The project ID of the Topic.
    topicId string
    The ID of the Topic.
    load_balancer_id str
    The ID of the LoadBalancer.
    project_id str
    The project ID of the Topic.
    topic_id str
    The ID of the Topic.
    loadBalancerId String
    The ID of the LoadBalancer.
    projectId String
    The project ID of the Topic.
    topicId String
    The ID of the Topic.

    Import

    The AlbTlsAccessLog is not support import.

    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.
    volcengine logo
    Viewing docs for Volcengine v0.0.47
    published on Friday, Mar 13, 2026 by Volcengine
      Try Pulumi Cloud free. Your team will thank you.