tencentcloud.BatchApplyAccountBaselines
Explore with Pulumi AI
Provides a resource to create a controlcenter batch apply account baselines
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.BatchApplyAccountBaselines("example", {
baselineConfigItems: [{
configuration: "{\"Images\":[{\"Region\":\"ap-guangzhou\",\"ImageId\":\"img-mcdsiqrx\",\"ImageName\":\"demo1\"}, {\"Region\":\"ap-guangzhou\",\"ImageId\":\"img-esxgkots\",\"ImageName\":\"demo2\"}]}",
identifier: "TCC-AF_SHARE_IMAGE",
}],
memberUinLists: [
10037652245,
10037652240,
],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.BatchApplyAccountBaselines("example",
baseline_config_items=[{
"configuration": "{\"Images\":[{\"Region\":\"ap-guangzhou\",\"ImageId\":\"img-mcdsiqrx\",\"ImageName\":\"demo1\"}, {\"Region\":\"ap-guangzhou\",\"ImageId\":\"img-esxgkots\",\"ImageName\":\"demo2\"}]}",
"identifier": "TCC-AF_SHARE_IMAGE",
}],
member_uin_lists=[
10037652245,
10037652240,
])
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.NewBatchApplyAccountBaselines(ctx, "example", &tencentcloud.BatchApplyAccountBaselinesArgs{
BaselineConfigItems: tencentcloud.BatchApplyAccountBaselinesBaselineConfigItemArray{
&tencentcloud.BatchApplyAccountBaselinesBaselineConfigItemArgs{
Configuration: pulumi.String("{\"Images\":[{\"Region\":\"ap-guangzhou\",\"ImageId\":\"img-mcdsiqrx\",\"ImageName\":\"demo1\"}, {\"Region\":\"ap-guangzhou\",\"ImageId\":\"img-esxgkots\",\"ImageName\":\"demo2\"}]}"),
Identifier: pulumi.String("TCC-AF_SHARE_IMAGE"),
},
},
MemberUinLists: pulumi.Float64Array{
pulumi.Float64(10037652245),
pulumi.Float64(10037652240),
},
})
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.BatchApplyAccountBaselines("example", new()
{
BaselineConfigItems = new[]
{
new Tencentcloud.Inputs.BatchApplyAccountBaselinesBaselineConfigItemArgs
{
Configuration = "{\"Images\":[{\"Region\":\"ap-guangzhou\",\"ImageId\":\"img-mcdsiqrx\",\"ImageName\":\"demo1\"}, {\"Region\":\"ap-guangzhou\",\"ImageId\":\"img-esxgkots\",\"ImageName\":\"demo2\"}]}",
Identifier = "TCC-AF_SHARE_IMAGE",
},
},
MemberUinLists = new[]
{
10037652245,
10037652240,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.BatchApplyAccountBaselines;
import com.pulumi.tencentcloud.BatchApplyAccountBaselinesArgs;
import com.pulumi.tencentcloud.inputs.BatchApplyAccountBaselinesBaselineConfigItemArgs;
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 BatchApplyAccountBaselines("example", BatchApplyAccountBaselinesArgs.builder()
.baselineConfigItems(BatchApplyAccountBaselinesBaselineConfigItemArgs.builder()
.configuration("{\"Images\":[{\"Region\":\"ap-guangzhou\",\"ImageId\":\"img-mcdsiqrx\",\"ImageName\":\"demo1\"}, {\"Region\":\"ap-guangzhou\",\"ImageId\":\"img-esxgkots\",\"ImageName\":\"demo2\"}]}")
.identifier("TCC-AF_SHARE_IMAGE")
.build())
.memberUinLists(
10037652245,
10037652240)
.build());
}
}
resources:
example:
type: tencentcloud:BatchApplyAccountBaselines
properties:
baselineConfigItems:
- configuration: '{"Images":[{"Region":"ap-guangzhou","ImageId":"img-mcdsiqrx","ImageName":"demo1"}, {"Region":"ap-guangzhou","ImageId":"img-esxgkots","ImageName":"demo2"}]}'
identifier: TCC-AF_SHARE_IMAGE
memberUinLists:
- 1.0037652245e+10
- 1.003765224e+10
Create BatchApplyAccountBaselines Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BatchApplyAccountBaselines(name: string, args: BatchApplyAccountBaselinesArgs, opts?: CustomResourceOptions);
@overload
def BatchApplyAccountBaselines(resource_name: str,
args: BatchApplyAccountBaselinesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BatchApplyAccountBaselines(resource_name: str,
opts: Optional[ResourceOptions] = None,
baseline_config_items: Optional[Sequence[BatchApplyAccountBaselinesBaselineConfigItemArgs]] = None,
member_uin_lists: Optional[Sequence[float]] = None,
batch_apply_account_baselines_id: Optional[str] = None)
func NewBatchApplyAccountBaselines(ctx *Context, name string, args BatchApplyAccountBaselinesArgs, opts ...ResourceOption) (*BatchApplyAccountBaselines, error)
public BatchApplyAccountBaselines(string name, BatchApplyAccountBaselinesArgs args, CustomResourceOptions? opts = null)
public BatchApplyAccountBaselines(String name, BatchApplyAccountBaselinesArgs args)
public BatchApplyAccountBaselines(String name, BatchApplyAccountBaselinesArgs args, CustomResourceOptions options)
type: tencentcloud:BatchApplyAccountBaselines
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 BatchApplyAccountBaselinesArgs
- 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 BatchApplyAccountBaselinesArgs
- 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 BatchApplyAccountBaselinesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BatchApplyAccountBaselinesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BatchApplyAccountBaselinesArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
BatchApplyAccountBaselines 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 BatchApplyAccountBaselines resource accepts the following input properties:
- Baseline
Config List<BatchItems Apply Account Baselines Baseline Config Item> - List of baseline item configuration information.
- Member
Uin List<double>Lists - Member account UIN, which is also the UIN of the account to which the baseline is applied.
- Batch
Apply stringAccount Baselines Id - ID of the resource.
- Baseline
Config []BatchItems Apply Account Baselines Baseline Config Item Args - List of baseline item configuration information.
- Member
Uin []float64Lists - Member account UIN, which is also the UIN of the account to which the baseline is applied.
- Batch
Apply stringAccount Baselines Id - ID of the resource.
- baseline
Config List<BatchItems Apply Account Baselines Baseline Config Item> - List of baseline item configuration information.
- member
Uin List<Double>Lists - Member account UIN, which is also the UIN of the account to which the baseline is applied.
- batch
Apply StringAccount Baselines Id - ID of the resource.
- baseline
Config BatchItems Apply Account Baselines Baseline Config Item[] - List of baseline item configuration information.
- member
Uin number[]Lists - Member account UIN, which is also the UIN of the account to which the baseline is applied.
- batch
Apply stringAccount Baselines Id - ID of the resource.
- baseline_
config_ Sequence[Batchitems Apply Account Baselines Baseline Config Item Args] - List of baseline item configuration information.
- member_
uin_ Sequence[float]lists - Member account UIN, which is also the UIN of the account to which the baseline is applied.
- batch_
apply_ straccount_ baselines_ id - ID of the resource.
- baseline
Config List<Property Map>Items - List of baseline item configuration information.
- member
Uin List<Number>Lists - Member account UIN, which is also the UIN of the account to which the baseline is applied.
- batch
Apply StringAccount Baselines Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the BatchApplyAccountBaselines 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 BatchApplyAccountBaselines Resource
Get an existing BatchApplyAccountBaselines 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?: BatchApplyAccountBaselinesState, opts?: CustomResourceOptions): BatchApplyAccountBaselines
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
baseline_config_items: Optional[Sequence[BatchApplyAccountBaselinesBaselineConfigItemArgs]] = None,
batch_apply_account_baselines_id: Optional[str] = None,
member_uin_lists: Optional[Sequence[float]] = None) -> BatchApplyAccountBaselines
func GetBatchApplyAccountBaselines(ctx *Context, name string, id IDInput, state *BatchApplyAccountBaselinesState, opts ...ResourceOption) (*BatchApplyAccountBaselines, error)
public static BatchApplyAccountBaselines Get(string name, Input<string> id, BatchApplyAccountBaselinesState? state, CustomResourceOptions? opts = null)
public static BatchApplyAccountBaselines get(String name, Output<String> id, BatchApplyAccountBaselinesState state, CustomResourceOptions options)
resources: _: type: tencentcloud:BatchApplyAccountBaselines 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<BatchItems Apply Account Baselines Baseline Config Item> - List of baseline item configuration information.
- Batch
Apply stringAccount Baselines Id - ID of the resource.
- Member
Uin List<double>Lists - Member account UIN, which is also the UIN of the account to which the baseline is applied.
- Baseline
Config []BatchItems Apply Account Baselines Baseline Config Item Args - List of baseline item configuration information.
- Batch
Apply stringAccount Baselines Id - ID of the resource.
- Member
Uin []float64Lists - Member account UIN, which is also the UIN of the account to which the baseline is applied.
- baseline
Config List<BatchItems Apply Account Baselines Baseline Config Item> - List of baseline item configuration information.
- batch
Apply StringAccount Baselines Id - ID of the resource.
- member
Uin List<Double>Lists - Member account UIN, which is also the UIN of the account to which the baseline is applied.
- baseline
Config BatchItems Apply Account Baselines Baseline Config Item[] - List of baseline item configuration information.
- batch
Apply stringAccount Baselines Id - ID of the resource.
- member
Uin number[]Lists - Member account UIN, which is also the UIN of the account to which the baseline is applied.
- baseline_
config_ Sequence[Batchitems Apply Account Baselines Baseline Config Item Args] - List of baseline item configuration information.
- batch_
apply_ straccount_ baselines_ id - ID of the resource.
- member_
uin_ Sequence[float]lists - Member account UIN, which is also the UIN of the account to which the baseline is applied.
- baseline
Config List<Property Map>Items - List of baseline item configuration information.
- batch
Apply StringAccount Baselines Id - ID of the resource.
- member
Uin List<Number>Lists - Member account UIN, which is also the UIN of the account to which the baseline is applied.
Supporting Types
BatchApplyAccountBaselinesBaselineConfigItem, BatchApplyAccountBaselinesBaselineConfigItemArgs
- Configuration string
- Account Factory baseline item configuration. Different items have different parameters.Note: This field may return null, indicating that no valid values can be obtained.
- Identifier string
- A unique identifier for an Account Factory baseline item, which can only contain English letters, digits, and @,._[]-:()+=. It must be 2-128 characters long.Note: This field may return null, indicating that no valid values can be obtained.
- Configuration string
- Account Factory baseline item configuration. Different items have different parameters.Note: This field may return null, indicating that no valid values can be obtained.
- Identifier string
- A unique identifier for an Account Factory baseline item, which can only contain English letters, digits, and @,._[]-:()+=. It must be 2-128 characters long.Note: This field may return null, indicating that no valid values can be obtained.
- configuration String
- Account Factory baseline item configuration. Different items have different parameters.Note: This field may return null, indicating that no valid values can be obtained.
- identifier String
- A unique identifier for an Account Factory baseline item, which can only contain English letters, digits, and @,._[]-:()+=. It must be 2-128 characters long.Note: This field may return null, indicating that no valid values can be obtained.
- configuration string
- Account Factory baseline item configuration. Different items have different parameters.Note: This field may return null, indicating that no valid values can be obtained.
- identifier string
- A unique identifier for an Account Factory baseline item, which can only contain English letters, digits, and @,._[]-:()+=. It must be 2-128 characters long.Note: This field may return null, indicating that no valid values can be obtained.
- configuration str
- Account Factory baseline item configuration. Different items have different parameters.Note: This field may return null, indicating that no valid values can be obtained.
- identifier str
- A unique identifier for an Account Factory baseline item, which can only contain English letters, digits, and @,._[]-:()+=. It must be 2-128 characters long.Note: This field may return null, indicating that no valid values can be obtained.
- configuration String
- Account Factory baseline item configuration. Different items have different parameters.Note: This field may return null, indicating that no valid values can be obtained.
- identifier String
- A unique identifier for an Account Factory baseline item, which can only contain English letters, digits, and @,._[]-:()+=. It must be 2-128 characters long.Note: This field may return null, indicating that no valid values can be obtained.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.