Provides a resource to manage health check log topic
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const example = new volcengine.clb.HealthCheckLogTopic("example", {
loadBalancerId: "clb-mim12q0soe805smt1be*****",
logTopicId: "82fddbd8-4140-4527-****-b89d2aae4a61",
});
const example1 = new volcengine.clb.HealthCheckLogTopic("example1", {
loadBalancerId: "clb-13g5i2cbg6nsw3n6nu5r*****",
logTopicId: "82fddbd8-4140-4527-****-b89d2aae4a61",
});
import pulumi
import pulumi_volcengine as volcengine
example = volcengine.clb.HealthCheckLogTopic("example",
load_balancer_id="clb-mim12q0soe805smt1be*****",
log_topic_id="82fddbd8-4140-4527-****-b89d2aae4a61")
example1 = volcengine.clb.HealthCheckLogTopic("example1",
load_balancer_id="clb-13g5i2cbg6nsw3n6nu5r*****",
log_topic_id="82fddbd8-4140-4527-****-b89d2aae4a61")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/clb"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := clb.NewHealthCheckLogTopic(ctx, "example", &clb.HealthCheckLogTopicArgs{
LoadBalancerId: pulumi.String("clb-mim12q0soe805smt1be*****"),
LogTopicId: pulumi.String("82fddbd8-4140-4527-****-b89d2aae4a61"),
})
if err != nil {
return err
}
_, err = clb.NewHealthCheckLogTopic(ctx, "example1", &clb.HealthCheckLogTopicArgs{
LoadBalancerId: pulumi.String("clb-13g5i2cbg6nsw3n6nu5r*****"),
LogTopicId: pulumi.String("82fddbd8-4140-4527-****-b89d2aae4a61"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var example = new Volcengine.Clb.HealthCheckLogTopic("example", new()
{
LoadBalancerId = "clb-mim12q0soe805smt1be*****",
LogTopicId = "82fddbd8-4140-4527-****-b89d2aae4a61",
});
var example1 = new Volcengine.Clb.HealthCheckLogTopic("example1", new()
{
LoadBalancerId = "clb-13g5i2cbg6nsw3n6nu5r*****",
LogTopicId = "82fddbd8-4140-4527-****-b89d2aae4a61",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.clb.HealthCheckLogTopic;
import com.pulumi.volcengine.clb.HealthCheckLogTopicArgs;
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) {
var example = new HealthCheckLogTopic("example", HealthCheckLogTopicArgs.builder()
.loadBalancerId("clb-mim12q0soe805smt1be*****")
.logTopicId("82fddbd8-4140-4527-****-b89d2aae4a61")
.build());
var example1 = new HealthCheckLogTopic("example1", HealthCheckLogTopicArgs.builder()
.loadBalancerId("clb-13g5i2cbg6nsw3n6nu5r*****")
.logTopicId("82fddbd8-4140-4527-****-b89d2aae4a61")
.build());
}
}
resources:
example:
type: volcengine:clb:HealthCheckLogTopic
properties:
loadBalancerId: clb-mim12q0soe805smt1be*****
logTopicId: 82fddbd8-4140-4527-****-b89d2aae4a61
example1:
type: volcengine:clb:HealthCheckLogTopic
properties:
loadBalancerId: clb-13g5i2cbg6nsw3n6nu5r*****
logTopicId: 82fddbd8-4140-4527-****-b89d2aae4a61
Create HealthCheckLogTopic Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new HealthCheckLogTopic(name: string, args: HealthCheckLogTopicArgs, opts?: CustomResourceOptions);@overload
def HealthCheckLogTopic(resource_name: str,
args: HealthCheckLogTopicArgs,
opts: Optional[ResourceOptions] = None)
@overload
def HealthCheckLogTopic(resource_name: str,
opts: Optional[ResourceOptions] = None,
load_balancer_id: Optional[str] = None,
log_topic_id: Optional[str] = None)func NewHealthCheckLogTopic(ctx *Context, name string, args HealthCheckLogTopicArgs, opts ...ResourceOption) (*HealthCheckLogTopic, error)public HealthCheckLogTopic(string name, HealthCheckLogTopicArgs args, CustomResourceOptions? opts = null)
public HealthCheckLogTopic(String name, HealthCheckLogTopicArgs args)
public HealthCheckLogTopic(String name, HealthCheckLogTopicArgs args, CustomResourceOptions options)
type: volcengine:clb:HealthCheckLogTopic
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 HealthCheckLogTopicArgs
- 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 HealthCheckLogTopicArgs
- 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 HealthCheckLogTopicArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args HealthCheckLogTopicArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args HealthCheckLogTopicArgs
- 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 healthCheckLogTopicResource = new Volcengine.Clb.HealthCheckLogTopic("healthCheckLogTopicResource", new()
{
LoadBalancerId = "string",
LogTopicId = "string",
});
example, err := clb.NewHealthCheckLogTopic(ctx, "healthCheckLogTopicResource", &clb.HealthCheckLogTopicArgs{
LoadBalancerId: pulumi.String("string"),
LogTopicId: pulumi.String("string"),
})
var healthCheckLogTopicResource = new HealthCheckLogTopic("healthCheckLogTopicResource", HealthCheckLogTopicArgs.builder()
.loadBalancerId("string")
.logTopicId("string")
.build());
health_check_log_topic_resource = volcengine.clb.HealthCheckLogTopic("healthCheckLogTopicResource",
load_balancer_id="string",
log_topic_id="string")
const healthCheckLogTopicResource = new volcengine.clb.HealthCheckLogTopic("healthCheckLogTopicResource", {
loadBalancerId: "string",
logTopicId: "string",
});
type: volcengine:clb:HealthCheckLogTopic
properties:
loadBalancerId: string
logTopicId: string
HealthCheckLogTopic 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 HealthCheckLogTopic resource accepts the following input properties:
- Load
Balancer stringId - The ID of the CLB instance.
- Log
Topic stringId - The ID of the log topic.
- Load
Balancer stringId - The ID of the CLB instance.
- Log
Topic stringId - The ID of the log topic.
- load
Balancer StringId - The ID of the CLB instance.
- log
Topic StringId - The ID of the log topic.
- load
Balancer stringId - The ID of the CLB instance.
- log
Topic stringId - The ID of the log topic.
- load_
balancer_ strid - The ID of the CLB instance.
- log_
topic_ strid - The ID of the log topic.
- load
Balancer StringId - The ID of the CLB instance.
- log
Topic StringId - The ID of the log topic.
Outputs
All input properties are implicitly available as output properties. Additionally, the HealthCheckLogTopic 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 HealthCheckLogTopic Resource
Get an existing HealthCheckLogTopic 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?: HealthCheckLogTopicState, opts?: CustomResourceOptions): HealthCheckLogTopic@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
load_balancer_id: Optional[str] = None,
log_topic_id: Optional[str] = None) -> HealthCheckLogTopicfunc GetHealthCheckLogTopic(ctx *Context, name string, id IDInput, state *HealthCheckLogTopicState, opts ...ResourceOption) (*HealthCheckLogTopic, error)public static HealthCheckLogTopic Get(string name, Input<string> id, HealthCheckLogTopicState? state, CustomResourceOptions? opts = null)public static HealthCheckLogTopic get(String name, Output<String> id, HealthCheckLogTopicState state, CustomResourceOptions options)resources: _: type: volcengine:clb:HealthCheckLogTopic 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.
- Load
Balancer stringId - The ID of the CLB instance.
- Log
Topic stringId - The ID of the log topic.
- Load
Balancer stringId - The ID of the CLB instance.
- Log
Topic stringId - The ID of the log topic.
- load
Balancer StringId - The ID of the CLB instance.
- log
Topic StringId - The ID of the log topic.
- load
Balancer stringId - The ID of the CLB instance.
- log
Topic stringId - The ID of the log topic.
- load_
balancer_ strid - The ID of the CLB instance.
- log_
topic_ strid - The ID of the log topic.
- load
Balancer StringId - The ID of the CLB instance.
- log
Topic StringId - The ID of the log topic.
Import
HealthCheckLogTopic can be imported using the id, e.g.
$ pulumi import volcengine:clb/healthCheckLogTopic:HealthCheckLogTopic default log_topic_id:load_balancer_id
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
volcengineTerraform Provider.
