opentelekomcloud.LbLtsLogV3
Explore with Pulumi AI
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:
- Loadbalancer
Id string Specifies the ID of a load balancer.
Changing this creates a new resource.
- Log
Group stringId - Specifies the ID of a log group.
- Log
Stream stringId - Specifies the ID of the subscribe stream.
- Lb
Lts stringLog V3Id - The log ID.
- Loadbalancer
Id string Specifies the ID of a load balancer.
Changing this creates a new resource.
- Log
Group stringId - Specifies the ID of a log group.
- Log
Stream stringId - Specifies the ID of the subscribe stream.
- Lb
Lts stringLog V3Id - The log ID.
- loadbalancer
Id String Specifies the ID of a load balancer.
Changing this creates a new resource.
- log
Group StringId - Specifies the ID of a log group.
- log
Stream StringId - Specifies the ID of the subscribe stream.
- lb
Lts StringLog V3Id - The log ID.
- loadbalancer
Id string Specifies the ID of a load balancer.
Changing this creates a new resource.
- log
Group stringId - Specifies the ID of a log group.
- log
Stream stringId - Specifies the ID of the subscribe stream.
- lb
Lts stringLog V3Id - The log ID.
- loadbalancer_
id str Specifies the ID of a load balancer.
Changing this creates a new resource.
- log_
group_ strid - Specifies the ID of a log group.
- log_
stream_ strid - Specifies the ID of the subscribe stream.
- lb_
lts_ strlog_ v3_ id - The log ID.
- loadbalancer
Id String Specifies the ID of a load balancer.
Changing this creates a new resource.
- log
Group StringId - Specifies the ID of a log group.
- log
Stream StringId - Specifies the ID of the subscribe stream.
- lb
Lts StringLog V3Id - The log ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the LbLtsLogV3 resource produces the following output properties:
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.
- Lb
Lts stringLog V3Id - The log ID.
- Loadbalancer
Id string Specifies the ID of a load balancer.
Changing this creates a new resource.
- Log
Group stringId - Specifies the ID of a log group.
- Log
Stream stringId - Specifies the ID of the subscribe stream.
- Region string
- The region where resource created.
- Lb
Lts stringLog V3Id - The log ID.
- Loadbalancer
Id string Specifies the ID of a load balancer.
Changing this creates a new resource.
- Log
Group stringId - Specifies the ID of a log group.
- Log
Stream stringId - Specifies the ID of the subscribe stream.
- Region string
- The region where resource created.
- lb
Lts StringLog V3Id - The log ID.
- loadbalancer
Id String Specifies the ID of a load balancer.
Changing this creates a new resource.
- log
Group StringId - Specifies the ID of a log group.
- log
Stream StringId - Specifies the ID of the subscribe stream.
- region String
- The region where resource created.
- lb
Lts stringLog V3Id - The log ID.
- loadbalancer
Id string Specifies the ID of a load balancer.
Changing this creates a new resource.
- log
Group stringId - Specifies the ID of a log group.
- log
Stream stringId - Specifies the ID of the subscribe stream.
- region string
- The region where resource created.
- lb_
lts_ strlog_ v3_ id - The log ID.
- loadbalancer_
id str Specifies the ID of a load balancer.
Changing this creates a new resource.
- log_
group_ strid - Specifies the ID of a log group.
- log_
stream_ strid - Specifies the ID of the subscribe stream.
- region str
- The region where resource created.
- lb
Lts StringLog V3Id - The log ID.
- loadbalancer
Id String Specifies the ID of a load balancer.
Changing this creates a new resource.
- log
Group StringId - Specifies the ID of a log group.
- log
Stream StringId - 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.