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

tencentcloud.CosBatch

Explore with Pulumi AI

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

    Provides a resource to create a cos bucket batch.

    NOTE: The current resource does not support cos_domain.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const cosBatch = new tencentcloud.CosBatch("cosBatch", {
        appid: 1308919341,
        confirmationRequired: true,
        description: "cos_batch",
        manifest: {
            location: {
                etag: "64357de8fd75a3abae2200135a2c9627",
                objectArn: "qcs::cos:ap-guangzhou:uid/1308919341:keep-test-1308919341/cos_bucket_inventory/1308919341/keep-test/test/20230621/manifest.json",
            },
            spec: {
                format: "COSInventoryReport_CSV_V1",
            },
        },
        operation: {
            cosPutObjectCopy: {
                accessControlDirective: "Copy",
                metadataDirective: "Copy",
                prefixReplace: false,
                storageClass: "STANDARD",
                taggingDirective: "Copy",
                targetResource: "qcs::cos:ap-guangzhou:uid/1308919341:cos-lock-1308919341",
            },
        },
        priority: 1,
        report: {
            bucket: "qcs::cos:ap-guangzhou:uid/1308919341:keep-test-1308919341",
            enabled: "true",
            format: "Report_CSV_V1",
            reportScope: "AllTasks",
        },
        roleArn: "qcs::cam::uin/100022975249:roleName/COSBatch_QCSRole",
        status: "Cancelled",
        uin: "100022975249",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    cos_batch = tencentcloud.CosBatch("cosBatch",
        appid=1308919341,
        confirmation_required=True,
        description="cos_batch",
        manifest={
            "location": {
                "etag": "64357de8fd75a3abae2200135a2c9627",
                "object_arn": "qcs::cos:ap-guangzhou:uid/1308919341:keep-test-1308919341/cos_bucket_inventory/1308919341/keep-test/test/20230621/manifest.json",
            },
            "spec": {
                "format": "COSInventoryReport_CSV_V1",
            },
        },
        operation={
            "cos_put_object_copy": {
                "access_control_directive": "Copy",
                "metadata_directive": "Copy",
                "prefix_replace": False,
                "storage_class": "STANDARD",
                "tagging_directive": "Copy",
                "target_resource": "qcs::cos:ap-guangzhou:uid/1308919341:cos-lock-1308919341",
            },
        },
        priority=1,
        report={
            "bucket": "qcs::cos:ap-guangzhou:uid/1308919341:keep-test-1308919341",
            "enabled": "true",
            "format": "Report_CSV_V1",
            "report_scope": "AllTasks",
        },
        role_arn="qcs::cam::uin/100022975249:roleName/COSBatch_QCSRole",
        status="Cancelled",
        uin="100022975249")
    
    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.NewCosBatch(ctx, "cosBatch", &tencentcloud.CosBatchArgs{
    			Appid:                pulumi.Float64(1308919341),
    			ConfirmationRequired: pulumi.Bool(true),
    			Description:          pulumi.String("cos_batch"),
    			Manifest: &tencentcloud.CosBatchManifestArgs{
    				Location: &tencentcloud.CosBatchManifestLocationArgs{
    					Etag:      pulumi.String("64357de8fd75a3abae2200135a2c9627"),
    					ObjectArn: pulumi.String("qcs::cos:ap-guangzhou:uid/1308919341:keep-test-1308919341/cos_bucket_inventory/1308919341/keep-test/test/20230621/manifest.json"),
    				},
    				Spec: &tencentcloud.CosBatchManifestSpecArgs{
    					Format: pulumi.String("COSInventoryReport_CSV_V1"),
    				},
    			},
    			Operation: &tencentcloud.CosBatchOperationArgs{
    				CosPutObjectCopy: &tencentcloud.CosBatchOperationCosPutObjectCopyArgs{
    					AccessControlDirective: pulumi.String("Copy"),
    					MetadataDirective:      pulumi.String("Copy"),
    					PrefixReplace:          pulumi.Bool(false),
    					StorageClass:           pulumi.String("STANDARD"),
    					TaggingDirective:       pulumi.String("Copy"),
    					TargetResource:         pulumi.String("qcs::cos:ap-guangzhou:uid/1308919341:cos-lock-1308919341"),
    				},
    			},
    			Priority: pulumi.Float64(1),
    			Report: &tencentcloud.CosBatchReportArgs{
    				Bucket:      pulumi.String("qcs::cos:ap-guangzhou:uid/1308919341:keep-test-1308919341"),
    				Enabled:     pulumi.String("true"),
    				Format:      pulumi.String("Report_CSV_V1"),
    				ReportScope: pulumi.String("AllTasks"),
    			},
    			RoleArn: pulumi.String("qcs::cam::uin/100022975249:roleName/COSBatch_QCSRole"),
    			Status:  pulumi.String("Cancelled"),
    			Uin:     pulumi.String("100022975249"),
    		})
    		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 cosBatch = new Tencentcloud.CosBatch("cosBatch", new()
        {
            Appid = 1308919341,
            ConfirmationRequired = true,
            Description = "cos_batch",
            Manifest = new Tencentcloud.Inputs.CosBatchManifestArgs
            {
                Location = new Tencentcloud.Inputs.CosBatchManifestLocationArgs
                {
                    Etag = "64357de8fd75a3abae2200135a2c9627",
                    ObjectArn = "qcs::cos:ap-guangzhou:uid/1308919341:keep-test-1308919341/cos_bucket_inventory/1308919341/keep-test/test/20230621/manifest.json",
                },
                Spec = new Tencentcloud.Inputs.CosBatchManifestSpecArgs
                {
                    Format = "COSInventoryReport_CSV_V1",
                },
            },
            Operation = new Tencentcloud.Inputs.CosBatchOperationArgs
            {
                CosPutObjectCopy = new Tencentcloud.Inputs.CosBatchOperationCosPutObjectCopyArgs
                {
                    AccessControlDirective = "Copy",
                    MetadataDirective = "Copy",
                    PrefixReplace = false,
                    StorageClass = "STANDARD",
                    TaggingDirective = "Copy",
                    TargetResource = "qcs::cos:ap-guangzhou:uid/1308919341:cos-lock-1308919341",
                },
            },
            Priority = 1,
            Report = new Tencentcloud.Inputs.CosBatchReportArgs
            {
                Bucket = "qcs::cos:ap-guangzhou:uid/1308919341:keep-test-1308919341",
                Enabled = "true",
                Format = "Report_CSV_V1",
                ReportScope = "AllTasks",
            },
            RoleArn = "qcs::cam::uin/100022975249:roleName/COSBatch_QCSRole",
            Status = "Cancelled",
            Uin = "100022975249",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CosBatch;
    import com.pulumi.tencentcloud.CosBatchArgs;
    import com.pulumi.tencentcloud.inputs.CosBatchManifestArgs;
    import com.pulumi.tencentcloud.inputs.CosBatchManifestLocationArgs;
    import com.pulumi.tencentcloud.inputs.CosBatchManifestSpecArgs;
    import com.pulumi.tencentcloud.inputs.CosBatchOperationArgs;
    import com.pulumi.tencentcloud.inputs.CosBatchOperationCosPutObjectCopyArgs;
    import com.pulumi.tencentcloud.inputs.CosBatchReportArgs;
    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 cosBatch = new CosBatch("cosBatch", CosBatchArgs.builder()
                .appid("1308919341")
                .confirmationRequired(true)
                .description("cos_batch")
                .manifest(CosBatchManifestArgs.builder()
                    .location(CosBatchManifestLocationArgs.builder()
                        .etag("64357de8fd75a3abae2200135a2c9627")
                        .objectArn("qcs::cos:ap-guangzhou:uid/1308919341:keep-test-1308919341/cos_bucket_inventory/1308919341/keep-test/test/20230621/manifest.json")
                        .build())
                    .spec(CosBatchManifestSpecArgs.builder()
                        .format("COSInventoryReport_CSV_V1")
                        .build())
                    .build())
                .operation(CosBatchOperationArgs.builder()
                    .cosPutObjectCopy(CosBatchOperationCosPutObjectCopyArgs.builder()
                        .accessControlDirective("Copy")
                        .metadataDirective("Copy")
                        .prefixReplace(false)
                        .storageClass("STANDARD")
                        .taggingDirective("Copy")
                        .targetResource("qcs::cos:ap-guangzhou:uid/1308919341:cos-lock-1308919341")
                        .build())
                    .build())
                .priority(1)
                .report(CosBatchReportArgs.builder()
                    .bucket("qcs::cos:ap-guangzhou:uid/1308919341:keep-test-1308919341")
                    .enabled("true")
                    .format("Report_CSV_V1")
                    .reportScope("AllTasks")
                    .build())
                .roleArn("qcs::cam::uin/100022975249:roleName/COSBatch_QCSRole")
                .status("Cancelled")
                .uin("100022975249")
                .build());
    
        }
    }
    
    resources:
      cosBatch:
        type: tencentcloud:CosBatch
        properties:
          appid: '1308919341'
          confirmationRequired: true
          description: cos_batch
          manifest:
            location:
              etag: 64357de8fd75a3abae2200135a2c9627
              objectArn: qcs::cos:ap-guangzhou:uid/1308919341:keep-test-1308919341/cos_bucket_inventory/1308919341/keep-test/test/20230621/manifest.json
            spec:
              format: COSInventoryReport_CSV_V1
          operation:
            cosPutObjectCopy:
              accessControlDirective: Copy
              metadataDirective: Copy
              prefixReplace: false
              storageClass: STANDARD
              taggingDirective: Copy
              targetResource: qcs::cos:ap-guangzhou:uid/1308919341:cos-lock-1308919341
          priority: 1
          report:
            bucket: qcs::cos:ap-guangzhou:uid/1308919341:keep-test-1308919341
            enabled: 'true'
            format: Report_CSV_V1
            reportScope: AllTasks
          roleArn: qcs::cam::uin/100022975249:roleName/COSBatch_QCSRole
          status: Cancelled
          uin: '100022975249'
    

    Create CosBatch Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new CosBatch(name: string, args: CosBatchArgs, opts?: CustomResourceOptions);
    @overload
    def CosBatch(resource_name: str,
                 args: CosBatchArgs,
                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def CosBatch(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 appid: Optional[float] = None,
                 manifest: Optional[CosBatchManifestArgs] = None,
                 operation: Optional[CosBatchOperationArgs] = None,
                 priority: Optional[float] = None,
                 report: Optional[CosBatchReportArgs] = None,
                 role_arn: Optional[str] = None,
                 uin: Optional[str] = None,
                 confirmation_required: Optional[bool] = None,
                 cos_batch_id: Optional[str] = None,
                 description: Optional[str] = None,
                 status: Optional[str] = None)
    func NewCosBatch(ctx *Context, name string, args CosBatchArgs, opts ...ResourceOption) (*CosBatch, error)
    public CosBatch(string name, CosBatchArgs args, CustomResourceOptions? opts = null)
    public CosBatch(String name, CosBatchArgs args)
    public CosBatch(String name, CosBatchArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CosBatch
    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 CosBatchArgs
    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 CosBatchArgs
    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 CosBatchArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CosBatchArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CosBatchArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    CosBatch 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 CosBatch resource accepts the following input properties:

    Appid double
    Appid.
    Manifest CosBatchManifest
    List of objects to be processed.
    Operation CosBatchOperation
    Select the action to be performed on the objects in the manifest file.
    Priority double
    Mission priority. The higher the value, the higher the priority of the task. Priority values range from 0 to 2147483647.
    Report CosBatchReport
    Task completion report.
    RoleArn string
    COS resource identifier, which is used to identify the role you created. You need this resource identifier to verify your identity.
    Uin string
    Uin.
    ConfirmationRequired bool
    Whether to confirm before performing the task. The default is false.
    CosBatchId string
    ID of the resource.
    Description string
    Mission description. If you configured this information when you created the task, the content is returned. The description length ranges from 0 to 256 bytes.
    Status string
    Current status of the task. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended. For Update status, when you move a task to the Ready state, COS will assume that you have confirmed the task and will perform it. When you move a task to the Cancelled state, COS cancels the task. Optional parameters include: Ready, Cancelled.
    Appid float64
    Appid.
    Manifest CosBatchManifestArgs
    List of objects to be processed.
    Operation CosBatchOperationArgs
    Select the action to be performed on the objects in the manifest file.
    Priority float64
    Mission priority. The higher the value, the higher the priority of the task. Priority values range from 0 to 2147483647.
    Report CosBatchReportArgs
    Task completion report.
    RoleArn string
    COS resource identifier, which is used to identify the role you created. You need this resource identifier to verify your identity.
    Uin string
    Uin.
    ConfirmationRequired bool
    Whether to confirm before performing the task. The default is false.
    CosBatchId string
    ID of the resource.
    Description string
    Mission description. If you configured this information when you created the task, the content is returned. The description length ranges from 0 to 256 bytes.
    Status string
    Current status of the task. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended. For Update status, when you move a task to the Ready state, COS will assume that you have confirmed the task and will perform it. When you move a task to the Cancelled state, COS cancels the task. Optional parameters include: Ready, Cancelled.
    appid Double
    Appid.
    manifest CosBatchManifest
    List of objects to be processed.
    operation CosBatchOperation
    Select the action to be performed on the objects in the manifest file.
    priority Double
    Mission priority. The higher the value, the higher the priority of the task. Priority values range from 0 to 2147483647.
    report CosBatchReport
    Task completion report.
    roleArn String
    COS resource identifier, which is used to identify the role you created. You need this resource identifier to verify your identity.
    uin String
    Uin.
    confirmationRequired Boolean
    Whether to confirm before performing the task. The default is false.
    cosBatchId String
    ID of the resource.
    description String
    Mission description. If you configured this information when you created the task, the content is returned. The description length ranges from 0 to 256 bytes.
    status String
    Current status of the task. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended. For Update status, when you move a task to the Ready state, COS will assume that you have confirmed the task and will perform it. When you move a task to the Cancelled state, COS cancels the task. Optional parameters include: Ready, Cancelled.
    appid number
    Appid.
    manifest CosBatchManifest
    List of objects to be processed.
    operation CosBatchOperation
    Select the action to be performed on the objects in the manifest file.
    priority number
    Mission priority. The higher the value, the higher the priority of the task. Priority values range from 0 to 2147483647.
    report CosBatchReport
    Task completion report.
    roleArn string
    COS resource identifier, which is used to identify the role you created. You need this resource identifier to verify your identity.
    uin string
    Uin.
    confirmationRequired boolean
    Whether to confirm before performing the task. The default is false.
    cosBatchId string
    ID of the resource.
    description string
    Mission description. If you configured this information when you created the task, the content is returned. The description length ranges from 0 to 256 bytes.
    status string
    Current status of the task. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended. For Update status, when you move a task to the Ready state, COS will assume that you have confirmed the task and will perform it. When you move a task to the Cancelled state, COS cancels the task. Optional parameters include: Ready, Cancelled.
    appid float
    Appid.
    manifest CosBatchManifestArgs
    List of objects to be processed.
    operation CosBatchOperationArgs
    Select the action to be performed on the objects in the manifest file.
    priority float
    Mission priority. The higher the value, the higher the priority of the task. Priority values range from 0 to 2147483647.
    report CosBatchReportArgs
    Task completion report.
    role_arn str
    COS resource identifier, which is used to identify the role you created. You need this resource identifier to verify your identity.
    uin str
    Uin.
    confirmation_required bool
    Whether to confirm before performing the task. The default is false.
    cos_batch_id str
    ID of the resource.
    description str
    Mission description. If you configured this information when you created the task, the content is returned. The description length ranges from 0 to 256 bytes.
    status str
    Current status of the task. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended. For Update status, when you move a task to the Ready state, COS will assume that you have confirmed the task and will perform it. When you move a task to the Cancelled state, COS cancels the task. Optional parameters include: Ready, Cancelled.
    appid Number
    Appid.
    manifest Property Map
    List of objects to be processed.
    operation Property Map
    Select the action to be performed on the objects in the manifest file.
    priority Number
    Mission priority. The higher the value, the higher the priority of the task. Priority values range from 0 to 2147483647.
    report Property Map
    Task completion report.
    roleArn String
    COS resource identifier, which is used to identify the role you created. You need this resource identifier to verify your identity.
    uin String
    Uin.
    confirmationRequired Boolean
    Whether to confirm before performing the task. The default is false.
    cosBatchId String
    ID of the resource.
    description String
    Mission description. If you configured this information when you created the task, the content is returned. The description length ranges from 0 to 256 bytes.
    status String
    Current status of the task. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended. For Update status, when you move a task to the Ready state, COS will assume that you have confirmed the task and will perform it. When you move a task to the Cancelled state, COS cancels the task. Optional parameters include: Ready, Cancelled.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CosBatch resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    JobId string
    Job id.
    Id string
    The provider-assigned unique ID for this managed resource.
    JobId string
    Job id.
    id String
    The provider-assigned unique ID for this managed resource.
    jobId String
    Job id.
    id string
    The provider-assigned unique ID for this managed resource.
    jobId string
    Job id.
    id str
    The provider-assigned unique ID for this managed resource.
    job_id str
    Job id.
    id String
    The provider-assigned unique ID for this managed resource.
    jobId String
    Job id.

    Look up Existing CosBatch Resource

    Get an existing CosBatch 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?: CosBatchState, opts?: CustomResourceOptions): CosBatch
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            appid: Optional[float] = None,
            confirmation_required: Optional[bool] = None,
            cos_batch_id: Optional[str] = None,
            description: Optional[str] = None,
            job_id: Optional[str] = None,
            manifest: Optional[CosBatchManifestArgs] = None,
            operation: Optional[CosBatchOperationArgs] = None,
            priority: Optional[float] = None,
            report: Optional[CosBatchReportArgs] = None,
            role_arn: Optional[str] = None,
            status: Optional[str] = None,
            uin: Optional[str] = None) -> CosBatch
    func GetCosBatch(ctx *Context, name string, id IDInput, state *CosBatchState, opts ...ResourceOption) (*CosBatch, error)
    public static CosBatch Get(string name, Input<string> id, CosBatchState? state, CustomResourceOptions? opts = null)
    public static CosBatch get(String name, Output<String> id, CosBatchState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CosBatch    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:
    Appid double
    Appid.
    ConfirmationRequired bool
    Whether to confirm before performing the task. The default is false.
    CosBatchId string
    ID of the resource.
    Description string
    Mission description. If you configured this information when you created the task, the content is returned. The description length ranges from 0 to 256 bytes.
    JobId string
    Job id.
    Manifest CosBatchManifest
    List of objects to be processed.
    Operation CosBatchOperation
    Select the action to be performed on the objects in the manifest file.
    Priority double
    Mission priority. The higher the value, the higher the priority of the task. Priority values range from 0 to 2147483647.
    Report CosBatchReport
    Task completion report.
    RoleArn string
    COS resource identifier, which is used to identify the role you created. You need this resource identifier to verify your identity.
    Status string
    Current status of the task. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended. For Update status, when you move a task to the Ready state, COS will assume that you have confirmed the task and will perform it. When you move a task to the Cancelled state, COS cancels the task. Optional parameters include: Ready, Cancelled.
    Uin string
    Uin.
    Appid float64
    Appid.
    ConfirmationRequired bool
    Whether to confirm before performing the task. The default is false.
    CosBatchId string
    ID of the resource.
    Description string
    Mission description. If you configured this information when you created the task, the content is returned. The description length ranges from 0 to 256 bytes.
    JobId string
    Job id.
    Manifest CosBatchManifestArgs
    List of objects to be processed.
    Operation CosBatchOperationArgs
    Select the action to be performed on the objects in the manifest file.
    Priority float64
    Mission priority. The higher the value, the higher the priority of the task. Priority values range from 0 to 2147483647.
    Report CosBatchReportArgs
    Task completion report.
    RoleArn string
    COS resource identifier, which is used to identify the role you created. You need this resource identifier to verify your identity.
    Status string
    Current status of the task. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended. For Update status, when you move a task to the Ready state, COS will assume that you have confirmed the task and will perform it. When you move a task to the Cancelled state, COS cancels the task. Optional parameters include: Ready, Cancelled.
    Uin string
    Uin.
    appid Double
    Appid.
    confirmationRequired Boolean
    Whether to confirm before performing the task. The default is false.
    cosBatchId String
    ID of the resource.
    description String
    Mission description. If you configured this information when you created the task, the content is returned. The description length ranges from 0 to 256 bytes.
    jobId String
    Job id.
    manifest CosBatchManifest
    List of objects to be processed.
    operation CosBatchOperation
    Select the action to be performed on the objects in the manifest file.
    priority Double
    Mission priority. The higher the value, the higher the priority of the task. Priority values range from 0 to 2147483647.
    report CosBatchReport
    Task completion report.
    roleArn String
    COS resource identifier, which is used to identify the role you created. You need this resource identifier to verify your identity.
    status String
    Current status of the task. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended. For Update status, when you move a task to the Ready state, COS will assume that you have confirmed the task and will perform it. When you move a task to the Cancelled state, COS cancels the task. Optional parameters include: Ready, Cancelled.
    uin String
    Uin.
    appid number
    Appid.
    confirmationRequired boolean
    Whether to confirm before performing the task. The default is false.
    cosBatchId string
    ID of the resource.
    description string
    Mission description. If you configured this information when you created the task, the content is returned. The description length ranges from 0 to 256 bytes.
    jobId string
    Job id.
    manifest CosBatchManifest
    List of objects to be processed.
    operation CosBatchOperation
    Select the action to be performed on the objects in the manifest file.
    priority number
    Mission priority. The higher the value, the higher the priority of the task. Priority values range from 0 to 2147483647.
    report CosBatchReport
    Task completion report.
    roleArn string
    COS resource identifier, which is used to identify the role you created. You need this resource identifier to verify your identity.
    status string
    Current status of the task. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended. For Update status, when you move a task to the Ready state, COS will assume that you have confirmed the task and will perform it. When you move a task to the Cancelled state, COS cancels the task. Optional parameters include: Ready, Cancelled.
    uin string
    Uin.
    appid float
    Appid.
    confirmation_required bool
    Whether to confirm before performing the task. The default is false.
    cos_batch_id str
    ID of the resource.
    description str
    Mission description. If you configured this information when you created the task, the content is returned. The description length ranges from 0 to 256 bytes.
    job_id str
    Job id.
    manifest CosBatchManifestArgs
    List of objects to be processed.
    operation CosBatchOperationArgs
    Select the action to be performed on the objects in the manifest file.
    priority float
    Mission priority. The higher the value, the higher the priority of the task. Priority values range from 0 to 2147483647.
    report CosBatchReportArgs
    Task completion report.
    role_arn str
    COS resource identifier, which is used to identify the role you created. You need this resource identifier to verify your identity.
    status str
    Current status of the task. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended. For Update status, when you move a task to the Ready state, COS will assume that you have confirmed the task and will perform it. When you move a task to the Cancelled state, COS cancels the task. Optional parameters include: Ready, Cancelled.
    uin str
    Uin.
    appid Number
    Appid.
    confirmationRequired Boolean
    Whether to confirm before performing the task. The default is false.
    cosBatchId String
    ID of the resource.
    description String
    Mission description. If you configured this information when you created the task, the content is returned. The description length ranges from 0 to 256 bytes.
    jobId String
    Job id.
    manifest Property Map
    List of objects to be processed.
    operation Property Map
    Select the action to be performed on the objects in the manifest file.
    priority Number
    Mission priority. The higher the value, the higher the priority of the task. Priority values range from 0 to 2147483647.
    report Property Map
    Task completion report.
    roleArn String
    COS resource identifier, which is used to identify the role you created. You need this resource identifier to verify your identity.
    status String
    Current status of the task. Legal parameter values include Active, Cancelled, Cancelling, Complete, Completing, Failed, Failing, New, Paused, Pausing, Preparing, Ready, Suspended. For Update status, when you move a task to the Ready state, COS will assume that you have confirmed the task and will perform it. When you move a task to the Cancelled state, COS cancels the task. Optional parameters include: Ready, Cancelled.
    uin String
    Uin.

    Supporting Types

    CosBatchManifest, CosBatchManifestArgs

    Location CosBatchManifestLocation
    The location information of the list of objects.
    Spec CosBatchManifestSpec
    Format information that describes the list of objects. If it is a CSV file, this element describes the fields contained in the manifest.
    Location CosBatchManifestLocation
    The location information of the list of objects.
    Spec CosBatchManifestSpec
    Format information that describes the list of objects. If it is a CSV file, this element describes the fields contained in the manifest.
    location CosBatchManifestLocation
    The location information of the list of objects.
    spec CosBatchManifestSpec
    Format information that describes the list of objects. If it is a CSV file, this element describes the fields contained in the manifest.
    location CosBatchManifestLocation
    The location information of the list of objects.
    spec CosBatchManifestSpec
    Format information that describes the list of objects. If it is a CSV file, this element describes the fields contained in the manifest.
    location CosBatchManifestLocation
    The location information of the list of objects.
    spec CosBatchManifestSpec
    Format information that describes the list of objects. If it is a CSV file, this element describes the fields contained in the manifest.
    location Property Map
    The location information of the list of objects.
    spec Property Map
    Format information that describes the list of objects. If it is a CSV file, this element describes the fields contained in the manifest.

    CosBatchManifestLocation, CosBatchManifestLocationArgs

    Etag string
    Specifies the etag of the object list. Length 1-1024 bytes.
    ObjectArn string
    Specifies the unique resource identifier of the object manifest, which is 1-1024 bytes long.
    ObjectVersionId string
    Specifies the version of the object manifest ID, which is 1-1024 bytes long.
    Etag string
    Specifies the etag of the object list. Length 1-1024 bytes.
    ObjectArn string
    Specifies the unique resource identifier of the object manifest, which is 1-1024 bytes long.
    ObjectVersionId string
    Specifies the version of the object manifest ID, which is 1-1024 bytes long.
    etag String
    Specifies the etag of the object list. Length 1-1024 bytes.
    objectArn String
    Specifies the unique resource identifier of the object manifest, which is 1-1024 bytes long.
    objectVersionId String
    Specifies the version of the object manifest ID, which is 1-1024 bytes long.
    etag string
    Specifies the etag of the object list. Length 1-1024 bytes.
    objectArn string
    Specifies the unique resource identifier of the object manifest, which is 1-1024 bytes long.
    objectVersionId string
    Specifies the version of the object manifest ID, which is 1-1024 bytes long.
    etag str
    Specifies the etag of the object list. Length 1-1024 bytes.
    object_arn str
    Specifies the unique resource identifier of the object manifest, which is 1-1024 bytes long.
    object_version_id str
    Specifies the version of the object manifest ID, which is 1-1024 bytes long.
    etag String
    Specifies the etag of the object list. Length 1-1024 bytes.
    objectArn String
    Specifies the unique resource identifier of the object manifest, which is 1-1024 bytes long.
    objectVersionId String
    Specifies the version of the object manifest ID, which is 1-1024 bytes long.

    CosBatchManifestSpec, CosBatchManifestSpecArgs

    Format string
    Specifies the format information for the list of objects. Legal fields are: COSBatchOperations_CSV_V1, COSInventoryReport_CSV_V1.
    Fields List<string>
    Describes the fields contained in the listing, which you need to use to specify CSV file fields when Format is COSBatchOperations_CSV_V1. Legal fields are: Ignore, Bucket, Key, VersionId.
    Format string
    Specifies the format information for the list of objects. Legal fields are: COSBatchOperations_CSV_V1, COSInventoryReport_CSV_V1.
    Fields []string
    Describes the fields contained in the listing, which you need to use to specify CSV file fields when Format is COSBatchOperations_CSV_V1. Legal fields are: Ignore, Bucket, Key, VersionId.
    format String
    Specifies the format information for the list of objects. Legal fields are: COSBatchOperations_CSV_V1, COSInventoryReport_CSV_V1.
    fields List<String>
    Describes the fields contained in the listing, which you need to use to specify CSV file fields when Format is COSBatchOperations_CSV_V1. Legal fields are: Ignore, Bucket, Key, VersionId.
    format string
    Specifies the format information for the list of objects. Legal fields are: COSBatchOperations_CSV_V1, COSInventoryReport_CSV_V1.
    fields string[]
    Describes the fields contained in the listing, which you need to use to specify CSV file fields when Format is COSBatchOperations_CSV_V1. Legal fields are: Ignore, Bucket, Key, VersionId.
    format str
    Specifies the format information for the list of objects. Legal fields are: COSBatchOperations_CSV_V1, COSInventoryReport_CSV_V1.
    fields Sequence[str]
    Describes the fields contained in the listing, which you need to use to specify CSV file fields when Format is COSBatchOperations_CSV_V1. Legal fields are: Ignore, Bucket, Key, VersionId.
    format String
    Specifies the format information for the list of objects. Legal fields are: COSBatchOperations_CSV_V1, COSInventoryReport_CSV_V1.
    fields List<String>
    Describes the fields contained in the listing, which you need to use to specify CSV file fields when Format is COSBatchOperations_CSV_V1. Legal fields are: Ignore, Bucket, Key, VersionId.

    CosBatchOperation, CosBatchOperationArgs

    CosInitiateRestoreObject CosBatchOperationCosInitiateRestoreObject
    Specifies the specific parameters for the batch restore operation for archive storage type objects in the inventory.
    CosPutObjectCopy CosBatchOperationCosPutObjectCopy
    Specifies the specific parameters for the batch copy operation on the objects in the list.
    CosInitiateRestoreObject CosBatchOperationCosInitiateRestoreObject
    Specifies the specific parameters for the batch restore operation for archive storage type objects in the inventory.
    CosPutObjectCopy CosBatchOperationCosPutObjectCopy
    Specifies the specific parameters for the batch copy operation on the objects in the list.
    cosInitiateRestoreObject CosBatchOperationCosInitiateRestoreObject
    Specifies the specific parameters for the batch restore operation for archive storage type objects in the inventory.
    cosPutObjectCopy CosBatchOperationCosPutObjectCopy
    Specifies the specific parameters for the batch copy operation on the objects in the list.
    cosInitiateRestoreObject CosBatchOperationCosInitiateRestoreObject
    Specifies the specific parameters for the batch restore operation for archive storage type objects in the inventory.
    cosPutObjectCopy CosBatchOperationCosPutObjectCopy
    Specifies the specific parameters for the batch copy operation on the objects in the list.
    cos_initiate_restore_object CosBatchOperationCosInitiateRestoreObject
    Specifies the specific parameters for the batch restore operation for archive storage type objects in the inventory.
    cos_put_object_copy CosBatchOperationCosPutObjectCopy
    Specifies the specific parameters for the batch copy operation on the objects in the list.
    cosInitiateRestoreObject Property Map
    Specifies the specific parameters for the batch restore operation for archive storage type objects in the inventory.
    cosPutObjectCopy Property Map
    Specifies the specific parameters for the batch copy operation on the objects in the list.

    CosBatchOperationCosInitiateRestoreObject, CosBatchOperationCosInitiateRestoreObjectArgs

    ExpirationInDays double
    Sets the number of days after which the copy will be automatically expired and deleted, an integer in the range of 1-365.
    JobTier string
    Select archive recovery model. Available values: Bulk, Standard.
    ExpirationInDays float64
    Sets the number of days after which the copy will be automatically expired and deleted, an integer in the range of 1-365.
    JobTier string
    Select archive recovery model. Available values: Bulk, Standard.
    expirationInDays Double
    Sets the number of days after which the copy will be automatically expired and deleted, an integer in the range of 1-365.
    jobTier String
    Select archive recovery model. Available values: Bulk, Standard.
    expirationInDays number
    Sets the number of days after which the copy will be automatically expired and deleted, an integer in the range of 1-365.
    jobTier string
    Select archive recovery model. Available values: Bulk, Standard.
    expiration_in_days float
    Sets the number of days after which the copy will be automatically expired and deleted, an integer in the range of 1-365.
    job_tier str
    Select archive recovery model. Available values: Bulk, Standard.
    expirationInDays Number
    Sets the number of days after which the copy will be automatically expired and deleted, an integer in the range of 1-365.
    jobTier String
    Select archive recovery model. Available values: Bulk, Standard.

    CosBatchOperationCosPutObjectCopy, CosBatchOperationCosPutObjectCopyArgs

    TargetResource string
    Sets the target bucket for the Copy. Use qcs to specify, for example, qcs::cos:ap-chengdu:uid/1250000000:examplebucket-1250000000.
    AccessControlDirective string
    This element specifies how ACL is copied. Valid values:

    • Copy: inherits the source object ACL
    • Replaced: replace source ACL
    • Add: add a new ACL based on the source ACL.
    AccessControlGrants CosBatchOperationCosPutObjectCopyAccessControlGrants
    Controls the specific access to the object.
    CannedAccessControlList string
    Defines the ACL property of the object. Valid values: private, public-read.
    MetadataDirective string
    This element specifies whether to copy object metadata from the source object or replace it with metadata in the < NewObjectMetadata > element. Valid values are: Copy, Replaced, Add. Copy: inherit source object metadata; Replaced: replace source metadata; Add: add new metadata based on source metadata.
    ModifiedSinceConstraint double
    When the object is modified after the specified time, the operation is performed, otherwise 412 is returned.
    NewObjectMetadata CosBatchOperationCosPutObjectCopyNewObjectMetadata
    Configure the metadata for the object.
    NewObjectTaggings List<CosBatchOperationCosPutObjectCopyNewObjectTagging>
    The label of the configuration object, which must be specified when the < TaggingDirective > value is Replace or Add.
    PrefixReplace bool
    Specifies whether the prefix of the source object needs to be replaced. A value of true indicates the replacement object prefix, which needs to be used with and . Default value: false.
    ResourcesPrefix string
    This field is valid only when the < PrefixReplace > value is true. Specify the source object prefix to be replaced, and the replacement directory should end with /. Can be empty with a maximum length of 1024 bytes.
    StorageClass string
    Sets the storage level of the object. Enumerated value: STANDARD,STANDARD_IA. Default value: STANDARD.
    TaggingDirective string
    This element specifies whether to copy the object tag from the source object or replace it with the tag in the < NewObjectTagging > element. Valid values are: Copy, Replaced, Add. Copy: inherits the source object tag; Replaced: replaces the source tag; Add: adds a new tag based on the source tag.
    TargetKeyPrefix string
    This field is valid only when the value is true. This value represents the replaced prefix, and the replacement directory should end with /. Can be empty with a maximum length of 1024 bytes.
    UnmodifiedSinceConstraint double
    When the object has not been modified after the specified time, the operation is performed, otherwise 412 is returned.
    TargetResource string
    Sets the target bucket for the Copy. Use qcs to specify, for example, qcs::cos:ap-chengdu:uid/1250000000:examplebucket-1250000000.
    AccessControlDirective string
    This element specifies how ACL is copied. Valid values:

    • Copy: inherits the source object ACL
    • Replaced: replace source ACL
    • Add: add a new ACL based on the source ACL.
    AccessControlGrants CosBatchOperationCosPutObjectCopyAccessControlGrants
    Controls the specific access to the object.
    CannedAccessControlList string
    Defines the ACL property of the object. Valid values: private, public-read.
    MetadataDirective string
    This element specifies whether to copy object metadata from the source object or replace it with metadata in the < NewObjectMetadata > element. Valid values are: Copy, Replaced, Add. Copy: inherit source object metadata; Replaced: replace source metadata; Add: add new metadata based on source metadata.
    ModifiedSinceConstraint float64
    When the object is modified after the specified time, the operation is performed, otherwise 412 is returned.
    NewObjectMetadata CosBatchOperationCosPutObjectCopyNewObjectMetadata
    Configure the metadata for the object.
    NewObjectTaggings []CosBatchOperationCosPutObjectCopyNewObjectTagging
    The label of the configuration object, which must be specified when the < TaggingDirective > value is Replace or Add.
    PrefixReplace bool
    Specifies whether the prefix of the source object needs to be replaced. A value of true indicates the replacement object prefix, which needs to be used with and . Default value: false.
    ResourcesPrefix string
    This field is valid only when the < PrefixReplace > value is true. Specify the source object prefix to be replaced, and the replacement directory should end with /. Can be empty with a maximum length of 1024 bytes.
    StorageClass string
    Sets the storage level of the object. Enumerated value: STANDARD,STANDARD_IA. Default value: STANDARD.
    TaggingDirective string
    This element specifies whether to copy the object tag from the source object or replace it with the tag in the < NewObjectTagging > element. Valid values are: Copy, Replaced, Add. Copy: inherits the source object tag; Replaced: replaces the source tag; Add: adds a new tag based on the source tag.
    TargetKeyPrefix string
    This field is valid only when the value is true. This value represents the replaced prefix, and the replacement directory should end with /. Can be empty with a maximum length of 1024 bytes.
    UnmodifiedSinceConstraint float64
    When the object has not been modified after the specified time, the operation is performed, otherwise 412 is returned.
    targetResource String
    Sets the target bucket for the Copy. Use qcs to specify, for example, qcs::cos:ap-chengdu:uid/1250000000:examplebucket-1250000000.
    accessControlDirective String
    This element specifies how ACL is copied. Valid values:

    • Copy: inherits the source object ACL
    • Replaced: replace source ACL
    • Add: add a new ACL based on the source ACL.
    accessControlGrants CosBatchOperationCosPutObjectCopyAccessControlGrants
    Controls the specific access to the object.
    cannedAccessControlList String
    Defines the ACL property of the object. Valid values: private, public-read.
    metadataDirective String
    This element specifies whether to copy object metadata from the source object or replace it with metadata in the < NewObjectMetadata > element. Valid values are: Copy, Replaced, Add. Copy: inherit source object metadata; Replaced: replace source metadata; Add: add new metadata based on source metadata.
    modifiedSinceConstraint Double
    When the object is modified after the specified time, the operation is performed, otherwise 412 is returned.
    newObjectMetadata CosBatchOperationCosPutObjectCopyNewObjectMetadata
    Configure the metadata for the object.
    newObjectTaggings List<CosBatchOperationCosPutObjectCopyNewObjectTagging>
    The label of the configuration object, which must be specified when the < TaggingDirective > value is Replace or Add.
    prefixReplace Boolean
    Specifies whether the prefix of the source object needs to be replaced. A value of true indicates the replacement object prefix, which needs to be used with and . Default value: false.
    resourcesPrefix String
    This field is valid only when the < PrefixReplace > value is true. Specify the source object prefix to be replaced, and the replacement directory should end with /. Can be empty with a maximum length of 1024 bytes.
    storageClass String
    Sets the storage level of the object. Enumerated value: STANDARD,STANDARD_IA. Default value: STANDARD.
    taggingDirective String
    This element specifies whether to copy the object tag from the source object or replace it with the tag in the < NewObjectTagging > element. Valid values are: Copy, Replaced, Add. Copy: inherits the source object tag; Replaced: replaces the source tag; Add: adds a new tag based on the source tag.
    targetKeyPrefix String
    This field is valid only when the value is true. This value represents the replaced prefix, and the replacement directory should end with /. Can be empty with a maximum length of 1024 bytes.
    unmodifiedSinceConstraint Double
    When the object has not been modified after the specified time, the operation is performed, otherwise 412 is returned.
    targetResource string
    Sets the target bucket for the Copy. Use qcs to specify, for example, qcs::cos:ap-chengdu:uid/1250000000:examplebucket-1250000000.
    accessControlDirective string
    This element specifies how ACL is copied. Valid values:

    • Copy: inherits the source object ACL
    • Replaced: replace source ACL
    • Add: add a new ACL based on the source ACL.
    accessControlGrants CosBatchOperationCosPutObjectCopyAccessControlGrants
    Controls the specific access to the object.
    cannedAccessControlList string
    Defines the ACL property of the object. Valid values: private, public-read.
    metadataDirective string
    This element specifies whether to copy object metadata from the source object or replace it with metadata in the < NewObjectMetadata > element. Valid values are: Copy, Replaced, Add. Copy: inherit source object metadata; Replaced: replace source metadata; Add: add new metadata based on source metadata.
    modifiedSinceConstraint number
    When the object is modified after the specified time, the operation is performed, otherwise 412 is returned.
    newObjectMetadata CosBatchOperationCosPutObjectCopyNewObjectMetadata
    Configure the metadata for the object.
    newObjectTaggings CosBatchOperationCosPutObjectCopyNewObjectTagging[]
    The label of the configuration object, which must be specified when the < TaggingDirective > value is Replace or Add.
    prefixReplace boolean
    Specifies whether the prefix of the source object needs to be replaced. A value of true indicates the replacement object prefix, which needs to be used with and . Default value: false.
    resourcesPrefix string
    This field is valid only when the < PrefixReplace > value is true. Specify the source object prefix to be replaced, and the replacement directory should end with /. Can be empty with a maximum length of 1024 bytes.
    storageClass string
    Sets the storage level of the object. Enumerated value: STANDARD,STANDARD_IA. Default value: STANDARD.
    taggingDirective string
    This element specifies whether to copy the object tag from the source object or replace it with the tag in the < NewObjectTagging > element. Valid values are: Copy, Replaced, Add. Copy: inherits the source object tag; Replaced: replaces the source tag; Add: adds a new tag based on the source tag.
    targetKeyPrefix string
    This field is valid only when the value is true. This value represents the replaced prefix, and the replacement directory should end with /. Can be empty with a maximum length of 1024 bytes.
    unmodifiedSinceConstraint number
    When the object has not been modified after the specified time, the operation is performed, otherwise 412 is returned.
    target_resource str
    Sets the target bucket for the Copy. Use qcs to specify, for example, qcs::cos:ap-chengdu:uid/1250000000:examplebucket-1250000000.
    access_control_directive str
    This element specifies how ACL is copied. Valid values:

    • Copy: inherits the source object ACL
    • Replaced: replace source ACL
    • Add: add a new ACL based on the source ACL.
    access_control_grants CosBatchOperationCosPutObjectCopyAccessControlGrants
    Controls the specific access to the object.
    canned_access_control_list str
    Defines the ACL property of the object. Valid values: private, public-read.
    metadata_directive str
    This element specifies whether to copy object metadata from the source object or replace it with metadata in the < NewObjectMetadata > element. Valid values are: Copy, Replaced, Add. Copy: inherit source object metadata; Replaced: replace source metadata; Add: add new metadata based on source metadata.
    modified_since_constraint float
    When the object is modified after the specified time, the operation is performed, otherwise 412 is returned.
    new_object_metadata CosBatchOperationCosPutObjectCopyNewObjectMetadata
    Configure the metadata for the object.
    new_object_taggings Sequence[CosBatchOperationCosPutObjectCopyNewObjectTagging]
    The label of the configuration object, which must be specified when the < TaggingDirective > value is Replace or Add.
    prefix_replace bool
    Specifies whether the prefix of the source object needs to be replaced. A value of true indicates the replacement object prefix, which needs to be used with and . Default value: false.
    resources_prefix str
    This field is valid only when the < PrefixReplace > value is true. Specify the source object prefix to be replaced, and the replacement directory should end with /. Can be empty with a maximum length of 1024 bytes.
    storage_class str
    Sets the storage level of the object. Enumerated value: STANDARD,STANDARD_IA. Default value: STANDARD.
    tagging_directive str
    This element specifies whether to copy the object tag from the source object or replace it with the tag in the < NewObjectTagging > element. Valid values are: Copy, Replaced, Add. Copy: inherits the source object tag; Replaced: replaces the source tag; Add: adds a new tag based on the source tag.
    target_key_prefix str
    This field is valid only when the value is true. This value represents the replaced prefix, and the replacement directory should end with /. Can be empty with a maximum length of 1024 bytes.
    unmodified_since_constraint float
    When the object has not been modified after the specified time, the operation is performed, otherwise 412 is returned.
    targetResource String
    Sets the target bucket for the Copy. Use qcs to specify, for example, qcs::cos:ap-chengdu:uid/1250000000:examplebucket-1250000000.
    accessControlDirective String
    This element specifies how ACL is copied. Valid values:

    • Copy: inherits the source object ACL
    • Replaced: replace source ACL
    • Add: add a new ACL based on the source ACL.
    accessControlGrants Property Map
    Controls the specific access to the object.
    cannedAccessControlList String
    Defines the ACL property of the object. Valid values: private, public-read.
    metadataDirective String
    This element specifies whether to copy object metadata from the source object or replace it with metadata in the < NewObjectMetadata > element. Valid values are: Copy, Replaced, Add. Copy: inherit source object metadata; Replaced: replace source metadata; Add: add new metadata based on source metadata.
    modifiedSinceConstraint Number
    When the object is modified after the specified time, the operation is performed, otherwise 412 is returned.
    newObjectMetadata Property Map
    Configure the metadata for the object.
    newObjectTaggings List<Property Map>
    The label of the configuration object, which must be specified when the < TaggingDirective > value is Replace or Add.
    prefixReplace Boolean
    Specifies whether the prefix of the source object needs to be replaced. A value of true indicates the replacement object prefix, which needs to be used with and . Default value: false.
    resourcesPrefix String
    This field is valid only when the < PrefixReplace > value is true. Specify the source object prefix to be replaced, and the replacement directory should end with /. Can be empty with a maximum length of 1024 bytes.
    storageClass String
    Sets the storage level of the object. Enumerated value: STANDARD,STANDARD_IA. Default value: STANDARD.
    taggingDirective String
    This element specifies whether to copy the object tag from the source object or replace it with the tag in the < NewObjectTagging > element. Valid values are: Copy, Replaced, Add. Copy: inherits the source object tag; Replaced: replaces the source tag; Add: adds a new tag based on the source tag.
    targetKeyPrefix String
    This field is valid only when the value is true. This value represents the replaced prefix, and the replacement directory should end with /. Can be empty with a maximum length of 1024 bytes.
    unmodifiedSinceConstraint Number
    When the object has not been modified after the specified time, the operation is performed, otherwise 412 is returned.

    CosBatchOperationCosPutObjectCopyAccessControlGrants, CosBatchOperationCosPutObjectCopyAccessControlGrantsArgs

    Identifier string
    User ID (UIN) in qcs format. For example: qcs::cam::uin/100000000001:uin/100000000001.
    Permission string
    Specify a permission to be granted. Enumerated value: READ,WRITE,FULL_CONTROL.
    TypeIdentifier string
    Specifies the type of Identifier. Currently, only user ID is supported. Enumerated value: ID.
    DisplayName string
    User name.
    Identifier string
    User ID (UIN) in qcs format. For example: qcs::cam::uin/100000000001:uin/100000000001.
    Permission string
    Specify a permission to be granted. Enumerated value: READ,WRITE,FULL_CONTROL.
    TypeIdentifier string
    Specifies the type of Identifier. Currently, only user ID is supported. Enumerated value: ID.
    DisplayName string
    User name.
    identifier String
    User ID (UIN) in qcs format. For example: qcs::cam::uin/100000000001:uin/100000000001.
    permission String
    Specify a permission to be granted. Enumerated value: READ,WRITE,FULL_CONTROL.
    typeIdentifier String
    Specifies the type of Identifier. Currently, only user ID is supported. Enumerated value: ID.
    displayName String
    User name.
    identifier string
    User ID (UIN) in qcs format. For example: qcs::cam::uin/100000000001:uin/100000000001.
    permission string
    Specify a permission to be granted. Enumerated value: READ,WRITE,FULL_CONTROL.
    typeIdentifier string
    Specifies the type of Identifier. Currently, only user ID is supported. Enumerated value: ID.
    displayName string
    User name.
    identifier str
    User ID (UIN) in qcs format. For example: qcs::cam::uin/100000000001:uin/100000000001.
    permission str
    Specify a permission to be granted. Enumerated value: READ,WRITE,FULL_CONTROL.
    type_identifier str
    Specifies the type of Identifier. Currently, only user ID is supported. Enumerated value: ID.
    display_name str
    User name.
    identifier String
    User ID (UIN) in qcs format. For example: qcs::cam::uin/100000000001:uin/100000000001.
    permission String
    Specify a permission to be granted. Enumerated value: READ,WRITE,FULL_CONTROL.
    typeIdentifier String
    Specifies the type of Identifier. Currently, only user ID is supported. Enumerated value: ID.
    displayName String
    User name.

    CosBatchOperationCosPutObjectCopyNewObjectMetadata, CosBatchOperationCosPutObjectCopyNewObjectMetadataArgs

    CacheControl string
    The caching instructions defined in RFC 2616 are saved as object metadata.
    ContentDisposition string
    The file name defined in RFC 2616 is saved as object metadata.
    ContentEncoding string
    The encoding format defined in RFC 2616 is saved as object metadata.
    ContentType string
    The content types defined in RFC 2616 are saved as object metadata.
    HttpExpiresDate string
    The cache expiration time defined in RFC 2616 is saved as object metadata.
    SseAlgorithm string
    Server encryption algorithm. Currently, only AES256 is supported.
    UserMetadatas List<CosBatchOperationCosPutObjectCopyNewObjectMetadataUserMetadata>
    Includes user-defined metadata.
    CacheControl string
    The caching instructions defined in RFC 2616 are saved as object metadata.
    ContentDisposition string
    The file name defined in RFC 2616 is saved as object metadata.
    ContentEncoding string
    The encoding format defined in RFC 2616 is saved as object metadata.
    ContentType string
    The content types defined in RFC 2616 are saved as object metadata.
    HttpExpiresDate string
    The cache expiration time defined in RFC 2616 is saved as object metadata.
    SseAlgorithm string
    Server encryption algorithm. Currently, only AES256 is supported.
    UserMetadatas []CosBatchOperationCosPutObjectCopyNewObjectMetadataUserMetadata
    Includes user-defined metadata.
    cacheControl String
    The caching instructions defined in RFC 2616 are saved as object metadata.
    contentDisposition String
    The file name defined in RFC 2616 is saved as object metadata.
    contentEncoding String
    The encoding format defined in RFC 2616 is saved as object metadata.
    contentType String
    The content types defined in RFC 2616 are saved as object metadata.
    httpExpiresDate String
    The cache expiration time defined in RFC 2616 is saved as object metadata.
    sseAlgorithm String
    Server encryption algorithm. Currently, only AES256 is supported.
    userMetadatas List<CosBatchOperationCosPutObjectCopyNewObjectMetadataUserMetadata>
    Includes user-defined metadata.
    cacheControl string
    The caching instructions defined in RFC 2616 are saved as object metadata.
    contentDisposition string
    The file name defined in RFC 2616 is saved as object metadata.
    contentEncoding string
    The encoding format defined in RFC 2616 is saved as object metadata.
    contentType string
    The content types defined in RFC 2616 are saved as object metadata.
    httpExpiresDate string
    The cache expiration time defined in RFC 2616 is saved as object metadata.
    sseAlgorithm string
    Server encryption algorithm. Currently, only AES256 is supported.
    userMetadatas CosBatchOperationCosPutObjectCopyNewObjectMetadataUserMetadata[]
    Includes user-defined metadata.
    cache_control str
    The caching instructions defined in RFC 2616 are saved as object metadata.
    content_disposition str
    The file name defined in RFC 2616 is saved as object metadata.
    content_encoding str
    The encoding format defined in RFC 2616 is saved as object metadata.
    content_type str
    The content types defined in RFC 2616 are saved as object metadata.
    http_expires_date str
    The cache expiration time defined in RFC 2616 is saved as object metadata.
    sse_algorithm str
    Server encryption algorithm. Currently, only AES256 is supported.
    user_metadatas Sequence[CosBatchOperationCosPutObjectCopyNewObjectMetadataUserMetadata]
    Includes user-defined metadata.
    cacheControl String
    The caching instructions defined in RFC 2616 are saved as object metadata.
    contentDisposition String
    The file name defined in RFC 2616 is saved as object metadata.
    contentEncoding String
    The encoding format defined in RFC 2616 is saved as object metadata.
    contentType String
    The content types defined in RFC 2616 are saved as object metadata.
    httpExpiresDate String
    The cache expiration time defined in RFC 2616 is saved as object metadata.
    sseAlgorithm String
    Server encryption algorithm. Currently, only AES256 is supported.
    userMetadatas List<Property Map>
    Includes user-defined metadata.

    CosBatchOperationCosPutObjectCopyNewObjectMetadataUserMetadata, CosBatchOperationCosPutObjectCopyNewObjectMetadataUserMetadataArgs

    Key string
    key.
    Value string
    value.
    Key string
    key.
    Value string
    value.
    key String
    key.
    value String
    value.
    key string
    key.
    value string
    value.
    key str
    key.
    value str
    value.
    key String
    key.
    value String
    value.

    CosBatchOperationCosPutObjectCopyNewObjectTagging, CosBatchOperationCosPutObjectCopyNewObjectTaggingArgs

    Key string
    key.
    Value string
    value.
    Key string
    key.
    Value string
    value.
    key String
    key.
    value String
    value.
    key string
    key.
    value string
    value.
    key str
    key.
    value str
    value.
    key String
    key.
    value String
    value.

    CosBatchReport, CosBatchReportArgs

    Bucket string
    Delivery bucket for task completion reports.
    Enabled string
    Whether to output the task completion report.
    Format string
    Task completion report format information. Legal value: Report_CSV_V1.
    ReportScope string
    Task completion report the task information that needs to be recorded to determine whether to record the execution information of all operations or the information of failed operations. Legal values: AllTasks, FailedTasksOnly.
    Prefix string
    Prefix information for the task completion report. Length 0-256 bytes.
    Bucket string
    Delivery bucket for task completion reports.
    Enabled string
    Whether to output the task completion report.
    Format string
    Task completion report format information. Legal value: Report_CSV_V1.
    ReportScope string
    Task completion report the task information that needs to be recorded to determine whether to record the execution information of all operations or the information of failed operations. Legal values: AllTasks, FailedTasksOnly.
    Prefix string
    Prefix information for the task completion report. Length 0-256 bytes.
    bucket String
    Delivery bucket for task completion reports.
    enabled String
    Whether to output the task completion report.
    format String
    Task completion report format information. Legal value: Report_CSV_V1.
    reportScope String
    Task completion report the task information that needs to be recorded to determine whether to record the execution information of all operations or the information of failed operations. Legal values: AllTasks, FailedTasksOnly.
    prefix String
    Prefix information for the task completion report. Length 0-256 bytes.
    bucket string
    Delivery bucket for task completion reports.
    enabled string
    Whether to output the task completion report.
    format string
    Task completion report format information. Legal value: Report_CSV_V1.
    reportScope string
    Task completion report the task information that needs to be recorded to determine whether to record the execution information of all operations or the information of failed operations. Legal values: AllTasks, FailedTasksOnly.
    prefix string
    Prefix information for the task completion report. Length 0-256 bytes.
    bucket str
    Delivery bucket for task completion reports.
    enabled str
    Whether to output the task completion report.
    format str
    Task completion report format information. Legal value: Report_CSV_V1.
    report_scope str
    Task completion report the task information that needs to be recorded to determine whether to record the execution information of all operations or the information of failed operations. Legal values: AllTasks, FailedTasksOnly.
    prefix str
    Prefix information for the task completion report. Length 0-256 bytes.
    bucket String
    Delivery bucket for task completion reports.
    enabled String
    Whether to output the task completion report.
    format String
    Task completion report format information. Legal value: Report_CSV_V1.
    reportScope String
    Task completion report the task information that needs to be recorded to determine whether to record the execution information of all operations or the information of failed operations. Legal values: AllTasks, FailedTasksOnly.
    prefix String
    Prefix information for the task completion report. Length 0-256 bytes.

    Import

    cos bucket batch can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/cosBatch:CosBatch cos_batch ${uin}#${appid}#{job_id}
    

    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.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack