tencentcloud.MysqlClsLogAttachment
Explore with Pulumi AI
Provides a resource to create a mysql log to cls
NOTE: The CLS resource bound to resource
tencentcloud.MysqlClsLogAttachment
needs to be manually deleted.
Example Usage
Create Error Log to ClS
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
// create vpc
const vpc = new tencentcloud.Vpc("vpc", {cidrBlock: "10.0.0.0/16"});
// create subnet
const subnet = new tencentcloud.Subnet("subnet", {
availabilityZone: "ap-guangzhou-6",
vpcId: vpc.vpcId,
cidrBlock: "10.0.0.0/16",
isMulticast: false,
});
// create security group
const securityGroup = new tencentcloud.SecurityGroup("securityGroup", {description: "mysql test"});
// create mysql instance
const exampleMysqlInstance = new tencentcloud.MysqlInstance("exampleMysqlInstance", {
internetService: 1,
engineVersion: "5.7",
chargeType: "POSTPAID",
rootPassword: "PassWord123",
slaveDeployMode: 0,
availabilityZone: "ap-guangzhou-6",
slaveSyncMode: 1,
instanceName: "tf-example-mysql",
memSize: 4000,
volumeSize: 200,
vpcId: vpc.vpcId,
subnetId: subnet.subnetId,
intranetPort: 3306,
securityGroups: [securityGroup.securityGroupId],
tags: {
name: "test",
},
parameters: {
character_set_server: "utf8",
max_connections: "1000",
},
});
// attachment cls log
const exampleMysqlClsLogAttachment = new tencentcloud.MysqlClsLogAttachment("exampleMysqlClsLogAttachment", {
instanceId: exampleMysqlInstance.mysqlInstanceId,
logType: "error",
createLogSet: true,
createLogTopic: true,
logSet: "tf_log_set",
logTopic: "tf_log_topic",
period: 30,
createIndex: true,
clsRegion: "ap-guangzhou",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
# create vpc
vpc = tencentcloud.Vpc("vpc", cidr_block="10.0.0.0/16")
# create subnet
subnet = tencentcloud.Subnet("subnet",
availability_zone="ap-guangzhou-6",
vpc_id=vpc.vpc_id,
cidr_block="10.0.0.0/16",
is_multicast=False)
# create security group
security_group = tencentcloud.SecurityGroup("securityGroup", description="mysql test")
# create mysql instance
example_mysql_instance = tencentcloud.MysqlInstance("exampleMysqlInstance",
internet_service=1,
engine_version="5.7",
charge_type="POSTPAID",
root_password="PassWord123",
slave_deploy_mode=0,
availability_zone="ap-guangzhou-6",
slave_sync_mode=1,
instance_name="tf-example-mysql",
mem_size=4000,
volume_size=200,
vpc_id=vpc.vpc_id,
subnet_id=subnet.subnet_id,
intranet_port=3306,
security_groups=[security_group.security_group_id],
tags={
"name": "test",
},
parameters={
"character_set_server": "utf8",
"max_connections": "1000",
})
# attachment cls log
example_mysql_cls_log_attachment = tencentcloud.MysqlClsLogAttachment("exampleMysqlClsLogAttachment",
instance_id=example_mysql_instance.mysql_instance_id,
log_type="error",
create_log_set=True,
create_log_topic=True,
log_set="tf_log_set",
log_topic="tf_log_topic",
period=30,
create_index=True,
cls_region="ap-guangzhou")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// create vpc
vpc, err := tencentcloud.NewVpc(ctx, "vpc", &tencentcloud.VpcArgs{
CidrBlock: pulumi.String("10.0.0.0/16"),
})
if err != nil {
return err
}
// create subnet
subnet, err := tencentcloud.NewSubnet(ctx, "subnet", &tencentcloud.SubnetArgs{
AvailabilityZone: pulumi.String("ap-guangzhou-6"),
VpcId: vpc.VpcId,
CidrBlock: pulumi.String("10.0.0.0/16"),
IsMulticast: pulumi.Bool(false),
})
if err != nil {
return err
}
// create security group
securityGroup, err := tencentcloud.NewSecurityGroup(ctx, "securityGroup", &tencentcloud.SecurityGroupArgs{
Description: pulumi.String("mysql test"),
})
if err != nil {
return err
}
// create mysql instance
exampleMysqlInstance, err := tencentcloud.NewMysqlInstance(ctx, "exampleMysqlInstance", &tencentcloud.MysqlInstanceArgs{
InternetService: pulumi.Float64(1),
EngineVersion: pulumi.String("5.7"),
ChargeType: pulumi.String("POSTPAID"),
RootPassword: pulumi.String("PassWord123"),
SlaveDeployMode: pulumi.Float64(0),
AvailabilityZone: pulumi.String("ap-guangzhou-6"),
SlaveSyncMode: pulumi.Float64(1),
InstanceName: pulumi.String("tf-example-mysql"),
MemSize: pulumi.Float64(4000),
VolumeSize: pulumi.Float64(200),
VpcId: vpc.VpcId,
SubnetId: subnet.SubnetId,
IntranetPort: pulumi.Float64(3306),
SecurityGroups: pulumi.StringArray{
securityGroup.SecurityGroupId,
},
Tags: pulumi.StringMap{
"name": pulumi.String("test"),
},
Parameters: pulumi.StringMap{
"character_set_server": pulumi.String("utf8"),
"max_connections": pulumi.String("1000"),
},
})
if err != nil {
return err
}
// attachment cls log
_, err = tencentcloud.NewMysqlClsLogAttachment(ctx, "exampleMysqlClsLogAttachment", &tencentcloud.MysqlClsLogAttachmentArgs{
InstanceId: exampleMysqlInstance.MysqlInstanceId,
LogType: pulumi.String("error"),
CreateLogSet: pulumi.Bool(true),
CreateLogTopic: pulumi.Bool(true),
LogSet: pulumi.String("tf_log_set"),
LogTopic: pulumi.String("tf_log_topic"),
Period: pulumi.Float64(30),
CreateIndex: pulumi.Bool(true),
ClsRegion: pulumi.String("ap-guangzhou"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
// create vpc
var vpc = new Tencentcloud.Vpc("vpc", new()
{
CidrBlock = "10.0.0.0/16",
});
// create subnet
var subnet = new Tencentcloud.Subnet("subnet", new()
{
AvailabilityZone = "ap-guangzhou-6",
VpcId = vpc.VpcId,
CidrBlock = "10.0.0.0/16",
IsMulticast = false,
});
// create security group
var securityGroup = new Tencentcloud.SecurityGroup("securityGroup", new()
{
Description = "mysql test",
});
// create mysql instance
var exampleMysqlInstance = new Tencentcloud.MysqlInstance("exampleMysqlInstance", new()
{
InternetService = 1,
EngineVersion = "5.7",
ChargeType = "POSTPAID",
RootPassword = "PassWord123",
SlaveDeployMode = 0,
AvailabilityZone = "ap-guangzhou-6",
SlaveSyncMode = 1,
InstanceName = "tf-example-mysql",
MemSize = 4000,
VolumeSize = 200,
VpcId = vpc.VpcId,
SubnetId = subnet.SubnetId,
IntranetPort = 3306,
SecurityGroups = new[]
{
securityGroup.SecurityGroupId,
},
Tags =
{
{ "name", "test" },
},
Parameters =
{
{ "character_set_server", "utf8" },
{ "max_connections", "1000" },
},
});
// attachment cls log
var exampleMysqlClsLogAttachment = new Tencentcloud.MysqlClsLogAttachment("exampleMysqlClsLogAttachment", new()
{
InstanceId = exampleMysqlInstance.MysqlInstanceId,
LogType = "error",
CreateLogSet = true,
CreateLogTopic = true,
LogSet = "tf_log_set",
LogTopic = "tf_log_topic",
Period = 30,
CreateIndex = true,
ClsRegion = "ap-guangzhou",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.Vpc;
import com.pulumi.tencentcloud.VpcArgs;
import com.pulumi.tencentcloud.Subnet;
import com.pulumi.tencentcloud.SubnetArgs;
import com.pulumi.tencentcloud.SecurityGroup;
import com.pulumi.tencentcloud.SecurityGroupArgs;
import com.pulumi.tencentcloud.MysqlInstance;
import com.pulumi.tencentcloud.MysqlInstanceArgs;
import com.pulumi.tencentcloud.MysqlClsLogAttachment;
import com.pulumi.tencentcloud.MysqlClsLogAttachmentArgs;
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) {
// create vpc
var vpc = new Vpc("vpc", VpcArgs.builder()
.cidrBlock("10.0.0.0/16")
.build());
// create subnet
var subnet = new Subnet("subnet", SubnetArgs.builder()
.availabilityZone("ap-guangzhou-6")
.vpcId(vpc.vpcId())
.cidrBlock("10.0.0.0/16")
.isMulticast(false)
.build());
// create security group
var securityGroup = new SecurityGroup("securityGroup", SecurityGroupArgs.builder()
.description("mysql test")
.build());
// create mysql instance
var exampleMysqlInstance = new MysqlInstance("exampleMysqlInstance", MysqlInstanceArgs.builder()
.internetService(1)
.engineVersion("5.7")
.chargeType("POSTPAID")
.rootPassword("PassWord123")
.slaveDeployMode(0)
.availabilityZone("ap-guangzhou-6")
.slaveSyncMode(1)
.instanceName("tf-example-mysql")
.memSize(4000)
.volumeSize(200)
.vpcId(vpc.vpcId())
.subnetId(subnet.subnetId())
.intranetPort(3306)
.securityGroups(securityGroup.securityGroupId())
.tags(Map.of("name", "test"))
.parameters(Map.ofEntries(
Map.entry("character_set_server", "utf8"),
Map.entry("max_connections", "1000")
))
.build());
// attachment cls log
var exampleMysqlClsLogAttachment = new MysqlClsLogAttachment("exampleMysqlClsLogAttachment", MysqlClsLogAttachmentArgs.builder()
.instanceId(exampleMysqlInstance.mysqlInstanceId())
.logType("error")
.createLogSet(true)
.createLogTopic(true)
.logSet("tf_log_set")
.logTopic("tf_log_topic")
.period(30)
.createIndex(true)
.clsRegion("ap-guangzhou")
.build());
}
}
resources:
# create vpc
vpc:
type: tencentcloud:Vpc
properties:
cidrBlock: 10.0.0.0/16
# create subnet
subnet:
type: tencentcloud:Subnet
properties:
availabilityZone: ap-guangzhou-6
vpcId: ${vpc.vpcId}
cidrBlock: 10.0.0.0/16
isMulticast: false
# create security group
securityGroup:
type: tencentcloud:SecurityGroup
properties:
description: mysql test
# create mysql instance
exampleMysqlInstance:
type: tencentcloud:MysqlInstance
properties:
internetService: 1
engineVersion: '5.7'
chargeType: POSTPAID
rootPassword: PassWord123
slaveDeployMode: 0
availabilityZone: ap-guangzhou-6
slaveSyncMode: 1
instanceName: tf-example-mysql
memSize: 4000
volumeSize: 200
vpcId: ${vpc.vpcId}
subnetId: ${subnet.subnetId}
intranetPort: 3306
securityGroups:
- ${securityGroup.securityGroupId}
tags:
name: test
parameters:
character_set_server: utf8
max_connections: '1000'
# attachment cls log
exampleMysqlClsLogAttachment:
type: tencentcloud:MysqlClsLogAttachment
properties:
instanceId: ${exampleMysqlInstance.mysqlInstanceId}
logType: error
createLogSet: true
createLogTopic: true
logSet: tf_log_set
logTopic: tf_log_topic
period: 30
createIndex: true
clsRegion: ap-guangzhou
Create Slow Log to ClS
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.MysqlClsLogAttachment("example", {
instanceId: tencentcloud_mysql_instance.example.id,
logType: "slowlog",
logSet: "50d499a8-c4c0-4442-aa04-e8aa8a02437d",
logTopic: "140d4d39-4307-45a8-9655-290f679b063d",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.MysqlClsLogAttachment("example",
instance_id=tencentcloud_mysql_instance["example"]["id"],
log_type="slowlog",
log_set="50d499a8-c4c0-4442-aa04-e8aa8a02437d",
log_topic="140d4d39-4307-45a8-9655-290f679b063d")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewMysqlClsLogAttachment(ctx, "example", &tencentcloud.MysqlClsLogAttachmentArgs{
InstanceId: pulumi.Any(tencentcloud_mysql_instance.Example.Id),
LogType: pulumi.String("slowlog"),
LogSet: pulumi.String("50d499a8-c4c0-4442-aa04-e8aa8a02437d"),
LogTopic: pulumi.String("140d4d39-4307-45a8-9655-290f679b063d"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.MysqlClsLogAttachment("example", new()
{
InstanceId = tencentcloud_mysql_instance.Example.Id,
LogType = "slowlog",
LogSet = "50d499a8-c4c0-4442-aa04-e8aa8a02437d",
LogTopic = "140d4d39-4307-45a8-9655-290f679b063d",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.MysqlClsLogAttachment;
import com.pulumi.tencentcloud.MysqlClsLogAttachmentArgs;
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 MysqlClsLogAttachment("example", MysqlClsLogAttachmentArgs.builder()
.instanceId(tencentcloud_mysql_instance.example().id())
.logType("slowlog")
.logSet("50d499a8-c4c0-4442-aa04-e8aa8a02437d")
.logTopic("140d4d39-4307-45a8-9655-290f679b063d")
.build());
}
}
resources:
example:
type: tencentcloud:MysqlClsLogAttachment
properties:
instanceId: ${tencentcloud_mysql_instance.example.id}
logType: slowlog
logSet: 50d499a8-c4c0-4442-aa04-e8aa8a02437d
logTopic: 140d4d39-4307-45a8-9655-290f679b063d
Create MysqlClsLogAttachment Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MysqlClsLogAttachment(name: string, args: MysqlClsLogAttachmentArgs, opts?: CustomResourceOptions);
@overload
def MysqlClsLogAttachment(resource_name: str,
args: MysqlClsLogAttachmentArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MysqlClsLogAttachment(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
log_set: Optional[str] = None,
log_topic: Optional[str] = None,
log_type: Optional[str] = None,
cls_region: Optional[str] = None,
create_index: Optional[bool] = None,
create_log_set: Optional[bool] = None,
create_log_topic: Optional[bool] = None,
mysql_cls_log_attachment_id: Optional[str] = None,
period: Optional[float] = None)
func NewMysqlClsLogAttachment(ctx *Context, name string, args MysqlClsLogAttachmentArgs, opts ...ResourceOption) (*MysqlClsLogAttachment, error)
public MysqlClsLogAttachment(string name, MysqlClsLogAttachmentArgs args, CustomResourceOptions? opts = null)
public MysqlClsLogAttachment(String name, MysqlClsLogAttachmentArgs args)
public MysqlClsLogAttachment(String name, MysqlClsLogAttachmentArgs args, CustomResourceOptions options)
type: tencentcloud:MysqlClsLogAttachment
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 MysqlClsLogAttachmentArgs
- 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 MysqlClsLogAttachmentArgs
- 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 MysqlClsLogAttachmentArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MysqlClsLogAttachmentArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MysqlClsLogAttachmentArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
MysqlClsLogAttachment 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 MysqlClsLogAttachment resource accepts the following input properties:
- Instance
Id string - The id of instance.
- Log
Set string - If
create_log_set
istrue
, use log set name, Else use log set Id. - Log
Topic string - If
create_log_topic
istrue
, use log topic name, Else use log topic Id. - Log
Type string - Log type. Support
error
orslowlog
. - Cls
Region string - Cls region.
- Create
Index bool - Whether to create index.
- Create
Log boolSet - Whether to create log set.
- Create
Log boolTopic - Whether to create log topic.
- Mysql
Cls stringLog Attachment Id - ID of the resource.
- Period double
- The validity period of the log theme is 30 days by default when not filled in.
- Instance
Id string - The id of instance.
- Log
Set string - If
create_log_set
istrue
, use log set name, Else use log set Id. - Log
Topic string - If
create_log_topic
istrue
, use log topic name, Else use log topic Id. - Log
Type string - Log type. Support
error
orslowlog
. - Cls
Region string - Cls region.
- Create
Index bool - Whether to create index.
- Create
Log boolSet - Whether to create log set.
- Create
Log boolTopic - Whether to create log topic.
- Mysql
Cls stringLog Attachment Id - ID of the resource.
- Period float64
- The validity period of the log theme is 30 days by default when not filled in.
- instance
Id String - The id of instance.
- log
Set String - If
create_log_set
istrue
, use log set name, Else use log set Id. - log
Topic String - If
create_log_topic
istrue
, use log topic name, Else use log topic Id. - log
Type String - Log type. Support
error
orslowlog
. - cls
Region String - Cls region.
- create
Index Boolean - Whether to create index.
- create
Log BooleanSet - Whether to create log set.
- create
Log BooleanTopic - Whether to create log topic.
- mysql
Cls StringLog Attachment Id - ID of the resource.
- period Double
- The validity period of the log theme is 30 days by default when not filled in.
- instance
Id string - The id of instance.
- log
Set string - If
create_log_set
istrue
, use log set name, Else use log set Id. - log
Topic string - If
create_log_topic
istrue
, use log topic name, Else use log topic Id. - log
Type string - Log type. Support
error
orslowlog
. - cls
Region string - Cls region.
- create
Index boolean - Whether to create index.
- create
Log booleanSet - Whether to create log set.
- create
Log booleanTopic - Whether to create log topic.
- mysql
Cls stringLog Attachment Id - ID of the resource.
- period number
- The validity period of the log theme is 30 days by default when not filled in.
- instance_
id str - The id of instance.
- log_
set str - If
create_log_set
istrue
, use log set name, Else use log set Id. - log_
topic str - If
create_log_topic
istrue
, use log topic name, Else use log topic Id. - log_
type str - Log type. Support
error
orslowlog
. - cls_
region str - Cls region.
- create_
index bool - Whether to create index.
- create_
log_ boolset - Whether to create log set.
- create_
log_ booltopic - Whether to create log topic.
- mysql_
cls_ strlog_ attachment_ id - ID of the resource.
- period float
- The validity period of the log theme is 30 days by default when not filled in.
- instance
Id String - The id of instance.
- log
Set String - If
create_log_set
istrue
, use log set name, Else use log set Id. - log
Topic String - If
create_log_topic
istrue
, use log topic name, Else use log topic Id. - log
Type String - Log type. Support
error
orslowlog
. - cls
Region String - Cls region.
- create
Index Boolean - Whether to create index.
- create
Log BooleanSet - Whether to create log set.
- create
Log BooleanTopic - Whether to create log topic.
- mysql
Cls StringLog Attachment Id - ID of the resource.
- period Number
- The validity period of the log theme is 30 days by default when not filled in.
Outputs
All input properties are implicitly available as output properties. Additionally, the MysqlClsLogAttachment resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Log
Set stringId - Log set Id.
- Log
Topic stringId - Log topic Id.
- Status string
- Log Status.
- Id string
- The provider-assigned unique ID for this managed resource.
- Log
Set stringId - Log set Id.
- Log
Topic stringId - Log topic Id.
- Status string
- Log Status.
- id String
- The provider-assigned unique ID for this managed resource.
- log
Set StringId - Log set Id.
- log
Topic StringId - Log topic Id.
- status String
- Log Status.
- id string
- The provider-assigned unique ID for this managed resource.
- log
Set stringId - Log set Id.
- log
Topic stringId - Log topic Id.
- status string
- Log Status.
- id str
- The provider-assigned unique ID for this managed resource.
- log_
set_ strid - Log set Id.
- log_
topic_ strid - Log topic Id.
- status str
- Log Status.
- id String
- The provider-assigned unique ID for this managed resource.
- log
Set StringId - Log set Id.
- log
Topic StringId - Log topic Id.
- status String
- Log Status.
Look up Existing MysqlClsLogAttachment Resource
Get an existing MysqlClsLogAttachment 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?: MysqlClsLogAttachmentState, opts?: CustomResourceOptions): MysqlClsLogAttachment
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cls_region: Optional[str] = None,
create_index: Optional[bool] = None,
create_log_set: Optional[bool] = None,
create_log_topic: Optional[bool] = None,
instance_id: Optional[str] = None,
log_set: Optional[str] = None,
log_set_id: Optional[str] = None,
log_topic: Optional[str] = None,
log_topic_id: Optional[str] = None,
log_type: Optional[str] = None,
mysql_cls_log_attachment_id: Optional[str] = None,
period: Optional[float] = None,
status: Optional[str] = None) -> MysqlClsLogAttachment
func GetMysqlClsLogAttachment(ctx *Context, name string, id IDInput, state *MysqlClsLogAttachmentState, opts ...ResourceOption) (*MysqlClsLogAttachment, error)
public static MysqlClsLogAttachment Get(string name, Input<string> id, MysqlClsLogAttachmentState? state, CustomResourceOptions? opts = null)
public static MysqlClsLogAttachment get(String name, Output<String> id, MysqlClsLogAttachmentState state, CustomResourceOptions options)
resources: _: type: tencentcloud:MysqlClsLogAttachment 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.
- Cls
Region string - Cls region.
- Create
Index bool - Whether to create index.
- Create
Log boolSet - Whether to create log set.
- Create
Log boolTopic - Whether to create log topic.
- Instance
Id string - The id of instance.
- Log
Set string - If
create_log_set
istrue
, use log set name, Else use log set Id. - Log
Set stringId - Log set Id.
- Log
Topic string - If
create_log_topic
istrue
, use log topic name, Else use log topic Id. - Log
Topic stringId - Log topic Id.
- Log
Type string - Log type. Support
error
orslowlog
. - Mysql
Cls stringLog Attachment Id - ID of the resource.
- Period double
- The validity period of the log theme is 30 days by default when not filled in.
- Status string
- Log Status.
- Cls
Region string - Cls region.
- Create
Index bool - Whether to create index.
- Create
Log boolSet - Whether to create log set.
- Create
Log boolTopic - Whether to create log topic.
- Instance
Id string - The id of instance.
- Log
Set string - If
create_log_set
istrue
, use log set name, Else use log set Id. - Log
Set stringId - Log set Id.
- Log
Topic string - If
create_log_topic
istrue
, use log topic name, Else use log topic Id. - Log
Topic stringId - Log topic Id.
- Log
Type string - Log type. Support
error
orslowlog
. - Mysql
Cls stringLog Attachment Id - ID of the resource.
- Period float64
- The validity period of the log theme is 30 days by default when not filled in.
- Status string
- Log Status.
- cls
Region String - Cls region.
- create
Index Boolean - Whether to create index.
- create
Log BooleanSet - Whether to create log set.
- create
Log BooleanTopic - Whether to create log topic.
- instance
Id String - The id of instance.
- log
Set String - If
create_log_set
istrue
, use log set name, Else use log set Id. - log
Set StringId - Log set Id.
- log
Topic String - If
create_log_topic
istrue
, use log topic name, Else use log topic Id. - log
Topic StringId - Log topic Id.
- log
Type String - Log type. Support
error
orslowlog
. - mysql
Cls StringLog Attachment Id - ID of the resource.
- period Double
- The validity period of the log theme is 30 days by default when not filled in.
- status String
- Log Status.
- cls
Region string - Cls region.
- create
Index boolean - Whether to create index.
- create
Log booleanSet - Whether to create log set.
- create
Log booleanTopic - Whether to create log topic.
- instance
Id string - The id of instance.
- log
Set string - If
create_log_set
istrue
, use log set name, Else use log set Id. - log
Set stringId - Log set Id.
- log
Topic string - If
create_log_topic
istrue
, use log topic name, Else use log topic Id. - log
Topic stringId - Log topic Id.
- log
Type string - Log type. Support
error
orslowlog
. - mysql
Cls stringLog Attachment Id - ID of the resource.
- period number
- The validity period of the log theme is 30 days by default when not filled in.
- status string
- Log Status.
- cls_
region str - Cls region.
- create_
index bool - Whether to create index.
- create_
log_ boolset - Whether to create log set.
- create_
log_ booltopic - Whether to create log topic.
- instance_
id str - The id of instance.
- log_
set str - If
create_log_set
istrue
, use log set name, Else use log set Id. - log_
set_ strid - Log set Id.
- log_
topic str - If
create_log_topic
istrue
, use log topic name, Else use log topic Id. - log_
topic_ strid - Log topic Id.
- log_
type str - Log type. Support
error
orslowlog
. - mysql_
cls_ strlog_ attachment_ id - ID of the resource.
- period float
- The validity period of the log theme is 30 days by default when not filled in.
- status str
- Log Status.
- cls
Region String - Cls region.
- create
Index Boolean - Whether to create index.
- create
Log BooleanSet - Whether to create log set.
- create
Log BooleanTopic - Whether to create log topic.
- instance
Id String - The id of instance.
- log
Set String - If
create_log_set
istrue
, use log set name, Else use log set Id. - log
Set StringId - Log set Id.
- log
Topic String - If
create_log_topic
istrue
, use log topic name, Else use log topic Id. - log
Topic StringId - Log topic Id.
- log
Type String - Log type. Support
error
orslowlog
. - mysql
Cls StringLog Attachment Id - ID of the resource.
- period Number
- The validity period of the log theme is 30 days by default when not filled in.
- status String
- Log Status.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.