flexibleengine.ElbLogtank
Explore with Pulumi AI
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:
- Loadbalancer
Id string - Specifies the ID of a loadbalancer. Changing this creates a new logtank.
- Log
Group stringId - Specifies the ID of a log group. It is provided by other service.
- Log
Topic stringId - Specifies the ID of the subscribe topic.
- Elb
Logtank stringId - 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 string - Specifies the ID of a loadbalancer. Changing this creates a new logtank.
- Log
Group stringId - Specifies the ID of a log group. It is provided by other service.
- Log
Topic stringId - Specifies the ID of the subscribe topic.
- Elb
Logtank stringId - 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 String - Specifies the ID of a loadbalancer. Changing this creates a new logtank.
- log
Group StringId - Specifies the ID of a log group. It is provided by other service.
- log
Topic StringId - Specifies the ID of the subscribe topic.
- elb
Logtank StringId - 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 string - Specifies the ID of a loadbalancer. Changing this creates a new logtank.
- log
Group stringId - Specifies the ID of a log group. It is provided by other service.
- log
Topic stringId - Specifies the ID of the subscribe topic.
- elb
Logtank stringId - 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_ strid - Specifies the ID of a log group. It is provided by other service.
- log_
topic_ strid - Specifies the ID of the subscribe topic.
- elb_
logtank_ strid - 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.
- loadbalancer
Id String - Specifies the ID of a loadbalancer. Changing this creates a new logtank.
- log
Group StringId - Specifies the ID of a log group. It is provided by other service.
- log
Topic StringId - Specifies the ID of the subscribe topic.
- elb
Logtank StringId - 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.
- Elb
Logtank stringId - The logtank ID.
- Loadbalancer
Id string - Specifies the ID of a loadbalancer. Changing this creates a new logtank.
- Log
Group stringId - Specifies the ID of a log group. It is provided by other service.
- Log
Topic stringId - 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 stringId - The logtank ID.
- Loadbalancer
Id string - Specifies the ID of a loadbalancer. Changing this creates a new logtank.
- Log
Group stringId - Specifies the ID of a log group. It is provided by other service.
- Log
Topic stringId - 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 StringId - The logtank ID.
- loadbalancer
Id String - Specifies the ID of a loadbalancer. Changing this creates a new logtank.
- log
Group StringId - Specifies the ID of a log group. It is provided by other service.
- log
Topic StringId - 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 stringId - The logtank ID.
- loadbalancer
Id string - Specifies the ID of a loadbalancer. Changing this creates a new logtank.
- log
Group stringId - Specifies the ID of a log group. It is provided by other service.
- log
Topic stringId - 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_ strid - The logtank ID.
- loadbalancer_
id str - Specifies the ID of a loadbalancer. Changing this creates a new logtank.
- log_
group_ strid - Specifies the ID of a log group. It is provided by other service.
- log_
topic_ strid - 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.
- elb
Logtank StringId - The logtank ID.
- loadbalancer
Id String - Specifies the ID of a loadbalancer. Changing this creates a new logtank.
- log
Group StringId - Specifies the ID of a log group. It is provided by other service.
- log
Topic StringId - 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.