Provides a resource to create a Controlcenter account factory baseline config
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.ControlcenterAccountFactoryBaselineConfig("example", {
name: "default",
baselineConfigItems: [
{
identifier: "TCC-AF_VPC_SUBNET",
configuration: JSON.stringify({
VpcName: "tf-example",
CidrBlock: "10.0.0.0/16",
Region: "1",
RegionName: "ap-guangzhou",
Subnets: [{
CidrBlock: "10.0.0.0/24",
SubnetName: "abc",
Zone: "ap-guangzhou-6",
}],
}),
},
{
identifier: "TCC-AF_PRESET_TAG",
configuration: "{\"TagValuePairs\":[{\"Key\":\"key\",\"Values\":[\"value\"]}]}",
},
],
});
import pulumi
import json
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.ControlcenterAccountFactoryBaselineConfig("example",
name="default",
baseline_config_items=[
{
"identifier": "TCC-AF_VPC_SUBNET",
"configuration": json.dumps({
"VpcName": "tf-example",
"CidrBlock": "10.0.0.0/16",
"Region": "1",
"RegionName": "ap-guangzhou",
"Subnets": [{
"CidrBlock": "10.0.0.0/24",
"SubnetName": "abc",
"Zone": "ap-guangzhou-6",
}],
}),
},
{
"identifier": "TCC-AF_PRESET_TAG",
"configuration": "{\"TagValuePairs\":[{\"Key\":\"key\",\"Values\":[\"value\"]}]}",
},
])
package main
import (
"encoding/json"
"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 {
tmpJSON0, err := json.Marshal(map[string]interface{}{
"VpcName": "tf-example",
"CidrBlock": "10.0.0.0/16",
"Region": "1",
"RegionName": "ap-guangzhou",
"Subnets": []map[string]interface{}{
map[string]interface{}{
"CidrBlock": "10.0.0.0/24",
"SubnetName": "abc",
"Zone": "ap-guangzhou-6",
},
},
})
if err != nil {
return err
}
json0 := string(tmpJSON0)
_, err = tencentcloud.NewControlcenterAccountFactoryBaselineConfig(ctx, "example", &tencentcloud.ControlcenterAccountFactoryBaselineConfigArgs{
Name: pulumi.String("default"),
BaselineConfigItems: tencentcloud.ControlcenterAccountFactoryBaselineConfigBaselineConfigItemArray{
&tencentcloud.ControlcenterAccountFactoryBaselineConfigBaselineConfigItemArgs{
Identifier: pulumi.String("TCC-AF_VPC_SUBNET"),
Configuration: pulumi.String(json0),
},
&tencentcloud.ControlcenterAccountFactoryBaselineConfigBaselineConfigItemArgs{
Identifier: pulumi.String("TCC-AF_PRESET_TAG"),
Configuration: pulumi.String("{\"TagValuePairs\":[{\"Key\":\"key\",\"Values\":[\"value\"]}]}"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.ControlcenterAccountFactoryBaselineConfig("example", new()
{
Name = "default",
BaselineConfigItems = new[]
{
new Tencentcloud.Inputs.ControlcenterAccountFactoryBaselineConfigBaselineConfigItemArgs
{
Identifier = "TCC-AF_VPC_SUBNET",
Configuration = JsonSerializer.Serialize(new Dictionary<string, object?>
{
["VpcName"] = "tf-example",
["CidrBlock"] = "10.0.0.0/16",
["Region"] = "1",
["RegionName"] = "ap-guangzhou",
["Subnets"] = new[]
{
new Dictionary<string, object?>
{
["CidrBlock"] = "10.0.0.0/24",
["SubnetName"] = "abc",
["Zone"] = "ap-guangzhou-6",
},
},
}),
},
new Tencentcloud.Inputs.ControlcenterAccountFactoryBaselineConfigBaselineConfigItemArgs
{
Identifier = "TCC-AF_PRESET_TAG",
Configuration = "{\"TagValuePairs\":[{\"Key\":\"key\",\"Values\":[\"value\"]}]}",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ControlcenterAccountFactoryBaselineConfig;
import com.pulumi.tencentcloud.ControlcenterAccountFactoryBaselineConfigArgs;
import com.pulumi.tencentcloud.inputs.ControlcenterAccountFactoryBaselineConfigBaselineConfigItemArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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 ControlcenterAccountFactoryBaselineConfig("example", ControlcenterAccountFactoryBaselineConfigArgs.builder()
.name("default")
.baselineConfigItems(
ControlcenterAccountFactoryBaselineConfigBaselineConfigItemArgs.builder()
.identifier("TCC-AF_VPC_SUBNET")
.configuration(serializeJson(
jsonObject(
jsonProperty("VpcName", "tf-example"),
jsonProperty("CidrBlock", "10.0.0.0/16"),
jsonProperty("Region", "1"),
jsonProperty("RegionName", "ap-guangzhou"),
jsonProperty("Subnets", jsonArray(jsonObject(
jsonProperty("CidrBlock", "10.0.0.0/24"),
jsonProperty("SubnetName", "abc"),
jsonProperty("Zone", "ap-guangzhou-6")
)))
)))
.build(),
ControlcenterAccountFactoryBaselineConfigBaselineConfigItemArgs.builder()
.identifier("TCC-AF_PRESET_TAG")
.configuration("{\"TagValuePairs\":[{\"Key\":\"key\",\"Values\":[\"value\"]}]}")
.build())
.build());
}
}
resources:
example:
type: tencentcloud:ControlcenterAccountFactoryBaselineConfig
properties:
name: default
baselineConfigItems:
- identifier: TCC-AF_VPC_SUBNET
configuration:
fn::toJSON:
VpcName: tf-example
CidrBlock: 10.0.0.0/16
Region: '1'
RegionName: ap-guangzhou
Subnets:
- CidrBlock: 10.0.0.0/24
SubnetName: abc
Zone: ap-guangzhou-6
- identifier: TCC-AF_PRESET_TAG
configuration: '{"TagValuePairs":[{"Key":"key","Values":["value"]}]}'
Create ControlcenterAccountFactoryBaselineConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ControlcenterAccountFactoryBaselineConfig(name: string, args?: ControlcenterAccountFactoryBaselineConfigArgs, opts?: CustomResourceOptions);@overload
def ControlcenterAccountFactoryBaselineConfig(resource_name: str,
args: Optional[ControlcenterAccountFactoryBaselineConfigArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def ControlcenterAccountFactoryBaselineConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
baseline_config_items: Optional[Sequence[ControlcenterAccountFactoryBaselineConfigBaselineConfigItemArgs]] = None,
controlcenter_account_factory_baseline_config_id: Optional[str] = None,
name: Optional[str] = None)func NewControlcenterAccountFactoryBaselineConfig(ctx *Context, name string, args *ControlcenterAccountFactoryBaselineConfigArgs, opts ...ResourceOption) (*ControlcenterAccountFactoryBaselineConfig, error)public ControlcenterAccountFactoryBaselineConfig(string name, ControlcenterAccountFactoryBaselineConfigArgs? args = null, CustomResourceOptions? opts = null)
public ControlcenterAccountFactoryBaselineConfig(String name, ControlcenterAccountFactoryBaselineConfigArgs args)
public ControlcenterAccountFactoryBaselineConfig(String name, ControlcenterAccountFactoryBaselineConfigArgs args, CustomResourceOptions options)
type: tencentcloud:ControlcenterAccountFactoryBaselineConfig
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 ControlcenterAccountFactoryBaselineConfigArgs
- 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 ControlcenterAccountFactoryBaselineConfigArgs
- 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 ControlcenterAccountFactoryBaselineConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ControlcenterAccountFactoryBaselineConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ControlcenterAccountFactoryBaselineConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ControlcenterAccountFactoryBaselineConfig 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 ControlcenterAccountFactoryBaselineConfig resource accepts the following input properties:
- Baseline
Config List<ControlcenterItems Account Factory Baseline Config Baseline Config Item> - Baseline configuration, overwrite update. You can query existing baseline configurations via controlcenter:GetAccountFactoryBaseline. You can query supported baseline lists via controlcenter:ListAccountFactoryBaselineItems.
- Controlcenter
Account stringFactory Baseline Config Id - ID of the resource.
- Name string
- Baseline name, which must be unique. Supports only English letters, numbers, Chinese characters, and symbols @, &, _, [], -. Combination of 1-25 Chinese or English characters.
- Baseline
Config []ControlcenterItems Account Factory Baseline Config Baseline Config Item Args - Baseline configuration, overwrite update. You can query existing baseline configurations via controlcenter:GetAccountFactoryBaseline. You can query supported baseline lists via controlcenter:ListAccountFactoryBaselineItems.
- Controlcenter
Account stringFactory Baseline Config Id - ID of the resource.
- Name string
- Baseline name, which must be unique. Supports only English letters, numbers, Chinese characters, and symbols @, &, _, [], -. Combination of 1-25 Chinese or English characters.
- baseline
Config List<ControlcenterItems Account Factory Baseline Config Baseline Config Item> - Baseline configuration, overwrite update. You can query existing baseline configurations via controlcenter:GetAccountFactoryBaseline. You can query supported baseline lists via controlcenter:ListAccountFactoryBaselineItems.
- controlcenter
Account StringFactory Baseline Config Id - ID of the resource.
- name String
- Baseline name, which must be unique. Supports only English letters, numbers, Chinese characters, and symbols @, &, _, [], -. Combination of 1-25 Chinese or English characters.
- baseline
Config ControlcenterItems Account Factory Baseline Config Baseline Config Item[] - Baseline configuration, overwrite update. You can query existing baseline configurations via controlcenter:GetAccountFactoryBaseline. You can query supported baseline lists via controlcenter:ListAccountFactoryBaselineItems.
- controlcenter
Account stringFactory Baseline Config Id - ID of the resource.
- name string
- Baseline name, which must be unique. Supports only English letters, numbers, Chinese characters, and symbols @, &, _, [], -. Combination of 1-25 Chinese or English characters.
- baseline_
config_ Sequence[Controlcenteritems Account Factory Baseline Config Baseline Config Item Args] - Baseline configuration, overwrite update. You can query existing baseline configurations via controlcenter:GetAccountFactoryBaseline. You can query supported baseline lists via controlcenter:ListAccountFactoryBaselineItems.
- controlcenter_
account_ strfactory_ baseline_ config_ id - ID of the resource.
- name str
- Baseline name, which must be unique. Supports only English letters, numbers, Chinese characters, and symbols @, &, _, [], -. Combination of 1-25 Chinese or English characters.
- baseline
Config List<Property Map>Items - Baseline configuration, overwrite update. You can query existing baseline configurations via controlcenter:GetAccountFactoryBaseline. You can query supported baseline lists via controlcenter:ListAccountFactoryBaselineItems.
- controlcenter
Account StringFactory Baseline Config Id - ID of the resource.
- name String
- Baseline name, which must be unique. Supports only English letters, numbers, Chinese characters, and symbols @, &, _, [], -. Combination of 1-25 Chinese or English characters.
Outputs
All input properties are implicitly available as output properties. Additionally, the ControlcenterAccountFactoryBaselineConfig resource produces the following output properties:
- Create
Time string - Creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - Update time.
- Create
Time string - Creation time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Update
Time string - Update time.
- create
Time String - Creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - Update time.
- create
Time string - Creation time.
- id string
- The provider-assigned unique ID for this managed resource.
- update
Time string - Update time.
- create_
time str - Creation time.
- id str
- The provider-assigned unique ID for this managed resource.
- update_
time str - Update time.
- create
Time String - Creation time.
- id String
- The provider-assigned unique ID for this managed resource.
- update
Time String - Update time.
Look up Existing ControlcenterAccountFactoryBaselineConfig Resource
Get an existing ControlcenterAccountFactoryBaselineConfig 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?: ControlcenterAccountFactoryBaselineConfigState, opts?: CustomResourceOptions): ControlcenterAccountFactoryBaselineConfig@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
baseline_config_items: Optional[Sequence[ControlcenterAccountFactoryBaselineConfigBaselineConfigItemArgs]] = None,
controlcenter_account_factory_baseline_config_id: Optional[str] = None,
create_time: Optional[str] = None,
name: Optional[str] = None,
update_time: Optional[str] = None) -> ControlcenterAccountFactoryBaselineConfigfunc GetControlcenterAccountFactoryBaselineConfig(ctx *Context, name string, id IDInput, state *ControlcenterAccountFactoryBaselineConfigState, opts ...ResourceOption) (*ControlcenterAccountFactoryBaselineConfig, error)public static ControlcenterAccountFactoryBaselineConfig Get(string name, Input<string> id, ControlcenterAccountFactoryBaselineConfigState? state, CustomResourceOptions? opts = null)public static ControlcenterAccountFactoryBaselineConfig get(String name, Output<String> id, ControlcenterAccountFactoryBaselineConfigState state, CustomResourceOptions options)resources: _: type: tencentcloud:ControlcenterAccountFactoryBaselineConfig 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.
- Baseline
Config List<ControlcenterItems Account Factory Baseline Config Baseline Config Item> - Baseline configuration, overwrite update. You can query existing baseline configurations via controlcenter:GetAccountFactoryBaseline. You can query supported baseline lists via controlcenter:ListAccountFactoryBaselineItems.
- Controlcenter
Account stringFactory Baseline Config Id - ID of the resource.
- Create
Time string - Creation time.
- Name string
- Baseline name, which must be unique. Supports only English letters, numbers, Chinese characters, and symbols @, &, _, [], -. Combination of 1-25 Chinese or English characters.
- Update
Time string - Update time.
- Baseline
Config []ControlcenterItems Account Factory Baseline Config Baseline Config Item Args - Baseline configuration, overwrite update. You can query existing baseline configurations via controlcenter:GetAccountFactoryBaseline. You can query supported baseline lists via controlcenter:ListAccountFactoryBaselineItems.
- Controlcenter
Account stringFactory Baseline Config Id - ID of the resource.
- Create
Time string - Creation time.
- Name string
- Baseline name, which must be unique. Supports only English letters, numbers, Chinese characters, and symbols @, &, _, [], -. Combination of 1-25 Chinese or English characters.
- Update
Time string - Update time.
- baseline
Config List<ControlcenterItems Account Factory Baseline Config Baseline Config Item> - Baseline configuration, overwrite update. You can query existing baseline configurations via controlcenter:GetAccountFactoryBaseline. You can query supported baseline lists via controlcenter:ListAccountFactoryBaselineItems.
- controlcenter
Account StringFactory Baseline Config Id - ID of the resource.
- create
Time String - Creation time.
- name String
- Baseline name, which must be unique. Supports only English letters, numbers, Chinese characters, and symbols @, &, _, [], -. Combination of 1-25 Chinese or English characters.
- update
Time String - Update time.
- baseline
Config ControlcenterItems Account Factory Baseline Config Baseline Config Item[] - Baseline configuration, overwrite update. You can query existing baseline configurations via controlcenter:GetAccountFactoryBaseline. You can query supported baseline lists via controlcenter:ListAccountFactoryBaselineItems.
- controlcenter
Account stringFactory Baseline Config Id - ID of the resource.
- create
Time string - Creation time.
- name string
- Baseline name, which must be unique. Supports only English letters, numbers, Chinese characters, and symbols @, &, _, [], -. Combination of 1-25 Chinese or English characters.
- update
Time string - Update time.
- baseline_
config_ Sequence[Controlcenteritems Account Factory Baseline Config Baseline Config Item Args] - Baseline configuration, overwrite update. You can query existing baseline configurations via controlcenter:GetAccountFactoryBaseline. You can query supported baseline lists via controlcenter:ListAccountFactoryBaselineItems.
- controlcenter_
account_ strfactory_ baseline_ config_ id - ID of the resource.
- create_
time str - Creation time.
- name str
- Baseline name, which must be unique. Supports only English letters, numbers, Chinese characters, and symbols @, &, _, [], -. Combination of 1-25 Chinese or English characters.
- update_
time str - Update time.
- baseline
Config List<Property Map>Items - Baseline configuration, overwrite update. You can query existing baseline configurations via controlcenter:GetAccountFactoryBaseline. You can query supported baseline lists via controlcenter:ListAccountFactoryBaselineItems.
- controlcenter
Account StringFactory Baseline Config Id - ID of the resource.
- create
Time String - Creation time.
- name String
- Baseline name, which must be unique. Supports only English letters, numbers, Chinese characters, and symbols @, &, _, [], -. Combination of 1-25 Chinese or English characters.
- update
Time String - Update time.
Supporting Types
ControlcenterAccountFactoryBaselineConfigBaselineConfigItem, ControlcenterAccountFactoryBaselineConfigBaselineConfigItemArgs
- Apply
Count double - Specifies the number of accounts for baseline applications.
- Configuration string
- Account factory baseline item configuration, different baseline items have different configuration parameters.
- Identifier string
- Specifies the unique identifier for account factory baseline item, can only contain
english letters,digits, and@,._[]-:()()[]+=., with a length of 2-128 characters.
- Apply
Count float64 - Specifies the number of accounts for baseline applications.
- Configuration string
- Account factory baseline item configuration, different baseline items have different configuration parameters.
- Identifier string
- Specifies the unique identifier for account factory baseline item, can only contain
english letters,digits, and@,._[]-:()()[]+=., with a length of 2-128 characters.
- apply
Count Double - Specifies the number of accounts for baseline applications.
- configuration String
- Account factory baseline item configuration, different baseline items have different configuration parameters.
- identifier String
- Specifies the unique identifier for account factory baseline item, can only contain
english letters,digits, and@,._[]-:()()[]+=., with a length of 2-128 characters.
- apply
Count number - Specifies the number of accounts for baseline applications.
- configuration string
- Account factory baseline item configuration, different baseline items have different configuration parameters.
- identifier string
- Specifies the unique identifier for account factory baseline item, can only contain
english letters,digits, and@,._[]-:()()[]+=., with a length of 2-128 characters.
- apply_
count float - Specifies the number of accounts for baseline applications.
- configuration str
- Account factory baseline item configuration, different baseline items have different configuration parameters.
- identifier str
- Specifies the unique identifier for account factory baseline item, can only contain
english letters,digits, and@,._[]-:()()[]+=., with a length of 2-128 characters.
- apply
Count Number - Specifies the number of accounts for baseline applications.
- configuration String
- Account factory baseline item configuration, different baseline items have different configuration parameters.
- identifier String
- Specifies the unique identifier for account factory baseline item, can only contain
english letters,digits, and@,._[]-:()()[]+=., with a length of 2-128 characters.
Import
Controlcenter account factory baseline config can be imported using the customId(like uuid or base64 string), e.g.
$ pulumi import tencentcloud:index/controlcenterAccountFactoryBaselineConfig:ControlcenterAccountFactoryBaselineConfig example nMtrLC9IuQq27wyiICj9bA==
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
tencentcloudTerraform Provider.
