tencentcloud.ApmInstance
Explore with Pulumi AI
Provides a resource to create a apm instance
NOTE: To use the field
pay_mode
, you need to contact official customer service to join the whitelist.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.ApmInstance("example", {
description: "desc.",
spanDailyCounters: 0,
tags: {
createdBy: "terraform",
},
traceDuration: 15,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.ApmInstance("example",
description="desc.",
span_daily_counters=0,
tags={
"createdBy": "terraform",
},
trace_duration=15)
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.NewApmInstance(ctx, "example", &tencentcloud.ApmInstanceArgs{
Description: pulumi.String("desc."),
SpanDailyCounters: pulumi.Float64(0),
Tags: pulumi.StringMap{
"createdBy": pulumi.String("terraform"),
},
TraceDuration: pulumi.Float64(15),
})
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.ApmInstance("example", new()
{
Description = "desc.",
SpanDailyCounters = 0,
Tags =
{
{ "createdBy", "terraform" },
},
TraceDuration = 15,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ApmInstance;
import com.pulumi.tencentcloud.ApmInstanceArgs;
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 ApmInstance("example", ApmInstanceArgs.builder()
.description("desc.")
.spanDailyCounters(0)
.tags(Map.of("createdBy", "terraform"))
.traceDuration(15)
.build());
}
}
resources:
example:
type: tencentcloud:ApmInstance
properties:
description: desc.
spanDailyCounters: 0
tags:
createdBy: terraform
traceDuration: 15
Create ApmInstance Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApmInstance(name: string, args?: ApmInstanceArgs, opts?: CustomResourceOptions);
@overload
def ApmInstance(resource_name: str,
args: Optional[ApmInstanceArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ApmInstance(resource_name: str,
opts: Optional[ResourceOptions] = None,
apm_instance_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
pay_mode: Optional[float] = None,
span_daily_counters: Optional[float] = None,
tags: Optional[Mapping[str, str]] = None,
trace_duration: Optional[float] = None)
func NewApmInstance(ctx *Context, name string, args *ApmInstanceArgs, opts ...ResourceOption) (*ApmInstance, error)
public ApmInstance(string name, ApmInstanceArgs? args = null, CustomResourceOptions? opts = null)
public ApmInstance(String name, ApmInstanceArgs args)
public ApmInstance(String name, ApmInstanceArgs args, CustomResourceOptions options)
type: tencentcloud:ApmInstance
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 ApmInstanceArgs
- 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 ApmInstanceArgs
- 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 ApmInstanceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApmInstanceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApmInstanceArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ApmInstance 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 ApmInstance resource accepts the following input properties:
- Apm
Instance stringId - ID of the resource.
- Description string
- Description Of Instance.
- Name string
- Name Of Instance.
- Pay
Mode double - Modify the billing mode:
1
means prepaid,0
means pay-as-you-go, the default value is0
. - Span
Daily doubleCounters - Quota Of Instance Reporting.
- Dictionary<string, string>
- Tag description list.
- Trace
Duration double - Duration Of Trace Data.
- Apm
Instance stringId - ID of the resource.
- Description string
- Description Of Instance.
- Name string
- Name Of Instance.
- Pay
Mode float64 - Modify the billing mode:
1
means prepaid,0
means pay-as-you-go, the default value is0
. - Span
Daily float64Counters - Quota Of Instance Reporting.
- map[string]string
- Tag description list.
- Trace
Duration float64 - Duration Of Trace Data.
- apm
Instance StringId - ID of the resource.
- description String
- Description Of Instance.
- name String
- Name Of Instance.
- pay
Mode Double - Modify the billing mode:
1
means prepaid,0
means pay-as-you-go, the default value is0
. - span
Daily DoubleCounters - Quota Of Instance Reporting.
- Map<String,String>
- Tag description list.
- trace
Duration Double - Duration Of Trace Data.
- apm
Instance stringId - ID of the resource.
- description string
- Description Of Instance.
- name string
- Name Of Instance.
- pay
Mode number - Modify the billing mode:
1
means prepaid,0
means pay-as-you-go, the default value is0
. - span
Daily numberCounters - Quota Of Instance Reporting.
- {[key: string]: string}
- Tag description list.
- trace
Duration number - Duration Of Trace Data.
- apm_
instance_ strid - ID of the resource.
- description str
- Description Of Instance.
- name str
- Name Of Instance.
- pay_
mode float - Modify the billing mode:
1
means prepaid,0
means pay-as-you-go, the default value is0
. - span_
daily_ floatcounters - Quota Of Instance Reporting.
- Mapping[str, str]
- Tag description list.
- trace_
duration float - Duration Of Trace Data.
- apm
Instance StringId - ID of the resource.
- description String
- Description Of Instance.
- name String
- Name Of Instance.
- pay
Mode Number - Modify the billing mode:
1
means prepaid,0
means pay-as-you-go, the default value is0
. - span
Daily NumberCounters - Quota Of Instance Reporting.
- Map<String>
- Tag description list.
- trace
Duration Number - Duration Of Trace Data.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApmInstance 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 ApmInstance Resource
Get an existing ApmInstance 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?: ApmInstanceState, opts?: CustomResourceOptions): ApmInstance
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
apm_instance_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
pay_mode: Optional[float] = None,
span_daily_counters: Optional[float] = None,
tags: Optional[Mapping[str, str]] = None,
trace_duration: Optional[float] = None) -> ApmInstance
func GetApmInstance(ctx *Context, name string, id IDInput, state *ApmInstanceState, opts ...ResourceOption) (*ApmInstance, error)
public static ApmInstance Get(string name, Input<string> id, ApmInstanceState? state, CustomResourceOptions? opts = null)
public static ApmInstance get(String name, Output<String> id, ApmInstanceState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ApmInstance 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.
- Apm
Instance stringId - ID of the resource.
- Description string
- Description Of Instance.
- Name string
- Name Of Instance.
- Pay
Mode double - Modify the billing mode:
1
means prepaid,0
means pay-as-you-go, the default value is0
. - Span
Daily doubleCounters - Quota Of Instance Reporting.
- Dictionary<string, string>
- Tag description list.
- Trace
Duration double - Duration Of Trace Data.
- Apm
Instance stringId - ID of the resource.
- Description string
- Description Of Instance.
- Name string
- Name Of Instance.
- Pay
Mode float64 - Modify the billing mode:
1
means prepaid,0
means pay-as-you-go, the default value is0
. - Span
Daily float64Counters - Quota Of Instance Reporting.
- map[string]string
- Tag description list.
- Trace
Duration float64 - Duration Of Trace Data.
- apm
Instance StringId - ID of the resource.
- description String
- Description Of Instance.
- name String
- Name Of Instance.
- pay
Mode Double - Modify the billing mode:
1
means prepaid,0
means pay-as-you-go, the default value is0
. - span
Daily DoubleCounters - Quota Of Instance Reporting.
- Map<String,String>
- Tag description list.
- trace
Duration Double - Duration Of Trace Data.
- apm
Instance stringId - ID of the resource.
- description string
- Description Of Instance.
- name string
- Name Of Instance.
- pay
Mode number - Modify the billing mode:
1
means prepaid,0
means pay-as-you-go, the default value is0
. - span
Daily numberCounters - Quota Of Instance Reporting.
- {[key: string]: string}
- Tag description list.
- trace
Duration number - Duration Of Trace Data.
- apm_
instance_ strid - ID of the resource.
- description str
- Description Of Instance.
- name str
- Name Of Instance.
- pay_
mode float - Modify the billing mode:
1
means prepaid,0
means pay-as-you-go, the default value is0
. - span_
daily_ floatcounters - Quota Of Instance Reporting.
- Mapping[str, str]
- Tag description list.
- trace_
duration float - Duration Of Trace Data.
- apm
Instance StringId - ID of the resource.
- description String
- Description Of Instance.
- name String
- Name Of Instance.
- pay
Mode Number - Modify the billing mode:
1
means prepaid,0
means pay-as-you-go, the default value is0
. - span
Daily NumberCounters - Quota Of Instance Reporting.
- Map<String>
- Tag description list.
- trace
Duration Number - Duration Of Trace Data.
Import
apm instance can be imported using the id, e.g.
$ pulumi import tencentcloud:index/apmInstance:ApmInstance example apm-IMVrxXl1K
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.