gcp.storage.BatchOperationsJob
Explore with Pulumi AI
Storage Batch Operations (SBO) is a Cloud Storage management feature that offers a seamless experience to perform single batch operations on millions of GCS objects in a serverless manner.
Example Usage
Storage Batch Operations
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const bucket = new gcp.storage.Bucket("bucket", {
name: "tf-sample-bucket",
location: "us-central1",
forceDestroy: true,
});
const tf_job = new gcp.storage.BatchOperationsJob("tf-job", {
jobId: "tf-job",
bucketList: {
buckets: {
bucket: bucket.name,
prefixList: {
includedObjectPrefixes: ["bkt"],
},
},
},
putMetadata: {
customMetadata: {
key: "value",
},
},
deleteProtection: false,
});
import pulumi
import pulumi_gcp as gcp
bucket = gcp.storage.Bucket("bucket",
name="tf-sample-bucket",
location="us-central1",
force_destroy=True)
tf_job = gcp.storage.BatchOperationsJob("tf-job",
job_id="tf-job",
bucket_list={
"buckets": {
"bucket": bucket.name,
"prefix_list": {
"included_object_prefixes": ["bkt"],
},
},
},
put_metadata={
"custom_metadata": {
"key": "value",
},
},
delete_protection=False)
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/storage"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
bucket, err := storage.NewBucket(ctx, "bucket", &storage.BucketArgs{
Name: pulumi.String("tf-sample-bucket"),
Location: pulumi.String("us-central1"),
ForceDestroy: pulumi.Bool(true),
})
if err != nil {
return err
}
_, err = storage.NewBatchOperationsJob(ctx, "tf-job", &storage.BatchOperationsJobArgs{
JobId: pulumi.String("tf-job"),
BucketList: &storage.BatchOperationsJobBucketListArgs{
Buckets: &storage.BatchOperationsJobBucketListBucketsArgs{
Bucket: bucket.Name,
PrefixList: &storage.BatchOperationsJobBucketListBucketsPrefixListArgs{
IncludedObjectPrefixes: pulumi.StringArray{
pulumi.String("bkt"),
},
},
},
},
PutMetadata: &storage.BatchOperationsJobPutMetadataArgs{
CustomMetadata: pulumi.StringMap{
"key": pulumi.String("value"),
},
},
DeleteProtection: pulumi.Bool(false),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var bucket = new Gcp.Storage.Bucket("bucket", new()
{
Name = "tf-sample-bucket",
Location = "us-central1",
ForceDestroy = true,
});
var tf_job = new Gcp.Storage.BatchOperationsJob("tf-job", new()
{
JobId = "tf-job",
BucketList = new Gcp.Storage.Inputs.BatchOperationsJobBucketListArgs
{
Buckets = new Gcp.Storage.Inputs.BatchOperationsJobBucketListBucketsArgs
{
Bucket = bucket.Name,
PrefixList = new Gcp.Storage.Inputs.BatchOperationsJobBucketListBucketsPrefixListArgs
{
IncludedObjectPrefixes = new[]
{
"bkt",
},
},
},
},
PutMetadata = new Gcp.Storage.Inputs.BatchOperationsJobPutMetadataArgs
{
CustomMetadata =
{
{ "key", "value" },
},
},
DeleteProtection = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.storage.Bucket;
import com.pulumi.gcp.storage.BucketArgs;
import com.pulumi.gcp.storage.BatchOperationsJob;
import com.pulumi.gcp.storage.BatchOperationsJobArgs;
import com.pulumi.gcp.storage.inputs.BatchOperationsJobBucketListArgs;
import com.pulumi.gcp.storage.inputs.BatchOperationsJobBucketListBucketsArgs;
import com.pulumi.gcp.storage.inputs.BatchOperationsJobBucketListBucketsPrefixListArgs;
import com.pulumi.gcp.storage.inputs.BatchOperationsJobPutMetadataArgs;
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 bucket = new Bucket("bucket", BucketArgs.builder()
.name("tf-sample-bucket")
.location("us-central1")
.forceDestroy(true)
.build());
var tf_job = new BatchOperationsJob("tf-job", BatchOperationsJobArgs.builder()
.jobId("tf-job")
.bucketList(BatchOperationsJobBucketListArgs.builder()
.buckets(BatchOperationsJobBucketListBucketsArgs.builder()
.bucket(bucket.name())
.prefixList(BatchOperationsJobBucketListBucketsPrefixListArgs.builder()
.includedObjectPrefixes("bkt")
.build())
.build())
.build())
.putMetadata(BatchOperationsJobPutMetadataArgs.builder()
.customMetadata(Map.of("key", "value"))
.build())
.deleteProtection(false)
.build());
}
}
resources:
bucket:
type: gcp:storage:Bucket
properties:
name: tf-sample-bucket
location: us-central1
forceDestroy: true
tf-job:
type: gcp:storage:BatchOperationsJob
properties:
jobId: tf-job
bucketList:
buckets:
bucket: ${bucket.name}
prefixList:
includedObjectPrefixes:
- bkt
putMetadata:
customMetadata:
key: value
deleteProtection: false
Create BatchOperationsJob Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BatchOperationsJob(name: string, args?: BatchOperationsJobArgs, opts?: CustomResourceOptions);
@overload
def BatchOperationsJob(resource_name: str,
args: Optional[BatchOperationsJobArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def BatchOperationsJob(resource_name: str,
opts: Optional[ResourceOptions] = None,
bucket_list: Optional[BatchOperationsJobBucketListArgs] = None,
delete_object: Optional[BatchOperationsJobDeleteObjectArgs] = None,
delete_protection: Optional[bool] = None,
job_id: Optional[str] = None,
project: Optional[str] = None,
put_metadata: Optional[BatchOperationsJobPutMetadataArgs] = None,
put_object_hold: Optional[BatchOperationsJobPutObjectHoldArgs] = None,
rewrite_object: Optional[BatchOperationsJobRewriteObjectArgs] = None)
func NewBatchOperationsJob(ctx *Context, name string, args *BatchOperationsJobArgs, opts ...ResourceOption) (*BatchOperationsJob, error)
public BatchOperationsJob(string name, BatchOperationsJobArgs? args = null, CustomResourceOptions? opts = null)
public BatchOperationsJob(String name, BatchOperationsJobArgs args)
public BatchOperationsJob(String name, BatchOperationsJobArgs args, CustomResourceOptions options)
type: gcp:storage:BatchOperationsJob
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 BatchOperationsJobArgs
- 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 BatchOperationsJobArgs
- 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 BatchOperationsJobArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BatchOperationsJobArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BatchOperationsJobArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var batchOperationsJobResource = new Gcp.Storage.BatchOperationsJob("batchOperationsJobResource", new()
{
BucketList = new Gcp.Storage.Inputs.BatchOperationsJobBucketListArgs
{
Buckets = new Gcp.Storage.Inputs.BatchOperationsJobBucketListBucketsArgs
{
Bucket = "string",
Manifest = new Gcp.Storage.Inputs.BatchOperationsJobBucketListBucketsManifestArgs
{
ManifestLocation = "string",
},
PrefixList = new Gcp.Storage.Inputs.BatchOperationsJobBucketListBucketsPrefixListArgs
{
IncludedObjectPrefixes = new[]
{
"string",
},
},
},
},
DeleteObject = new Gcp.Storage.Inputs.BatchOperationsJobDeleteObjectArgs
{
PermanentObjectDeletionEnabled = false,
},
DeleteProtection = false,
JobId = "string",
Project = "string",
PutMetadata = new Gcp.Storage.Inputs.BatchOperationsJobPutMetadataArgs
{
CacheControl = "string",
ContentDisposition = "string",
ContentEncoding = "string",
ContentLanguage = "string",
ContentType = "string",
CustomMetadata =
{
{ "string", "string" },
},
CustomTime = "string",
},
PutObjectHold = new Gcp.Storage.Inputs.BatchOperationsJobPutObjectHoldArgs
{
EventBasedHold = "string",
TemporaryHold = "string",
},
RewriteObject = new Gcp.Storage.Inputs.BatchOperationsJobRewriteObjectArgs
{
KmsKey = "string",
},
});
example, err := storage.NewBatchOperationsJob(ctx, "batchOperationsJobResource", &storage.BatchOperationsJobArgs{
BucketList: &storage.BatchOperationsJobBucketListArgs{
Buckets: &storage.BatchOperationsJobBucketListBucketsArgs{
Bucket: pulumi.String("string"),
Manifest: &storage.BatchOperationsJobBucketListBucketsManifestArgs{
ManifestLocation: pulumi.String("string"),
},
PrefixList: &storage.BatchOperationsJobBucketListBucketsPrefixListArgs{
IncludedObjectPrefixes: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
DeleteObject: &storage.BatchOperationsJobDeleteObjectArgs{
PermanentObjectDeletionEnabled: pulumi.Bool(false),
},
DeleteProtection: pulumi.Bool(false),
JobId: pulumi.String("string"),
Project: pulumi.String("string"),
PutMetadata: &storage.BatchOperationsJobPutMetadataArgs{
CacheControl: pulumi.String("string"),
ContentDisposition: pulumi.String("string"),
ContentEncoding: pulumi.String("string"),
ContentLanguage: pulumi.String("string"),
ContentType: pulumi.String("string"),
CustomMetadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
CustomTime: pulumi.String("string"),
},
PutObjectHold: &storage.BatchOperationsJobPutObjectHoldArgs{
EventBasedHold: pulumi.String("string"),
TemporaryHold: pulumi.String("string"),
},
RewriteObject: &storage.BatchOperationsJobRewriteObjectArgs{
KmsKey: pulumi.String("string"),
},
})
var batchOperationsJobResource = new BatchOperationsJob("batchOperationsJobResource", BatchOperationsJobArgs.builder()
.bucketList(BatchOperationsJobBucketListArgs.builder()
.buckets(BatchOperationsJobBucketListBucketsArgs.builder()
.bucket("string")
.manifest(BatchOperationsJobBucketListBucketsManifestArgs.builder()
.manifestLocation("string")
.build())
.prefixList(BatchOperationsJobBucketListBucketsPrefixListArgs.builder()
.includedObjectPrefixes("string")
.build())
.build())
.build())
.deleteObject(BatchOperationsJobDeleteObjectArgs.builder()
.permanentObjectDeletionEnabled(false)
.build())
.deleteProtection(false)
.jobId("string")
.project("string")
.putMetadata(BatchOperationsJobPutMetadataArgs.builder()
.cacheControl("string")
.contentDisposition("string")
.contentEncoding("string")
.contentLanguage("string")
.contentType("string")
.customMetadata(Map.of("string", "string"))
.customTime("string")
.build())
.putObjectHold(BatchOperationsJobPutObjectHoldArgs.builder()
.eventBasedHold("string")
.temporaryHold("string")
.build())
.rewriteObject(BatchOperationsJobRewriteObjectArgs.builder()
.kmsKey("string")
.build())
.build());
batch_operations_job_resource = gcp.storage.BatchOperationsJob("batchOperationsJobResource",
bucket_list={
"buckets": {
"bucket": "string",
"manifest": {
"manifest_location": "string",
},
"prefix_list": {
"included_object_prefixes": ["string"],
},
},
},
delete_object={
"permanent_object_deletion_enabled": False,
},
delete_protection=False,
job_id="string",
project="string",
put_metadata={
"cache_control": "string",
"content_disposition": "string",
"content_encoding": "string",
"content_language": "string",
"content_type": "string",
"custom_metadata": {
"string": "string",
},
"custom_time": "string",
},
put_object_hold={
"event_based_hold": "string",
"temporary_hold": "string",
},
rewrite_object={
"kms_key": "string",
})
const batchOperationsJobResource = new gcp.storage.BatchOperationsJob("batchOperationsJobResource", {
bucketList: {
buckets: {
bucket: "string",
manifest: {
manifestLocation: "string",
},
prefixList: {
includedObjectPrefixes: ["string"],
},
},
},
deleteObject: {
permanentObjectDeletionEnabled: false,
},
deleteProtection: false,
jobId: "string",
project: "string",
putMetadata: {
cacheControl: "string",
contentDisposition: "string",
contentEncoding: "string",
contentLanguage: "string",
contentType: "string",
customMetadata: {
string: "string",
},
customTime: "string",
},
putObjectHold: {
eventBasedHold: "string",
temporaryHold: "string",
},
rewriteObject: {
kmsKey: "string",
},
});
type: gcp:storage:BatchOperationsJob
properties:
bucketList:
buckets:
bucket: string
manifest:
manifestLocation: string
prefixList:
includedObjectPrefixes:
- string
deleteObject:
permanentObjectDeletionEnabled: false
deleteProtection: false
jobId: string
project: string
putMetadata:
cacheControl: string
contentDisposition: string
contentEncoding: string
contentLanguage: string
contentType: string
customMetadata:
string: string
customTime: string
putObjectHold:
eventBasedHold: string
temporaryHold: string
rewriteObject:
kmsKey: string
BatchOperationsJob 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 BatchOperationsJob resource accepts the following input properties:
- Bucket
List BatchOperations Job Bucket List - List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned Structure is documented below.
- Delete
Object BatchOperations Job Delete Object - allows batch operations to delete objects in bucket Structure is documented below.
- Delete
Protection bool - If set to
true
, the storage batch operation job will not be deleted and new job will be created. - Job
Id string - The ID of the job.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Put
Metadata BatchOperations Job Put Metadata - allows batch operations to update metadata for objects in bucket Structure is documented below.
- Put
Object BatchHold Operations Job Put Object Hold - allows to update temporary hold or eventBased hold for objects in bucket. Structure is documented below.
- Rewrite
Object BatchOperations Job Rewrite Object - allows to update encryption key for objects in bucket. Structure is documented below.
- Bucket
List BatchOperations Job Bucket List Args - List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned Structure is documented below.
- Delete
Object BatchOperations Job Delete Object Args - allows batch operations to delete objects in bucket Structure is documented below.
- Delete
Protection bool - If set to
true
, the storage batch operation job will not be deleted and new job will be created. - Job
Id string - The ID of the job.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Put
Metadata BatchOperations Job Put Metadata Args - allows batch operations to update metadata for objects in bucket Structure is documented below.
- Put
Object BatchHold Operations Job Put Object Hold Args - allows to update temporary hold or eventBased hold for objects in bucket. Structure is documented below.
- Rewrite
Object BatchOperations Job Rewrite Object Args - allows to update encryption key for objects in bucket. Structure is documented below.
- bucket
List BatchOperations Job Bucket List - List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned Structure is documented below.
- delete
Object BatchOperations Job Delete Object - allows batch operations to delete objects in bucket Structure is documented below.
- delete
Protection Boolean - If set to
true
, the storage batch operation job will not be deleted and new job will be created. - job
Id String - The ID of the job.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- put
Metadata BatchOperations Job Put Metadata - allows batch operations to update metadata for objects in bucket Structure is documented below.
- put
Object BatchHold Operations Job Put Object Hold - allows to update temporary hold or eventBased hold for objects in bucket. Structure is documented below.
- rewrite
Object BatchOperations Job Rewrite Object - allows to update encryption key for objects in bucket. Structure is documented below.
- bucket
List BatchOperations Job Bucket List - List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned Structure is documented below.
- delete
Object BatchOperations Job Delete Object - allows batch operations to delete objects in bucket Structure is documented below.
- delete
Protection boolean - If set to
true
, the storage batch operation job will not be deleted and new job will be created. - job
Id string - The ID of the job.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- put
Metadata BatchOperations Job Put Metadata - allows batch operations to update metadata for objects in bucket Structure is documented below.
- put
Object BatchHold Operations Job Put Object Hold - allows to update temporary hold or eventBased hold for objects in bucket. Structure is documented below.
- rewrite
Object BatchOperations Job Rewrite Object - allows to update encryption key for objects in bucket. Structure is documented below.
- bucket_
list BatchOperations Job Bucket List Args - List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned Structure is documented below.
- delete_
object BatchOperations Job Delete Object Args - allows batch operations to delete objects in bucket Structure is documented below.
- delete_
protection bool - If set to
true
, the storage batch operation job will not be deleted and new job will be created. - job_
id str - The ID of the job.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- put_
metadata BatchOperations Job Put Metadata Args - allows batch operations to update metadata for objects in bucket Structure is documented below.
- put_
object_ Batchhold Operations Job Put Object Hold Args - allows to update temporary hold or eventBased hold for objects in bucket. Structure is documented below.
- rewrite_
object BatchOperations Job Rewrite Object Args - allows to update encryption key for objects in bucket. Structure is documented below.
- bucket
List Property Map - List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned Structure is documented below.
- delete
Object Property Map - allows batch operations to delete objects in bucket Structure is documented below.
- delete
Protection Boolean - If set to
true
, the storage batch operation job will not be deleted and new job will be created. - job
Id String - The ID of the job.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- put
Metadata Property Map - allows batch operations to update metadata for objects in bucket Structure is documented below.
- put
Object Property MapHold - allows to update temporary hold or eventBased hold for objects in bucket. Structure is documented below.
- rewrite
Object Property Map - allows to update encryption key for objects in bucket. Structure is documented below.
Outputs
All input properties are implicitly available as output properties. Additionally, the BatchOperationsJob resource produces the following output properties:
- Complete
Time string - The time that the job was completed.
- Create
Time string - The timestamp at which this storage batch operation was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Schedule
Time string - The time that the job was scheduled.
- State string
- State of the job.
- Update
Time string - The timestamp at which this storage batch operation was most recently updated.
- Complete
Time string - The time that the job was completed.
- Create
Time string - The timestamp at which this storage batch operation was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Schedule
Time string - The time that the job was scheduled.
- State string
- State of the job.
- Update
Time string - The timestamp at which this storage batch operation was most recently updated.
- complete
Time String - The time that the job was completed.
- create
Time String - The timestamp at which this storage batch operation was created.
- id String
- The provider-assigned unique ID for this managed resource.
- schedule
Time String - The time that the job was scheduled.
- state String
- State of the job.
- update
Time String - The timestamp at which this storage batch operation was most recently updated.
- complete
Time string - The time that the job was completed.
- create
Time string - The timestamp at which this storage batch operation was created.
- id string
- The provider-assigned unique ID for this managed resource.
- schedule
Time string - The time that the job was scheduled.
- state string
- State of the job.
- update
Time string - The timestamp at which this storage batch operation was most recently updated.
- complete_
time str - The time that the job was completed.
- create_
time str - The timestamp at which this storage batch operation was created.
- id str
- The provider-assigned unique ID for this managed resource.
- schedule_
time str - The time that the job was scheduled.
- state str
- State of the job.
- update_
time str - The timestamp at which this storage batch operation was most recently updated.
- complete
Time String - The time that the job was completed.
- create
Time String - The timestamp at which this storage batch operation was created.
- id String
- The provider-assigned unique ID for this managed resource.
- schedule
Time String - The time that the job was scheduled.
- state String
- State of the job.
- update
Time String - The timestamp at which this storage batch operation was most recently updated.
Look up Existing BatchOperationsJob Resource
Get an existing BatchOperationsJob 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?: BatchOperationsJobState, opts?: CustomResourceOptions): BatchOperationsJob
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
bucket_list: Optional[BatchOperationsJobBucketListArgs] = None,
complete_time: Optional[str] = None,
create_time: Optional[str] = None,
delete_object: Optional[BatchOperationsJobDeleteObjectArgs] = None,
delete_protection: Optional[bool] = None,
job_id: Optional[str] = None,
project: Optional[str] = None,
put_metadata: Optional[BatchOperationsJobPutMetadataArgs] = None,
put_object_hold: Optional[BatchOperationsJobPutObjectHoldArgs] = None,
rewrite_object: Optional[BatchOperationsJobRewriteObjectArgs] = None,
schedule_time: Optional[str] = None,
state: Optional[str] = None,
update_time: Optional[str] = None) -> BatchOperationsJob
func GetBatchOperationsJob(ctx *Context, name string, id IDInput, state *BatchOperationsJobState, opts ...ResourceOption) (*BatchOperationsJob, error)
public static BatchOperationsJob Get(string name, Input<string> id, BatchOperationsJobState? state, CustomResourceOptions? opts = null)
public static BatchOperationsJob get(String name, Output<String> id, BatchOperationsJobState state, CustomResourceOptions options)
resources: _: type: gcp:storage:BatchOperationsJob 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.
- Bucket
List BatchOperations Job Bucket List - List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned Structure is documented below.
- Complete
Time string - The time that the job was completed.
- Create
Time string - The timestamp at which this storage batch operation was created.
- Delete
Object BatchOperations Job Delete Object - allows batch operations to delete objects in bucket Structure is documented below.
- Delete
Protection bool - If set to
true
, the storage batch operation job will not be deleted and new job will be created. - Job
Id string - The ID of the job.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Put
Metadata BatchOperations Job Put Metadata - allows batch operations to update metadata for objects in bucket Structure is documented below.
- Put
Object BatchHold Operations Job Put Object Hold - allows to update temporary hold or eventBased hold for objects in bucket. Structure is documented below.
- Rewrite
Object BatchOperations Job Rewrite Object - allows to update encryption key for objects in bucket. Structure is documented below.
- Schedule
Time string - The time that the job was scheduled.
- State string
- State of the job.
- Update
Time string - The timestamp at which this storage batch operation was most recently updated.
- Bucket
List BatchOperations Job Bucket List Args - List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned Structure is documented below.
- Complete
Time string - The time that the job was completed.
- Create
Time string - The timestamp at which this storage batch operation was created.
- Delete
Object BatchOperations Job Delete Object Args - allows batch operations to delete objects in bucket Structure is documented below.
- Delete
Protection bool - If set to
true
, the storage batch operation job will not be deleted and new job will be created. - Job
Id string - The ID of the job.
- Project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- Put
Metadata BatchOperations Job Put Metadata Args - allows batch operations to update metadata for objects in bucket Structure is documented below.
- Put
Object BatchHold Operations Job Put Object Hold Args - allows to update temporary hold or eventBased hold for objects in bucket. Structure is documented below.
- Rewrite
Object BatchOperations Job Rewrite Object Args - allows to update encryption key for objects in bucket. Structure is documented below.
- Schedule
Time string - The time that the job was scheduled.
- State string
- State of the job.
- Update
Time string - The timestamp at which this storage batch operation was most recently updated.
- bucket
List BatchOperations Job Bucket List - List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned Structure is documented below.
- complete
Time String - The time that the job was completed.
- create
Time String - The timestamp at which this storage batch operation was created.
- delete
Object BatchOperations Job Delete Object - allows batch operations to delete objects in bucket Structure is documented below.
- delete
Protection Boolean - If set to
true
, the storage batch operation job will not be deleted and new job will be created. - job
Id String - The ID of the job.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- put
Metadata BatchOperations Job Put Metadata - allows batch operations to update metadata for objects in bucket Structure is documented below.
- put
Object BatchHold Operations Job Put Object Hold - allows to update temporary hold or eventBased hold for objects in bucket. Structure is documented below.
- rewrite
Object BatchOperations Job Rewrite Object - allows to update encryption key for objects in bucket. Structure is documented below.
- schedule
Time String - The time that the job was scheduled.
- state String
- State of the job.
- update
Time String - The timestamp at which this storage batch operation was most recently updated.
- bucket
List BatchOperations Job Bucket List - List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned Structure is documented below.
- complete
Time string - The time that the job was completed.
- create
Time string - The timestamp at which this storage batch operation was created.
- delete
Object BatchOperations Job Delete Object - allows batch operations to delete objects in bucket Structure is documented below.
- delete
Protection boolean - If set to
true
, the storage batch operation job will not be deleted and new job will be created. - job
Id string - The ID of the job.
- project string
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- put
Metadata BatchOperations Job Put Metadata - allows batch operations to update metadata for objects in bucket Structure is documented below.
- put
Object BatchHold Operations Job Put Object Hold - allows to update temporary hold or eventBased hold for objects in bucket. Structure is documented below.
- rewrite
Object BatchOperations Job Rewrite Object - allows to update encryption key for objects in bucket. Structure is documented below.
- schedule
Time string - The time that the job was scheduled.
- state string
- State of the job.
- update
Time string - The timestamp at which this storage batch operation was most recently updated.
- bucket_
list BatchOperations Job Bucket List Args - List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned Structure is documented below.
- complete_
time str - The time that the job was completed.
- create_
time str - The timestamp at which this storage batch operation was created.
- delete_
object BatchOperations Job Delete Object Args - allows batch operations to delete objects in bucket Structure is documented below.
- delete_
protection bool - If set to
true
, the storage batch operation job will not be deleted and new job will be created. - job_
id str - The ID of the job.
- project str
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- put_
metadata BatchOperations Job Put Metadata Args - allows batch operations to update metadata for objects in bucket Structure is documented below.
- put_
object_ Batchhold Operations Job Put Object Hold Args - allows to update temporary hold or eventBased hold for objects in bucket. Structure is documented below.
- rewrite_
object BatchOperations Job Rewrite Object Args - allows to update encryption key for objects in bucket. Structure is documented below.
- schedule_
time str - The time that the job was scheduled.
- state str
- State of the job.
- update_
time str - The timestamp at which this storage batch operation was most recently updated.
- bucket
List Property Map - List of buckets and their objects to be transformed. Currently, only one bucket configuration is supported. If multiple buckets are specified, an error will be returned Structure is documented below.
- complete
Time String - The time that the job was completed.
- create
Time String - The timestamp at which this storage batch operation was created.
- delete
Object Property Map - allows batch operations to delete objects in bucket Structure is documented below.
- delete
Protection Boolean - If set to
true
, the storage batch operation job will not be deleted and new job will be created. - job
Id String - The ID of the job.
- project String
- The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
- put
Metadata Property Map - allows batch operations to update metadata for objects in bucket Structure is documented below.
- put
Object Property MapHold - allows to update temporary hold or eventBased hold for objects in bucket. Structure is documented below.
- rewrite
Object Property Map - allows to update encryption key for objects in bucket. Structure is documented below.
- schedule
Time String - The time that the job was scheduled.
- state String
- State of the job.
- update
Time String - The timestamp at which this storage batch operation was most recently updated.
Supporting Types
BatchOperationsJobBucketList, BatchOperationsJobBucketListArgs
- Buckets
Batch
Operations Job Bucket List Buckets - List of buckets and their objects to be transformed. Structure is documented below.
- Buckets
Batch
Operations Job Bucket List Buckets - List of buckets and their objects to be transformed. Structure is documented below.
- buckets
Batch
Operations Job Bucket List Buckets - List of buckets and their objects to be transformed. Structure is documented below.
- buckets
Batch
Operations Job Bucket List Buckets - List of buckets and their objects to be transformed. Structure is documented below.
- buckets
Batch
Operations Job Bucket List Buckets - List of buckets and their objects to be transformed. Structure is documented below.
- buckets Property Map
- List of buckets and their objects to be transformed. Structure is documented below.
BatchOperationsJobBucketListBuckets, BatchOperationsJobBucketListBucketsArgs
- Bucket string
- Bucket name for the objects to be transformed.
- Manifest
Batch
Operations Job Bucket List Buckets Manifest - contain the manifest source file that is a CSV file in a Google Cloud Storage bucket. Structure is documented below.
- Prefix
List BatchOperations Job Bucket List Buckets Prefix List - Specifies objects matching a prefix set. Structure is documented below.
- Bucket string
- Bucket name for the objects to be transformed.
- Manifest
Batch
Operations Job Bucket List Buckets Manifest - contain the manifest source file that is a CSV file in a Google Cloud Storage bucket. Structure is documented below.
- Prefix
List BatchOperations Job Bucket List Buckets Prefix List - Specifies objects matching a prefix set. Structure is documented below.
- bucket String
- Bucket name for the objects to be transformed.
- manifest
Batch
Operations Job Bucket List Buckets Manifest - contain the manifest source file that is a CSV file in a Google Cloud Storage bucket. Structure is documented below.
- prefix
List BatchOperations Job Bucket List Buckets Prefix List - Specifies objects matching a prefix set. Structure is documented below.
- bucket string
- Bucket name for the objects to be transformed.
- manifest
Batch
Operations Job Bucket List Buckets Manifest - contain the manifest source file that is a CSV file in a Google Cloud Storage bucket. Structure is documented below.
- prefix
List BatchOperations Job Bucket List Buckets Prefix List - Specifies objects matching a prefix set. Structure is documented below.
- bucket str
- Bucket name for the objects to be transformed.
- manifest
Batch
Operations Job Bucket List Buckets Manifest - contain the manifest source file that is a CSV file in a Google Cloud Storage bucket. Structure is documented below.
- prefix_
list BatchOperations Job Bucket List Buckets Prefix List - Specifies objects matching a prefix set. Structure is documented below.
- bucket String
- Bucket name for the objects to be transformed.
- manifest Property Map
- contain the manifest source file that is a CSV file in a Google Cloud Storage bucket. Structure is documented below.
- prefix
List Property Map - Specifies objects matching a prefix set. Structure is documented below.
BatchOperationsJobBucketListBucketsManifest, BatchOperationsJobBucketListBucketsManifestArgs
- Manifest
Location string - Specifies objects in a manifest file.
- Manifest
Location string - Specifies objects in a manifest file.
- manifest
Location String - Specifies objects in a manifest file.
- manifest
Location string - Specifies objects in a manifest file.
- manifest_
location str - Specifies objects in a manifest file.
- manifest
Location String - Specifies objects in a manifest file.
BatchOperationsJobBucketListBucketsPrefixList, BatchOperationsJobBucketListBucketsPrefixListArgs
- Included
Object List<string>Prefixes - (Optional)
- Included
Object []stringPrefixes - (Optional)
- included
Object List<String>Prefixes - (Optional)
- included
Object string[]Prefixes - (Optional)
- included_
object_ Sequence[str]prefixes - (Optional)
- included
Object List<String>Prefixes - (Optional)
BatchOperationsJobDeleteObject, BatchOperationsJobDeleteObjectArgs
- Permanent
Object boolDeletion Enabled - enable flag to permanently delete object and all object versions if versioning is enabled on bucket.
- Permanent
Object boolDeletion Enabled - enable flag to permanently delete object and all object versions if versioning is enabled on bucket.
- permanent
Object BooleanDeletion Enabled - enable flag to permanently delete object and all object versions if versioning is enabled on bucket.
- permanent
Object booleanDeletion Enabled - enable flag to permanently delete object and all object versions if versioning is enabled on bucket.
- permanent_
object_ booldeletion_ enabled - enable flag to permanently delete object and all object versions if versioning is enabled on bucket.
- permanent
Object BooleanDeletion Enabled - enable flag to permanently delete object and all object versions if versioning is enabled on bucket.
BatchOperationsJobPutMetadata, BatchOperationsJobPutMetadataArgs
- Cache
Control string - Cache-Control directive to specify caching behavior of object data. If omitted and object is accessible to all anonymous users, the default will be public, max-age=3600
- Content
Disposition string - Content-Disposition of the object data.
- Content
Encoding string - Content Encoding of the object data.
- Content
Language string - Content-Language of the object data.
- Content
Type string - Content-Type of the object data.
- Custom
Metadata Dictionary<string, string> - User-provided metadata, in key/value pairs.
- Custom
Time string - Updates the objects fixed custom time metadata.
- Cache
Control string - Cache-Control directive to specify caching behavior of object data. If omitted and object is accessible to all anonymous users, the default will be public, max-age=3600
- Content
Disposition string - Content-Disposition of the object data.
- Content
Encoding string - Content Encoding of the object data.
- Content
Language string - Content-Language of the object data.
- Content
Type string - Content-Type of the object data.
- Custom
Metadata map[string]string - User-provided metadata, in key/value pairs.
- Custom
Time string - Updates the objects fixed custom time metadata.
- cache
Control String - Cache-Control directive to specify caching behavior of object data. If omitted and object is accessible to all anonymous users, the default will be public, max-age=3600
- content
Disposition String - Content-Disposition of the object data.
- content
Encoding String - Content Encoding of the object data.
- content
Language String - Content-Language of the object data.
- content
Type String - Content-Type of the object data.
- custom
Metadata Map<String,String> - User-provided metadata, in key/value pairs.
- custom
Time String - Updates the objects fixed custom time metadata.
- cache
Control string - Cache-Control directive to specify caching behavior of object data. If omitted and object is accessible to all anonymous users, the default will be public, max-age=3600
- content
Disposition string - Content-Disposition of the object data.
- content
Encoding string - Content Encoding of the object data.
- content
Language string - Content-Language of the object data.
- content
Type string - Content-Type of the object data.
- custom
Metadata {[key: string]: string} - User-provided metadata, in key/value pairs.
- custom
Time string - Updates the objects fixed custom time metadata.
- cache_
control str - Cache-Control directive to specify caching behavior of object data. If omitted and object is accessible to all anonymous users, the default will be public, max-age=3600
- content_
disposition str - Content-Disposition of the object data.
- content_
encoding str - Content Encoding of the object data.
- content_
language str - Content-Language of the object data.
- content_
type str - Content-Type of the object data.
- custom_
metadata Mapping[str, str] - User-provided metadata, in key/value pairs.
- custom_
time str - Updates the objects fixed custom time metadata.
- cache
Control String - Cache-Control directive to specify caching behavior of object data. If omitted and object is accessible to all anonymous users, the default will be public, max-age=3600
- content
Disposition String - Content-Disposition of the object data.
- content
Encoding String - Content Encoding of the object data.
- content
Language String - Content-Language of the object data.
- content
Type String - Content-Type of the object data.
- custom
Metadata Map<String> - User-provided metadata, in key/value pairs.
- custom
Time String - Updates the objects fixed custom time metadata.
BatchOperationsJobPutObjectHold, BatchOperationsJobPutObjectHoldArgs
- Event
Based stringHold - set/unset to update event based hold for objects.
- Temporary
Hold string - set/unset to update temporary based hold for objects.
- Event
Based stringHold - set/unset to update event based hold for objects.
- Temporary
Hold string - set/unset to update temporary based hold for objects.
- event
Based StringHold - set/unset to update event based hold for objects.
- temporary
Hold String - set/unset to update temporary based hold for objects.
- event
Based stringHold - set/unset to update event based hold for objects.
- temporary
Hold string - set/unset to update temporary based hold for objects.
- event_
based_ strhold - set/unset to update event based hold for objects.
- temporary_
hold str - set/unset to update temporary based hold for objects.
- event
Based StringHold - set/unset to update event based hold for objects.
- temporary
Hold String - set/unset to update temporary based hold for objects.
BatchOperationsJobRewriteObject, BatchOperationsJobRewriteObjectArgs
- Kms
Key string - valid kms key
- Kms
Key string - valid kms key
- kms
Key String - valid kms key
- kms
Key string - valid kms key
- kms_
key str - valid kms key
- kms
Key String - valid kms key
Import
Job can be imported using any of these accepted formats:
projects/{{project}}/locations/global/jobs/{{job_id}}
{{project}}/{{job_id}}
{{job_id}}
When using the pulumi import
command, Job can be imported using one of the formats above. For example:
$ pulumi import gcp:storage/batchOperationsJob:BatchOperationsJob default projects/{{project}}/locations/global/jobs/{{job_id}}
$ pulumi import gcp:storage/batchOperationsJob:BatchOperationsJob default {{project}}/{{job_id}}
$ pulumi import gcp:storage/batchOperationsJob:BatchOperationsJob default {{job_id}}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-beta
Terraform Provider.