1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. ObsBucketReplication
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

opentelekomcloud.ObsBucketReplication

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for OBS bucket cross-region replication you can get at documentation portal

    Manages an OBS bucket Cross-Region Replication resource within OpenTelekomCloud.

    NOTE: The source bucket and destination bucket must belong to the same account. More cross-Region replication constraints see Cross-Region replication

    Example Usage

    Replicate all objects

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const bucket = config.requireObject("bucket");
    const destinationBucket = config.requireObject("destinationBucket");
    const agency = config.requireObject("agency");
    const test = new opentelekomcloud.ObsBucketReplication("test", {
        bucket: bucket,
        destinationBucket: destinationBucket,
        agency: agency,
        rules: [{
            historyEnabled: false,
            deleteData: false,
        }],
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    bucket = config.require_object("bucket")
    destination_bucket = config.require_object("destinationBucket")
    agency = config.require_object("agency")
    test = opentelekomcloud.ObsBucketReplication("test",
        bucket=bucket,
        destination_bucket=destination_bucket,
        agency=agency,
        rules=[{
            "history_enabled": False,
            "delete_data": False,
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		bucket := cfg.RequireObject("bucket")
    		destinationBucket := cfg.RequireObject("destinationBucket")
    		agency := cfg.RequireObject("agency")
    		_, err := opentelekomcloud.NewObsBucketReplication(ctx, "test", &opentelekomcloud.ObsBucketReplicationArgs{
    			Bucket:            pulumi.Any(bucket),
    			DestinationBucket: pulumi.Any(destinationBucket),
    			Agency:            pulumi.Any(agency),
    			Rules: opentelekomcloud.ObsBucketReplicationRuleArray{
    				&opentelekomcloud.ObsBucketReplicationRuleArgs{
    					HistoryEnabled: pulumi.Bool(false),
    					DeleteData:     pulumi.Bool(false),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var bucket = config.RequireObject<dynamic>("bucket");
        var destinationBucket = config.RequireObject<dynamic>("destinationBucket");
        var agency = config.RequireObject<dynamic>("agency");
        var test = new Opentelekomcloud.ObsBucketReplication("test", new()
        {
            Bucket = bucket,
            DestinationBucket = destinationBucket,
            Agency = agency,
            Rules = new[]
            {
                new Opentelekomcloud.Inputs.ObsBucketReplicationRuleArgs
                {
                    HistoryEnabled = false,
                    DeleteData = false,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.ObsBucketReplication;
    import com.pulumi.opentelekomcloud.ObsBucketReplicationArgs;
    import com.pulumi.opentelekomcloud.inputs.ObsBucketReplicationRuleArgs;
    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) {
            final var config = ctx.config();
            final var bucket = config.get("bucket");
            final var destinationBucket = config.get("destinationBucket");
            final var agency = config.get("agency");
            var test = new ObsBucketReplication("test", ObsBucketReplicationArgs.builder()
                .bucket(bucket)
                .destinationBucket(destinationBucket)
                .agency(agency)
                .rules(ObsBucketReplicationRuleArgs.builder()
                    .historyEnabled(false)
                    .deleteData(false)
                    .build())
                .build());
    
        }
    }
    
    configuration:
      bucket:
        type: dynamic
      destinationBucket:
        type: dynamic
      agency:
        type: dynamic
    resources:
      test:
        type: opentelekomcloud:ObsBucketReplication
        properties:
          bucket: ${bucket}
          destinationBucket: ${destinationBucket}
          agency: ${agency}
          rules:
            - historyEnabled: false
              deleteData: false
    

    Replicate objects matched by prefix

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const config = new pulumi.Config();
    const bucket = config.requireObject("bucket");
    const destinationBucket = config.requireObject("destinationBucket");
    const agency = config.requireObject("agency");
    const test = new opentelekomcloud.ObsBucketReplication("test", {
        bucket: bucket,
        destinationBucket: destinationBucket,
        agency: agency,
        rules: [
            {
                prefix: "log",
            },
            {
                prefix: "imgs/",
                storageClass: "COLD",
                enabled: true,
                historyEnabled: false,
                deleteData: true,
            },
        ],
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    config = pulumi.Config()
    bucket = config.require_object("bucket")
    destination_bucket = config.require_object("destinationBucket")
    agency = config.require_object("agency")
    test = opentelekomcloud.ObsBucketReplication("test",
        bucket=bucket,
        destination_bucket=destination_bucket,
        agency=agency,
        rules=[
            {
                "prefix": "log",
            },
            {
                "prefix": "imgs/",
                "storage_class": "COLD",
                "enabled": True,
                "history_enabled": False,
                "delete_data": True,
            },
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		bucket := cfg.RequireObject("bucket")
    		destinationBucket := cfg.RequireObject("destinationBucket")
    		agency := cfg.RequireObject("agency")
    		_, err := opentelekomcloud.NewObsBucketReplication(ctx, "test", &opentelekomcloud.ObsBucketReplicationArgs{
    			Bucket:            pulumi.Any(bucket),
    			DestinationBucket: pulumi.Any(destinationBucket),
    			Agency:            pulumi.Any(agency),
    			Rules: opentelekomcloud.ObsBucketReplicationRuleArray{
    				&opentelekomcloud.ObsBucketReplicationRuleArgs{
    					Prefix: pulumi.String("log"),
    				},
    				&opentelekomcloud.ObsBucketReplicationRuleArgs{
    					Prefix:         pulumi.String("imgs/"),
    					StorageClass:   pulumi.String("COLD"),
    					Enabled:        pulumi.Bool(true),
    					HistoryEnabled: pulumi.Bool(false),
    					DeleteData:     pulumi.Bool(true),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var bucket = config.RequireObject<dynamic>("bucket");
        var destinationBucket = config.RequireObject<dynamic>("destinationBucket");
        var agency = config.RequireObject<dynamic>("agency");
        var test = new Opentelekomcloud.ObsBucketReplication("test", new()
        {
            Bucket = bucket,
            DestinationBucket = destinationBucket,
            Agency = agency,
            Rules = new[]
            {
                new Opentelekomcloud.Inputs.ObsBucketReplicationRuleArgs
                {
                    Prefix = "log",
                },
                new Opentelekomcloud.Inputs.ObsBucketReplicationRuleArgs
                {
                    Prefix = "imgs/",
                    StorageClass = "COLD",
                    Enabled = true,
                    HistoryEnabled = false,
                    DeleteData = true,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.ObsBucketReplication;
    import com.pulumi.opentelekomcloud.ObsBucketReplicationArgs;
    import com.pulumi.opentelekomcloud.inputs.ObsBucketReplicationRuleArgs;
    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) {
            final var config = ctx.config();
            final var bucket = config.get("bucket");
            final var destinationBucket = config.get("destinationBucket");
            final var agency = config.get("agency");
            var test = new ObsBucketReplication("test", ObsBucketReplicationArgs.builder()
                .bucket(bucket)
                .destinationBucket(destinationBucket)
                .agency(agency)
                .rules(            
                    ObsBucketReplicationRuleArgs.builder()
                        .prefix("log")
                        .build(),
                    ObsBucketReplicationRuleArgs.builder()
                        .prefix("imgs/")
                        .storageClass("COLD")
                        .enabled(true)
                        .historyEnabled(false)
                        .deleteData(true)
                        .build())
                .build());
    
        }
    }
    
    configuration:
      bucket:
        type: dynamic
      destinationBucket:
        type: dynamic
      agency:
        type: dynamic
    resources:
      test:
        type: opentelekomcloud:ObsBucketReplication
        properties:
          bucket: ${bucket}
          destinationBucket: ${destinationBucket}
          agency: ${agency}
          rules:
            - prefix: log
            - prefix: imgs/
              storageClass: COLD
              enabled: true
              historyEnabled: false
              deleteData: true
    

    Create ObsBucketReplication Resource

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

    Constructor syntax

    new ObsBucketReplication(name: string, args: ObsBucketReplicationArgs, opts?: CustomResourceOptions);
    @overload
    def ObsBucketReplication(resource_name: str,
                             args: ObsBucketReplicationArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def ObsBucketReplication(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             agency: Optional[str] = None,
                             bucket: Optional[str] = None,
                             destination_bucket: Optional[str] = None,
                             obs_bucket_replication_id: Optional[str] = None,
                             region: Optional[str] = None,
                             rules: Optional[Sequence[ObsBucketReplicationRuleArgs]] = None)
    func NewObsBucketReplication(ctx *Context, name string, args ObsBucketReplicationArgs, opts ...ResourceOption) (*ObsBucketReplication, error)
    public ObsBucketReplication(string name, ObsBucketReplicationArgs args, CustomResourceOptions? opts = null)
    public ObsBucketReplication(String name, ObsBucketReplicationArgs args)
    public ObsBucketReplication(String name, ObsBucketReplicationArgs args, CustomResourceOptions options)
    
    type: opentelekomcloud:ObsBucketReplication
    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 ObsBucketReplicationArgs
    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 ObsBucketReplicationArgs
    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 ObsBucketReplicationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ObsBucketReplicationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ObsBucketReplicationArgs
    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 obsBucketReplicationResource = new Opentelekomcloud.ObsBucketReplication("obsBucketReplicationResource", new()
    {
        Agency = "string",
        Bucket = "string",
        DestinationBucket = "string",
        ObsBucketReplicationId = "string",
        Region = "string",
        Rules = new[]
        {
            new Opentelekomcloud.Inputs.ObsBucketReplicationRuleArgs
            {
                DeleteData = false,
                Enabled = false,
                HistoryEnabled = false,
                Id = "string",
                Prefix = "string",
                StorageClass = "string",
            },
        },
    });
    
    example, err := opentelekomcloud.NewObsBucketReplication(ctx, "obsBucketReplicationResource", &opentelekomcloud.ObsBucketReplicationArgs{
    Agency: pulumi.String("string"),
    Bucket: pulumi.String("string"),
    DestinationBucket: pulumi.String("string"),
    ObsBucketReplicationId: pulumi.String("string"),
    Region: pulumi.String("string"),
    Rules: .ObsBucketReplicationRuleArray{
    &.ObsBucketReplicationRuleArgs{
    DeleteData: pulumi.Bool(false),
    Enabled: pulumi.Bool(false),
    HistoryEnabled: pulumi.Bool(false),
    Id: pulumi.String("string"),
    Prefix: pulumi.String("string"),
    StorageClass: pulumi.String("string"),
    },
    },
    })
    
    var obsBucketReplicationResource = new ObsBucketReplication("obsBucketReplicationResource", ObsBucketReplicationArgs.builder()
        .agency("string")
        .bucket("string")
        .destinationBucket("string")
        .obsBucketReplicationId("string")
        .region("string")
        .rules(ObsBucketReplicationRuleArgs.builder()
            .deleteData(false)
            .enabled(false)
            .historyEnabled(false)
            .id("string")
            .prefix("string")
            .storageClass("string")
            .build())
        .build());
    
    obs_bucket_replication_resource = opentelekomcloud.ObsBucketReplication("obsBucketReplicationResource",
        agency="string",
        bucket="string",
        destination_bucket="string",
        obs_bucket_replication_id="string",
        region="string",
        rules=[{
            "delete_data": False,
            "enabled": False,
            "history_enabled": False,
            "id": "string",
            "prefix": "string",
            "storage_class": "string",
        }])
    
    const obsBucketReplicationResource = new opentelekomcloud.ObsBucketReplication("obsBucketReplicationResource", {
        agency: "string",
        bucket: "string",
        destinationBucket: "string",
        obsBucketReplicationId: "string",
        region: "string",
        rules: [{
            deleteData: false,
            enabled: false,
            historyEnabled: false,
            id: "string",
            prefix: "string",
            storageClass: "string",
        }],
    });
    
    type: opentelekomcloud:ObsBucketReplication
    properties:
        agency: string
        bucket: string
        destinationBucket: string
        obsBucketReplicationId: string
        region: string
        rules:
            - deleteData: false
              enabled: false
              historyEnabled: false
              id: string
              prefix: string
              storageClass: string
    

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

    Agency string

    Specifies the IAM agency name applied to the cross-region replication.

    NOTE: The IAM agency is a cloud service agency of OBS. Which must has the OBS Administrator permission.

    Bucket string

    Specifies the name of the source bucket.

    Changing this parameter will create a new resource.

    DestinationBucket string

    Specifies the name of the destination bucket.

    NOTE: The destination bucket cannot be in the region where the source bucket resides. Some regions do not support cross regional replication. More constraints information see: Cross-Region replication

    ObsBucketReplicationId string
    The name of the bucket.

    • rule/id - The ID of a rule in UUID format.
    Region string

    Specifies the region in which to create the resource. If omitted, the provider-level region will be used.

    Changing this parameter will create a new resource.

    Rules List<ObsBucketReplicationRule>
    Specifies the configurations of object cross-region replication management. The structure is documented below.
    Agency string

    Specifies the IAM agency name applied to the cross-region replication.

    NOTE: The IAM agency is a cloud service agency of OBS. Which must has the OBS Administrator permission.

    Bucket string

    Specifies the name of the source bucket.

    Changing this parameter will create a new resource.

    DestinationBucket string

    Specifies the name of the destination bucket.

    NOTE: The destination bucket cannot be in the region where the source bucket resides. Some regions do not support cross regional replication. More constraints information see: Cross-Region replication

    ObsBucketReplicationId string
    The name of the bucket.

    • rule/id - The ID of a rule in UUID format.
    Region string

    Specifies the region in which to create the resource. If omitted, the provider-level region will be used.

    Changing this parameter will create a new resource.

    Rules []ObsBucketReplicationRuleArgs
    Specifies the configurations of object cross-region replication management. The structure is documented below.
    agency String

    Specifies the IAM agency name applied to the cross-region replication.

    NOTE: The IAM agency is a cloud service agency of OBS. Which must has the OBS Administrator permission.

    bucket String

    Specifies the name of the source bucket.

    Changing this parameter will create a new resource.

    destinationBucket String

    Specifies the name of the destination bucket.

    NOTE: The destination bucket cannot be in the region where the source bucket resides. Some regions do not support cross regional replication. More constraints information see: Cross-Region replication

    obsBucketReplicationId String
    The name of the bucket.

    • rule/id - The ID of a rule in UUID format.
    region String

    Specifies the region in which to create the resource. If omitted, the provider-level region will be used.

    Changing this parameter will create a new resource.

    rules List<ObsBucketReplicationRule>
    Specifies the configurations of object cross-region replication management. The structure is documented below.
    agency string

    Specifies the IAM agency name applied to the cross-region replication.

    NOTE: The IAM agency is a cloud service agency of OBS. Which must has the OBS Administrator permission.

    bucket string

    Specifies the name of the source bucket.

    Changing this parameter will create a new resource.

    destinationBucket string

    Specifies the name of the destination bucket.

    NOTE: The destination bucket cannot be in the region where the source bucket resides. Some regions do not support cross regional replication. More constraints information see: Cross-Region replication

    obsBucketReplicationId string
    The name of the bucket.

    • rule/id - The ID of a rule in UUID format.
    region string

    Specifies the region in which to create the resource. If omitted, the provider-level region will be used.

    Changing this parameter will create a new resource.

    rules ObsBucketReplicationRule[]
    Specifies the configurations of object cross-region replication management. The structure is documented below.
    agency str

    Specifies the IAM agency name applied to the cross-region replication.

    NOTE: The IAM agency is a cloud service agency of OBS. Which must has the OBS Administrator permission.

    bucket str

    Specifies the name of the source bucket.

    Changing this parameter will create a new resource.

    destination_bucket str

    Specifies the name of the destination bucket.

    NOTE: The destination bucket cannot be in the region where the source bucket resides. Some regions do not support cross regional replication. More constraints information see: Cross-Region replication

    obs_bucket_replication_id str
    The name of the bucket.

    • rule/id - The ID of a rule in UUID format.
    region str

    Specifies the region in which to create the resource. If omitted, the provider-level region will be used.

    Changing this parameter will create a new resource.

    rules Sequence[ObsBucketReplicationRuleArgs]
    Specifies the configurations of object cross-region replication management. The structure is documented below.
    agency String

    Specifies the IAM agency name applied to the cross-region replication.

    NOTE: The IAM agency is a cloud service agency of OBS. Which must has the OBS Administrator permission.

    bucket String

    Specifies the name of the source bucket.

    Changing this parameter will create a new resource.

    destinationBucket String

    Specifies the name of the destination bucket.

    NOTE: The destination bucket cannot be in the region where the source bucket resides. Some regions do not support cross regional replication. More constraints information see: Cross-Region replication

    obsBucketReplicationId String
    The name of the bucket.

    • rule/id - The ID of a rule in UUID format.
    region String

    Specifies the region in which to create the resource. If omitted, the provider-level region will be used.

    Changing this parameter will create a new resource.

    rules List<Property Map>
    Specifies the configurations of object cross-region replication management. The structure is documented below.

    Outputs

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

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

    Look up Existing ObsBucketReplication Resource

    Get an existing ObsBucketReplication 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?: ObsBucketReplicationState, opts?: CustomResourceOptions): ObsBucketReplication
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            agency: Optional[str] = None,
            bucket: Optional[str] = None,
            destination_bucket: Optional[str] = None,
            obs_bucket_replication_id: Optional[str] = None,
            region: Optional[str] = None,
            rules: Optional[Sequence[ObsBucketReplicationRuleArgs]] = None) -> ObsBucketReplication
    func GetObsBucketReplication(ctx *Context, name string, id IDInput, state *ObsBucketReplicationState, opts ...ResourceOption) (*ObsBucketReplication, error)
    public static ObsBucketReplication Get(string name, Input<string> id, ObsBucketReplicationState? state, CustomResourceOptions? opts = null)
    public static ObsBucketReplication get(String name, Output<String> id, ObsBucketReplicationState state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:ObsBucketReplication    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:
    Agency string

    Specifies the IAM agency name applied to the cross-region replication.

    NOTE: The IAM agency is a cloud service agency of OBS. Which must has the OBS Administrator permission.

    Bucket string

    Specifies the name of the source bucket.

    Changing this parameter will create a new resource.

    DestinationBucket string

    Specifies the name of the destination bucket.

    NOTE: The destination bucket cannot be in the region where the source bucket resides. Some regions do not support cross regional replication. More constraints information see: Cross-Region replication

    ObsBucketReplicationId string
    The name of the bucket.

    • rule/id - The ID of a rule in UUID format.
    Region string

    Specifies the region in which to create the resource. If omitted, the provider-level region will be used.

    Changing this parameter will create a new resource.

    Rules List<ObsBucketReplicationRule>
    Specifies the configurations of object cross-region replication management. The structure is documented below.
    Agency string

    Specifies the IAM agency name applied to the cross-region replication.

    NOTE: The IAM agency is a cloud service agency of OBS. Which must has the OBS Administrator permission.

    Bucket string

    Specifies the name of the source bucket.

    Changing this parameter will create a new resource.

    DestinationBucket string

    Specifies the name of the destination bucket.

    NOTE: The destination bucket cannot be in the region where the source bucket resides. Some regions do not support cross regional replication. More constraints information see: Cross-Region replication

    ObsBucketReplicationId string
    The name of the bucket.

    • rule/id - The ID of a rule in UUID format.
    Region string

    Specifies the region in which to create the resource. If omitted, the provider-level region will be used.

    Changing this parameter will create a new resource.

    Rules []ObsBucketReplicationRuleArgs
    Specifies the configurations of object cross-region replication management. The structure is documented below.
    agency String

    Specifies the IAM agency name applied to the cross-region replication.

    NOTE: The IAM agency is a cloud service agency of OBS. Which must has the OBS Administrator permission.

    bucket String

    Specifies the name of the source bucket.

    Changing this parameter will create a new resource.

    destinationBucket String

    Specifies the name of the destination bucket.

    NOTE: The destination bucket cannot be in the region where the source bucket resides. Some regions do not support cross regional replication. More constraints information see: Cross-Region replication

    obsBucketReplicationId String
    The name of the bucket.

    • rule/id - The ID of a rule in UUID format.
    region String

    Specifies the region in which to create the resource. If omitted, the provider-level region will be used.

    Changing this parameter will create a new resource.

    rules List<ObsBucketReplicationRule>
    Specifies the configurations of object cross-region replication management. The structure is documented below.
    agency string

    Specifies the IAM agency name applied to the cross-region replication.

    NOTE: The IAM agency is a cloud service agency of OBS. Which must has the OBS Administrator permission.

    bucket string

    Specifies the name of the source bucket.

    Changing this parameter will create a new resource.

    destinationBucket string

    Specifies the name of the destination bucket.

    NOTE: The destination bucket cannot be in the region where the source bucket resides. Some regions do not support cross regional replication. More constraints information see: Cross-Region replication

    obsBucketReplicationId string
    The name of the bucket.

    • rule/id - The ID of a rule in UUID format.
    region string

    Specifies the region in which to create the resource. If omitted, the provider-level region will be used.

    Changing this parameter will create a new resource.

    rules ObsBucketReplicationRule[]
    Specifies the configurations of object cross-region replication management. The structure is documented below.
    agency str

    Specifies the IAM agency name applied to the cross-region replication.

    NOTE: The IAM agency is a cloud service agency of OBS. Which must has the OBS Administrator permission.

    bucket str

    Specifies the name of the source bucket.

    Changing this parameter will create a new resource.

    destination_bucket str

    Specifies the name of the destination bucket.

    NOTE: The destination bucket cannot be in the region where the source bucket resides. Some regions do not support cross regional replication. More constraints information see: Cross-Region replication

    obs_bucket_replication_id str
    The name of the bucket.

    • rule/id - The ID of a rule in UUID format.
    region str

    Specifies the region in which to create the resource. If omitted, the provider-level region will be used.

    Changing this parameter will create a new resource.

    rules Sequence[ObsBucketReplicationRuleArgs]
    Specifies the configurations of object cross-region replication management. The structure is documented below.
    agency String

    Specifies the IAM agency name applied to the cross-region replication.

    NOTE: The IAM agency is a cloud service agency of OBS. Which must has the OBS Administrator permission.

    bucket String

    Specifies the name of the source bucket.

    Changing this parameter will create a new resource.

    destinationBucket String

    Specifies the name of the destination bucket.

    NOTE: The destination bucket cannot be in the region where the source bucket resides. Some regions do not support cross regional replication. More constraints information see: Cross-Region replication

    obsBucketReplicationId String
    The name of the bucket.

    • rule/id - The ID of a rule in UUID format.
    region String

    Specifies the region in which to create the resource. If omitted, the provider-level region will be used.

    Changing this parameter will create a new resource.

    rules List<Property Map>
    Specifies the configurations of object cross-region replication management. The structure is documented below.

    Supporting Types

    ObsBucketReplicationRule, ObsBucketReplicationRuleArgs

    DeleteData bool
    Specifies cross-region replication object deletion operations status. Defaults to false. If the value is true, object deletion for the source bucket will be replicated to the destination bucket.
    Enabled bool
    Specifies cross-region replication rule status. Defaults to true.
    HistoryEnabled bool
    Specifies cross-region replication history rule status. Defaults to false. If the value is true, historical objects meeting this rule are copied.
    Id string
    The name of the bucket.

    • rule/id - The ID of a rule in UUID format.
    Prefix string
    Specifies the prefix of an object key name, applicable to one or more objects. The maximum length of a prefix is 1024 characters. Duplicated prefixes are not supported. If omitted, all objects in the bucket will be managed by the lifecycle rule. To copy a folder, end the prefix with a slash (/), for example, imgs/.
    StorageClass string
    Specifies the storage class for replicated objects. Valid values are STANDARD, WARM (Infrequent Access) and COLD (Archive). If omitted, the storage class of object copies is the same as that of objects in the source bucket.
    DeleteData bool
    Specifies cross-region replication object deletion operations status. Defaults to false. If the value is true, object deletion for the source bucket will be replicated to the destination bucket.
    Enabled bool
    Specifies cross-region replication rule status. Defaults to true.
    HistoryEnabled bool
    Specifies cross-region replication history rule status. Defaults to false. If the value is true, historical objects meeting this rule are copied.
    Id string
    The name of the bucket.

    • rule/id - The ID of a rule in UUID format.
    Prefix string
    Specifies the prefix of an object key name, applicable to one or more objects. The maximum length of a prefix is 1024 characters. Duplicated prefixes are not supported. If omitted, all objects in the bucket will be managed by the lifecycle rule. To copy a folder, end the prefix with a slash (/), for example, imgs/.
    StorageClass string
    Specifies the storage class for replicated objects. Valid values are STANDARD, WARM (Infrequent Access) and COLD (Archive). If omitted, the storage class of object copies is the same as that of objects in the source bucket.
    deleteData Boolean
    Specifies cross-region replication object deletion operations status. Defaults to false. If the value is true, object deletion for the source bucket will be replicated to the destination bucket.
    enabled Boolean
    Specifies cross-region replication rule status. Defaults to true.
    historyEnabled Boolean
    Specifies cross-region replication history rule status. Defaults to false. If the value is true, historical objects meeting this rule are copied.
    id String
    The name of the bucket.

    • rule/id - The ID of a rule in UUID format.
    prefix String
    Specifies the prefix of an object key name, applicable to one or more objects. The maximum length of a prefix is 1024 characters. Duplicated prefixes are not supported. If omitted, all objects in the bucket will be managed by the lifecycle rule. To copy a folder, end the prefix with a slash (/), for example, imgs/.
    storageClass String
    Specifies the storage class for replicated objects. Valid values are STANDARD, WARM (Infrequent Access) and COLD (Archive). If omitted, the storage class of object copies is the same as that of objects in the source bucket.
    deleteData boolean
    Specifies cross-region replication object deletion operations status. Defaults to false. If the value is true, object deletion for the source bucket will be replicated to the destination bucket.
    enabled boolean
    Specifies cross-region replication rule status. Defaults to true.
    historyEnabled boolean
    Specifies cross-region replication history rule status. Defaults to false. If the value is true, historical objects meeting this rule are copied.
    id string
    The name of the bucket.

    • rule/id - The ID of a rule in UUID format.
    prefix string
    Specifies the prefix of an object key name, applicable to one or more objects. The maximum length of a prefix is 1024 characters. Duplicated prefixes are not supported. If omitted, all objects in the bucket will be managed by the lifecycle rule. To copy a folder, end the prefix with a slash (/), for example, imgs/.
    storageClass string
    Specifies the storage class for replicated objects. Valid values are STANDARD, WARM (Infrequent Access) and COLD (Archive). If omitted, the storage class of object copies is the same as that of objects in the source bucket.
    delete_data bool
    Specifies cross-region replication object deletion operations status. Defaults to false. If the value is true, object deletion for the source bucket will be replicated to the destination bucket.
    enabled bool
    Specifies cross-region replication rule status. Defaults to true.
    history_enabled bool
    Specifies cross-region replication history rule status. Defaults to false. If the value is true, historical objects meeting this rule are copied.
    id str
    The name of the bucket.

    • rule/id - The ID of a rule in UUID format.
    prefix str
    Specifies the prefix of an object key name, applicable to one or more objects. The maximum length of a prefix is 1024 characters. Duplicated prefixes are not supported. If omitted, all objects in the bucket will be managed by the lifecycle rule. To copy a folder, end the prefix with a slash (/), for example, imgs/.
    storage_class str
    Specifies the storage class for replicated objects. Valid values are STANDARD, WARM (Infrequent Access) and COLD (Archive). If omitted, the storage class of object copies is the same as that of objects in the source bucket.
    deleteData Boolean
    Specifies cross-region replication object deletion operations status. Defaults to false. If the value is true, object deletion for the source bucket will be replicated to the destination bucket.
    enabled Boolean
    Specifies cross-region replication rule status. Defaults to true.
    historyEnabled Boolean
    Specifies cross-region replication history rule status. Defaults to false. If the value is true, historical objects meeting this rule are copied.
    id String
    The name of the bucket.

    • rule/id - The ID of a rule in UUID format.
    prefix String
    Specifies the prefix of an object key name, applicable to one or more objects. The maximum length of a prefix is 1024 characters. Duplicated prefixes are not supported. If omitted, all objects in the bucket will be managed by the lifecycle rule. To copy a folder, end the prefix with a slash (/), for example, imgs/.
    storageClass String
    Specifies the storage class for replicated objects. Valid values are STANDARD, WARM (Infrequent Access) and COLD (Archive). If omitted, the storage class of object copies is the same as that of objects in the source bucket.

    Import

    The obs bucket cross-region replication can be imported using the bucket, e.g.

    bash

    $ pulumi import opentelekomcloud:index/obsBucketReplication:ObsBucketReplication test <bucket-name>
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.35 published on Monday, Apr 14, 2025 by opentelekomcloud