1. Packages
  2. Flexibleengine Provider
  3. API Docs
  4. ElbLogtank
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

flexibleengine.ElbLogtank

Explore with Pulumi AI

flexibleengine logo
flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud

    Manage an LB logtank resource within FlexibleEngine.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as flexibleengine from "@pulumi/flexibleengine";
    
    const config = new pulumi.Config();
    const loadbalancerId = config.requireObject("loadbalancerId");
    const groupId = config.requireObject("groupId");
    const topicId = config.requireObject("topicId");
    const test = new flexibleengine.ElbLogtank("test", {
        loadbalancerId: loadbalancerId,
        logGroupId: groupId,
        logTopicId: topicId,
    });
    
    import pulumi
    import pulumi_flexibleengine as flexibleengine
    
    config = pulumi.Config()
    loadbalancer_id = config.require_object("loadbalancerId")
    group_id = config.require_object("groupId")
    topic_id = config.require_object("topicId")
    test = flexibleengine.ElbLogtank("test",
        loadbalancer_id=loadbalancer_id,
        log_group_id=group_id,
        log_topic_id=topic_id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
    	"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")
    		topicId := cfg.RequireObject("topicId")
    		_, err := flexibleengine.NewElbLogtank(ctx, "test", &flexibleengine.ElbLogtankArgs{
    			LoadbalancerId: pulumi.Any(loadbalancerId),
    			LogGroupId:     pulumi.Any(groupId),
    			LogTopicId:     pulumi.Any(topicId),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Flexibleengine = Pulumi.Flexibleengine;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var loadbalancerId = config.RequireObject<dynamic>("loadbalancerId");
        var groupId = config.RequireObject<dynamic>("groupId");
        var topicId = config.RequireObject<dynamic>("topicId");
        var test = new Flexibleengine.ElbLogtank("test", new()
        {
            LoadbalancerId = loadbalancerId,
            LogGroupId = groupId,
            LogTopicId = topicId,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.flexibleengine.ElbLogtank;
    import com.pulumi.flexibleengine.ElbLogtankArgs;
    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 topicId = config.get("topicId");
            var test = new ElbLogtank("test", ElbLogtankArgs.builder()
                .loadbalancerId(loadbalancerId)
                .logGroupId(groupId)
                .logTopicId(topicId)
                .build());
    
        }
    }
    
    configuration:
      loadbalancerId:
        type: dynamic
      groupId:
        type: dynamic
      topicId:
        type: dynamic
    resources:
      test:
        type: flexibleengine:ElbLogtank
        properties:
          loadbalancerId: ${loadbalancerId}
          logGroupId: ${groupId}
          logTopicId: ${topicId}
    

    Create ElbLogtank Resource

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

    Constructor syntax

    new ElbLogtank(name: string, args: ElbLogtankArgs, opts?: CustomResourceOptions);
    @overload
    def ElbLogtank(resource_name: str,
                   args: ElbLogtankArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def ElbLogtank(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   loadbalancer_id: Optional[str] = None,
                   log_group_id: Optional[str] = None,
                   log_topic_id: Optional[str] = None,
                   elb_logtank_id: Optional[str] = None,
                   region: Optional[str] = None)
    func NewElbLogtank(ctx *Context, name string, args ElbLogtankArgs, opts ...ResourceOption) (*ElbLogtank, error)
    public ElbLogtank(string name, ElbLogtankArgs args, CustomResourceOptions? opts = null)
    public ElbLogtank(String name, ElbLogtankArgs args)
    public ElbLogtank(String name, ElbLogtankArgs args, CustomResourceOptions options)
    
    type: flexibleengine:ElbLogtank
    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 ElbLogtankArgs
    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 ElbLogtankArgs
    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 ElbLogtankArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ElbLogtankArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ElbLogtankArgs
    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 elbLogtankResource = new Flexibleengine.ElbLogtank("elbLogtankResource", new()
    {
        LoadbalancerId = "string",
        LogGroupId = "string",
        LogTopicId = "string",
        ElbLogtankId = "string",
        Region = "string",
    });
    
    example, err := flexibleengine.NewElbLogtank(ctx, "elbLogtankResource", &flexibleengine.ElbLogtankArgs{
    	LoadbalancerId: pulumi.String("string"),
    	LogGroupId:     pulumi.String("string"),
    	LogTopicId:     pulumi.String("string"),
    	ElbLogtankId:   pulumi.String("string"),
    	Region:         pulumi.String("string"),
    })
    
    var elbLogtankResource = new ElbLogtank("elbLogtankResource", ElbLogtankArgs.builder()
        .loadbalancerId("string")
        .logGroupId("string")
        .logTopicId("string")
        .elbLogtankId("string")
        .region("string")
        .build());
    
    elb_logtank_resource = flexibleengine.ElbLogtank("elbLogtankResource",
        loadbalancer_id="string",
        log_group_id="string",
        log_topic_id="string",
        elb_logtank_id="string",
        region="string")
    
    const elbLogtankResource = new flexibleengine.ElbLogtank("elbLogtankResource", {
        loadbalancerId: "string",
        logGroupId: "string",
        logTopicId: "string",
        elbLogtankId: "string",
        region: "string",
    });
    
    type: flexibleengine:ElbLogtank
    properties:
        elbLogtankId: string
        loadbalancerId: string
        logGroupId: string
        logTopicId: string
        region: string
    

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

    LoadbalancerId string
    Specifies the ID of a loadbalancer. Changing this creates a new logtank.
    LogGroupId string
    Specifies the ID of a log group. It is provided by other service.
    LogTopicId string
    Specifies the ID of the subscribe topic.
    ElbLogtankId string
    The logtank ID.
    Region string
    The region in which to create the logtank resource. If omitted, the provider-level region will be used. Changing this creates a new logtank.
    LoadbalancerId string
    Specifies the ID of a loadbalancer. Changing this creates a new logtank.
    LogGroupId string
    Specifies the ID of a log group. It is provided by other service.
    LogTopicId string
    Specifies the ID of the subscribe topic.
    ElbLogtankId string
    The logtank ID.
    Region string
    The region in which to create the logtank resource. If omitted, the provider-level region will be used. Changing this creates a new logtank.
    loadbalancerId String
    Specifies the ID of a loadbalancer. Changing this creates a new logtank.
    logGroupId String
    Specifies the ID of a log group. It is provided by other service.
    logTopicId String
    Specifies the ID of the subscribe topic.
    elbLogtankId String
    The logtank ID.
    region String
    The region in which to create the logtank resource. If omitted, the provider-level region will be used. Changing this creates a new logtank.
    loadbalancerId string
    Specifies the ID of a loadbalancer. Changing this creates a new logtank.
    logGroupId string
    Specifies the ID of a log group. It is provided by other service.
    logTopicId string
    Specifies the ID of the subscribe topic.
    elbLogtankId string
    The logtank ID.
    region string
    The region in which to create the logtank resource. If omitted, the provider-level region will be used. Changing this creates a new logtank.
    loadbalancer_id str
    Specifies the ID of a loadbalancer. Changing this creates a new logtank.
    log_group_id str
    Specifies the ID of a log group. It is provided by other service.
    log_topic_id str
    Specifies the ID of the subscribe topic.
    elb_logtank_id str
    The logtank ID.
    region str
    The region in which to create the logtank resource. If omitted, the provider-level region will be used. Changing this creates a new logtank.
    loadbalancerId String
    Specifies the ID of a loadbalancer. Changing this creates a new logtank.
    logGroupId String
    Specifies the ID of a log group. It is provided by other service.
    logTopicId String
    Specifies the ID of the subscribe topic.
    elbLogtankId String
    The logtank ID.
    region String
    The region in which to create the logtank resource. If omitted, the provider-level region will be used. Changing this creates a new logtank.

    Outputs

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

    Get an existing ElbLogtank 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?: ElbLogtankState, opts?: CustomResourceOptions): ElbLogtank
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            elb_logtank_id: Optional[str] = None,
            loadbalancer_id: Optional[str] = None,
            log_group_id: Optional[str] = None,
            log_topic_id: Optional[str] = None,
            region: Optional[str] = None) -> ElbLogtank
    func GetElbLogtank(ctx *Context, name string, id IDInput, state *ElbLogtankState, opts ...ResourceOption) (*ElbLogtank, error)
    public static ElbLogtank Get(string name, Input<string> id, ElbLogtankState? state, CustomResourceOptions? opts = null)
    public static ElbLogtank get(String name, Output<String> id, ElbLogtankState state, CustomResourceOptions options)
    resources:  _:    type: flexibleengine:ElbLogtank    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:
    ElbLogtankId string
    The logtank ID.
    LoadbalancerId string
    Specifies the ID of a loadbalancer. Changing this creates a new logtank.
    LogGroupId string
    Specifies the ID of a log group. It is provided by other service.
    LogTopicId string
    Specifies the ID of the subscribe topic.
    Region string
    The region in which to create the logtank resource. If omitted, the provider-level region will be used. Changing this creates a new logtank.
    ElbLogtankId string
    The logtank ID.
    LoadbalancerId string
    Specifies the ID of a loadbalancer. Changing this creates a new logtank.
    LogGroupId string
    Specifies the ID of a log group. It is provided by other service.
    LogTopicId string
    Specifies the ID of the subscribe topic.
    Region string
    The region in which to create the logtank resource. If omitted, the provider-level region will be used. Changing this creates a new logtank.
    elbLogtankId String
    The logtank ID.
    loadbalancerId String
    Specifies the ID of a loadbalancer. Changing this creates a new logtank.
    logGroupId String
    Specifies the ID of a log group. It is provided by other service.
    logTopicId String
    Specifies the ID of the subscribe topic.
    region String
    The region in which to create the logtank resource. If omitted, the provider-level region will be used. Changing this creates a new logtank.
    elbLogtankId string
    The logtank ID.
    loadbalancerId string
    Specifies the ID of a loadbalancer. Changing this creates a new logtank.
    logGroupId string
    Specifies the ID of a log group. It is provided by other service.
    logTopicId string
    Specifies the ID of the subscribe topic.
    region string
    The region in which to create the logtank resource. If omitted, the provider-level region will be used. Changing this creates a new logtank.
    elb_logtank_id str
    The logtank ID.
    loadbalancer_id str
    Specifies the ID of a loadbalancer. Changing this creates a new logtank.
    log_group_id str
    Specifies the ID of a log group. It is provided by other service.
    log_topic_id str
    Specifies the ID of the subscribe topic.
    region str
    The region in which to create the logtank resource. If omitted, the provider-level region will be used. Changing this creates a new logtank.
    elbLogtankId String
    The logtank ID.
    loadbalancerId String
    Specifies the ID of a loadbalancer. Changing this creates a new logtank.
    logGroupId String
    Specifies the ID of a log group. It is provided by other service.
    logTopicId String
    Specifies the ID of the subscribe topic.
    region String
    The region in which to create the logtank resource. If omitted, the provider-level region will be used. Changing this creates a new logtank.

    Import

    LB logtank can be imported using the logtank ID, e.g.

    bash

    $ pulumi import flexibleengine:index/elbLogtank:ElbLogtank test 2f148a75-acd3-4ce7-8f63-d5c9fadab3a0
    

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

    Package Details

    Repository
    flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
    License
    Notes
    This Pulumi package is based on the flexibleengine Terraform Provider.
    flexibleengine logo
    flexibleengine 1.46.0 published on Monday, Apr 14, 2025 by flexibleenginecloud