1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. LbLtsLogV3
opentelekomcloud 1.36.38 published on Friday, May 9, 2025 by opentelekomcloud

opentelekomcloud.LbLtsLogV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.38 published on Friday, May 9, 2025 by opentelekomcloud

    Manage a LB Access Log resource within OpenTelekomCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const loadbalancerId = config.requireObject("loadbalancerId");
    const groupId = config.requireObject("groupId");
    const streamId = config.requireObject("streamId");
    const test = new opentelekomcloud.LbLtsLogV3("test", {
        loadbalancerId: loadbalancerId,
        logGroupId: groupId,
        logStreamId: streamId,
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    loadbalancer_id = config.require_object("loadbalancerId")
    group_id = config.require_object("groupId")
    stream_id = config.require_object("streamId")
    test = opentelekomcloud.LbLtsLogV3("test",
        loadbalancer_id=loadbalancer_id,
        log_group_id=group_id,
        log_stream_id=stream_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		loadbalancerId := cfg.RequireObject("loadbalancerId")
    		groupId := cfg.RequireObject("groupId")
    		streamId := cfg.RequireObject("streamId")
    		_, err := opentelekomcloud.NewLbLtsLogV3(ctx, "test", &opentelekomcloud.LbLtsLogV3Args{
    			LoadbalancerId: pulumi.Any(loadbalancerId),
    			LogGroupId:     pulumi.Any(groupId),
    			LogStreamId:    pulumi.Any(streamId),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var loadbalancerId = config.RequireObject<dynamic>("loadbalancerId");
        var groupId = config.RequireObject<dynamic>("groupId");
        var streamId = config.RequireObject<dynamic>("streamId");
        var test = new Opentelekomcloud.LbLtsLogV3("test", new()
        {
            LoadbalancerId = loadbalancerId,
            LogGroupId = groupId,
            LogStreamId = streamId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.LbLtsLogV3;
    import com.pulumi.opentelekomcloud.LbLtsLogV3Args;
    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) {
            final var config = ctx.config();
            final var loadbalancerId = config.get("loadbalancerId");
            final var groupId = config.get("groupId");
            final var streamId = config.get("streamId");
            var test = new LbLtsLogV3("test", LbLtsLogV3Args.builder()
                .loadbalancerId(loadbalancerId)
                .logGroupId(groupId)
                .logStreamId(streamId)
                .build());
    
        }
    }
    
    configuration:
      loadbalancerId:
        type: dynamic
      groupId:
        type: dynamic
      streamId:
        type: dynamic
    resources:
      test:
        type: opentelekomcloud:LbLtsLogV3
        properties:
          loadbalancerId: ${loadbalancerId}
          logGroupId: ${groupId}
          logStreamId: ${streamId}
    

    Create LbLtsLogV3 Resource

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

    Constructor syntax

    new LbLtsLogV3(name: string, args: LbLtsLogV3Args, opts?: CustomResourceOptions);
    @overload
    def LbLtsLogV3(resource_name: str,
                   args: LbLtsLogV3Args,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def LbLtsLogV3(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   loadbalancer_id: Optional[str] = None,
                   log_group_id: Optional[str] = None,
                   log_stream_id: Optional[str] = None,
                   lb_lts_log_v3_id: Optional[str] = None)
    func NewLbLtsLogV3(ctx *Context, name string, args LbLtsLogV3Args, opts ...ResourceOption) (*LbLtsLogV3, error)
    public LbLtsLogV3(string name, LbLtsLogV3Args args, CustomResourceOptions? opts = null)
    public LbLtsLogV3(String name, LbLtsLogV3Args args)
    public LbLtsLogV3(String name, LbLtsLogV3Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:LbLtsLogV3
    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 LbLtsLogV3Args
    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 LbLtsLogV3Args
    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 LbLtsLogV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LbLtsLogV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LbLtsLogV3Args
    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 lbLtsLogV3Resource = new Opentelekomcloud.LbLtsLogV3("lbLtsLogV3Resource", new()
    {
        LoadbalancerId = "string",
        LogGroupId = "string",
        LogStreamId = "string",
        LbLtsLogV3Id = "string",
    });
    
    example, err := opentelekomcloud.NewLbLtsLogV3(ctx, "lbLtsLogV3Resource", &opentelekomcloud.LbLtsLogV3Args{
    	LoadbalancerId: pulumi.String("string"),
    	LogGroupId:     pulumi.String("string"),
    	LogStreamId:    pulumi.String("string"),
    	LbLtsLogV3Id:   pulumi.String("string"),
    })
    
    var lbLtsLogV3Resource = new LbLtsLogV3("lbLtsLogV3Resource", LbLtsLogV3Args.builder()
        .loadbalancerId("string")
        .logGroupId("string")
        .logStreamId("string")
        .lbLtsLogV3Id("string")
        .build());
    
    lb_lts_log_v3_resource = opentelekomcloud.LbLtsLogV3("lbLtsLogV3Resource",
        loadbalancer_id="string",
        log_group_id="string",
        log_stream_id="string",
        lb_lts_log_v3_id="string")
    
    const lbLtsLogV3Resource = new opentelekomcloud.LbLtsLogV3("lbLtsLogV3Resource", {
        loadbalancerId: "string",
        logGroupId: "string",
        logStreamId: "string",
        lbLtsLogV3Id: "string",
    });
    
    type: opentelekomcloud:LbLtsLogV3
    properties:
        lbLtsLogV3Id: string
        loadbalancerId: string
        logGroupId: string
        logStreamId: string
    

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

    LoadbalancerId string

    Specifies the ID of a load balancer.

    Changing this creates a new resource.

    LogGroupId string
    Specifies the ID of a log group.
    LogStreamId string
    Specifies the ID of the subscribe stream.
    LbLtsLogV3Id string
    The log ID.
    LoadbalancerId string

    Specifies the ID of a load balancer.

    Changing this creates a new resource.

    LogGroupId string
    Specifies the ID of a log group.
    LogStreamId string
    Specifies the ID of the subscribe stream.
    LbLtsLogV3Id string
    The log ID.
    loadbalancerId String

    Specifies the ID of a load balancer.

    Changing this creates a new resource.

    logGroupId String
    Specifies the ID of a log group.
    logStreamId String
    Specifies the ID of the subscribe stream.
    lbLtsLogV3Id String
    The log ID.
    loadbalancerId string

    Specifies the ID of a load balancer.

    Changing this creates a new resource.

    logGroupId string
    Specifies the ID of a log group.
    logStreamId string
    Specifies the ID of the subscribe stream.
    lbLtsLogV3Id string
    The log ID.
    loadbalancer_id str

    Specifies the ID of a load balancer.

    Changing this creates a new resource.

    log_group_id str
    Specifies the ID of a log group.
    log_stream_id str
    Specifies the ID of the subscribe stream.
    lb_lts_log_v3_id str
    The log ID.
    loadbalancerId String

    Specifies the ID of a load balancer.

    Changing this creates a new resource.

    logGroupId String
    Specifies the ID of a log group.
    logStreamId String
    Specifies the ID of the subscribe stream.
    lbLtsLogV3Id String
    The log ID.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    The region where resource created.
    Id string
    The provider-assigned unique ID for this managed resource.
    Region string
    The region where resource created.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    The region where resource created.
    id string
    The provider-assigned unique ID for this managed resource.
    region string
    The region where resource created.
    id str
    The provider-assigned unique ID for this managed resource.
    region str
    The region where resource created.
    id String
    The provider-assigned unique ID for this managed resource.
    region String
    The region where resource created.

    Look up Existing LbLtsLogV3 Resource

    Get an existing LbLtsLogV3 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?: LbLtsLogV3State, opts?: CustomResourceOptions): LbLtsLogV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            lb_lts_log_v3_id: Optional[str] = None,
            loadbalancer_id: Optional[str] = None,
            log_group_id: Optional[str] = None,
            log_stream_id: Optional[str] = None,
            region: Optional[str] = None) -> LbLtsLogV3
    func GetLbLtsLogV3(ctx *Context, name string, id IDInput, state *LbLtsLogV3State, opts ...ResourceOption) (*LbLtsLogV3, error)
    public static LbLtsLogV3 Get(string name, Input<string> id, LbLtsLogV3State? state, CustomResourceOptions? opts = null)
    public static LbLtsLogV3 get(String name, Output<String> id, LbLtsLogV3State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:LbLtsLogV3    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:
    LbLtsLogV3Id string
    The log ID.
    LoadbalancerId string

    Specifies the ID of a load balancer.

    Changing this creates a new resource.

    LogGroupId string
    Specifies the ID of a log group.
    LogStreamId string
    Specifies the ID of the subscribe stream.
    Region string
    The region where resource created.
    LbLtsLogV3Id string
    The log ID.
    LoadbalancerId string

    Specifies the ID of a load balancer.

    Changing this creates a new resource.

    LogGroupId string
    Specifies the ID of a log group.
    LogStreamId string
    Specifies the ID of the subscribe stream.
    Region string
    The region where resource created.
    lbLtsLogV3Id String
    The log ID.
    loadbalancerId String

    Specifies the ID of a load balancer.

    Changing this creates a new resource.

    logGroupId String
    Specifies the ID of a log group.
    logStreamId String
    Specifies the ID of the subscribe stream.
    region String
    The region where resource created.
    lbLtsLogV3Id string
    The log ID.
    loadbalancerId string

    Specifies the ID of a load balancer.

    Changing this creates a new resource.

    logGroupId string
    Specifies the ID of a log group.
    logStreamId string
    Specifies the ID of the subscribe stream.
    region string
    The region where resource created.
    lb_lts_log_v3_id str
    The log ID.
    loadbalancer_id str

    Specifies the ID of a load balancer.

    Changing this creates a new resource.

    log_group_id str
    Specifies the ID of a log group.
    log_stream_id str
    Specifies the ID of the subscribe stream.
    region str
    The region where resource created.
    lbLtsLogV3Id String
    The log ID.
    loadbalancerId String

    Specifies the ID of a load balancer.

    Changing this creates a new resource.

    logGroupId String
    Specifies the ID of a log group.
    logStreamId String
    Specifies the ID of the subscribe stream.
    region String
    The region where resource created.

    Import

    ELB Access Log resource can be imported using the id, e.g.

    bash

    $ pulumi import opentelekomcloud:index/lbLtsLogV3:LbLtsLogV3 log 7b80e108-1636-44e5-aece-986b0052b7dd
    

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

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.38 published on Friday, May 9, 2025 by opentelekomcloud