1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. BatchApplyAccountBaselines
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.BatchApplyAccountBaselines

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    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:

    BaselineConfigItems List<BatchApplyAccountBaselinesBaselineConfigItem>
    List of baseline item configuration information.
    MemberUinLists List<double>
    Member account UIN, which is also the UIN of the account to which the baseline is applied.
    BatchApplyAccountBaselinesId string
    ID of the resource.
    BaselineConfigItems []BatchApplyAccountBaselinesBaselineConfigItemArgs
    List of baseline item configuration information.
    MemberUinLists []float64
    Member account UIN, which is also the UIN of the account to which the baseline is applied.
    BatchApplyAccountBaselinesId string
    ID of the resource.
    baselineConfigItems List<BatchApplyAccountBaselinesBaselineConfigItem>
    List of baseline item configuration information.
    memberUinLists List<Double>
    Member account UIN, which is also the UIN of the account to which the baseline is applied.
    batchApplyAccountBaselinesId String
    ID of the resource.
    baselineConfigItems BatchApplyAccountBaselinesBaselineConfigItem[]
    List of baseline item configuration information.
    memberUinLists number[]
    Member account UIN, which is also the UIN of the account to which the baseline is applied.
    batchApplyAccountBaselinesId string
    ID of the resource.
    baseline_config_items Sequence[BatchApplyAccountBaselinesBaselineConfigItemArgs]
    List of baseline item configuration information.
    member_uin_lists Sequence[float]
    Member account UIN, which is also the UIN of the account to which the baseline is applied.
    batch_apply_account_baselines_id str
    ID of the resource.
    baselineConfigItems List<Property Map>
    List of baseline item configuration information.
    memberUinLists List<Number>
    Member account UIN, which is also the UIN of the account to which the baseline is applied.
    batchApplyAccountBaselinesId String
    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.
    The following state arguments are supported:
    BaselineConfigItems List<BatchApplyAccountBaselinesBaselineConfigItem>
    List of baseline item configuration information.
    BatchApplyAccountBaselinesId string
    ID of the resource.
    MemberUinLists List<double>
    Member account UIN, which is also the UIN of the account to which the baseline is applied.
    BaselineConfigItems []BatchApplyAccountBaselinesBaselineConfigItemArgs
    List of baseline item configuration information.
    BatchApplyAccountBaselinesId string
    ID of the resource.
    MemberUinLists []float64
    Member account UIN, which is also the UIN of the account to which the baseline is applied.
    baselineConfigItems List<BatchApplyAccountBaselinesBaselineConfigItem>
    List of baseline item configuration information.
    batchApplyAccountBaselinesId String
    ID of the resource.
    memberUinLists List<Double>
    Member account UIN, which is also the UIN of the account to which the baseline is applied.
    baselineConfigItems BatchApplyAccountBaselinesBaselineConfigItem[]
    List of baseline item configuration information.
    batchApplyAccountBaselinesId string
    ID of the resource.
    memberUinLists number[]
    Member account UIN, which is also the UIN of the account to which the baseline is applied.
    baseline_config_items Sequence[BatchApplyAccountBaselinesBaselineConfigItemArgs]
    List of baseline item configuration information.
    batch_apply_account_baselines_id str
    ID of the resource.
    member_uin_lists Sequence[float]
    Member account UIN, which is also the UIN of the account to which the baseline is applied.
    baselineConfigItems List<Property Map>
    List of baseline item configuration information.
    batchApplyAccountBaselinesId String
    ID of the resource.
    memberUinLists List<Number>
    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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack