1. Packages
  2. Ibm Provider
  3. API Docs
  4. CosBucketReplicationRule
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.CosBucketReplicationRule

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Create CosBucketReplicationRule Resource

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

    Constructor syntax

    new CosBucketReplicationRule(name: string, args: CosBucketReplicationRuleArgs, opts?: CustomResourceOptions);
    @overload
    def CosBucketReplicationRule(resource_name: str,
                                 args: CosBucketReplicationRuleArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def CosBucketReplicationRule(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 bucket_crn: Optional[str] = None,
                                 bucket_location: Optional[str] = None,
                                 replication_rules: Optional[Sequence[CosBucketReplicationRuleReplicationRuleArgs]] = None,
                                 cos_bucket_replication_rule_id: Optional[str] = None,
                                 endpoint_type: Optional[str] = None,
                                 timeouts: Optional[CosBucketReplicationRuleTimeoutsArgs] = None)
    func NewCosBucketReplicationRule(ctx *Context, name string, args CosBucketReplicationRuleArgs, opts ...ResourceOption) (*CosBucketReplicationRule, error)
    public CosBucketReplicationRule(string name, CosBucketReplicationRuleArgs args, CustomResourceOptions? opts = null)
    public CosBucketReplicationRule(String name, CosBucketReplicationRuleArgs args)
    public CosBucketReplicationRule(String name, CosBucketReplicationRuleArgs args, CustomResourceOptions options)
    
    type: ibm:CosBucketReplicationRule
    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 CosBucketReplicationRuleArgs
    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 CosBucketReplicationRuleArgs
    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 CosBucketReplicationRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CosBucketReplicationRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CosBucketReplicationRuleArgs
    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 cosBucketReplicationRuleResource = new Ibm.CosBucketReplicationRule("cosBucketReplicationRuleResource", new()
    {
        BucketCrn = "string",
        BucketLocation = "string",
        ReplicationRules = new[]
        {
            new Ibm.Inputs.CosBucketReplicationRuleReplicationRuleArgs
            {
                DestinationBucketCrn = "string",
                Enable = false,
                DeletemarkerReplicationStatus = false,
                Prefix = "string",
                Priority = 0,
                RuleId = "string",
            },
        },
        CosBucketReplicationRuleId = "string",
        EndpointType = "string",
        Timeouts = new Ibm.Inputs.CosBucketReplicationRuleTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := ibm.NewCosBucketReplicationRule(ctx, "cosBucketReplicationRuleResource", &ibm.CosBucketReplicationRuleArgs{
    	BucketCrn:      pulumi.String("string"),
    	BucketLocation: pulumi.String("string"),
    	ReplicationRules: ibm.CosBucketReplicationRuleReplicationRuleArray{
    		&ibm.CosBucketReplicationRuleReplicationRuleArgs{
    			DestinationBucketCrn:          pulumi.String("string"),
    			Enable:                        pulumi.Bool(false),
    			DeletemarkerReplicationStatus: pulumi.Bool(false),
    			Prefix:                        pulumi.String("string"),
    			Priority:                      pulumi.Float64(0),
    			RuleId:                        pulumi.String("string"),
    		},
    	},
    	CosBucketReplicationRuleId: pulumi.String("string"),
    	EndpointType:               pulumi.String("string"),
    	Timeouts: &ibm.CosBucketReplicationRuleTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var cosBucketReplicationRuleResource = new CosBucketReplicationRule("cosBucketReplicationRuleResource", CosBucketReplicationRuleArgs.builder()
        .bucketCrn("string")
        .bucketLocation("string")
        .replicationRules(CosBucketReplicationRuleReplicationRuleArgs.builder()
            .destinationBucketCrn("string")
            .enable(false)
            .deletemarkerReplicationStatus(false)
            .prefix("string")
            .priority(0)
            .ruleId("string")
            .build())
        .cosBucketReplicationRuleId("string")
        .endpointType("string")
        .timeouts(CosBucketReplicationRuleTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    cos_bucket_replication_rule_resource = ibm.CosBucketReplicationRule("cosBucketReplicationRuleResource",
        bucket_crn="string",
        bucket_location="string",
        replication_rules=[{
            "destination_bucket_crn": "string",
            "enable": False,
            "deletemarker_replication_status": False,
            "prefix": "string",
            "priority": 0,
            "rule_id": "string",
        }],
        cos_bucket_replication_rule_id="string",
        endpoint_type="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const cosBucketReplicationRuleResource = new ibm.CosBucketReplicationRule("cosBucketReplicationRuleResource", {
        bucketCrn: "string",
        bucketLocation: "string",
        replicationRules: [{
            destinationBucketCrn: "string",
            enable: false,
            deletemarkerReplicationStatus: false,
            prefix: "string",
            priority: 0,
            ruleId: "string",
        }],
        cosBucketReplicationRuleId: "string",
        endpointType: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: ibm:CosBucketReplicationRule
    properties:
        bucketCrn: string
        bucketLocation: string
        cosBucketReplicationRuleId: string
        endpointType: string
        replicationRules:
            - deletemarkerReplicationStatus: false
              destinationBucketCrn: string
              enable: false
              prefix: string
              priority: 0
              ruleId: string
        timeouts:
            create: string
            delete: string
            update: string
    

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

    BucketCrn string
    COS bucket CRN
    BucketLocation string
    COS bucket location
    ReplicationRules List<CosBucketReplicationRuleReplicationRule>
    Replicate objects between buckets, replicate across source and destination. A container for replication rules can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.
    CosBucketReplicationRuleId string
    EndpointType string
    COS endpoint type: public, private, direct
    Timeouts CosBucketReplicationRuleTimeouts
    BucketCrn string
    COS bucket CRN
    BucketLocation string
    COS bucket location
    ReplicationRules []CosBucketReplicationRuleReplicationRuleArgs
    Replicate objects between buckets, replicate across source and destination. A container for replication rules can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.
    CosBucketReplicationRuleId string
    EndpointType string
    COS endpoint type: public, private, direct
    Timeouts CosBucketReplicationRuleTimeoutsArgs
    bucketCrn String
    COS bucket CRN
    bucketLocation String
    COS bucket location
    replicationRules List<CosBucketReplicationRuleReplicationRule>
    Replicate objects between buckets, replicate across source and destination. A container for replication rules can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.
    cosBucketReplicationRuleId String
    endpointType String
    COS endpoint type: public, private, direct
    timeouts CosBucketReplicationRuleTimeouts
    bucketCrn string
    COS bucket CRN
    bucketLocation string
    COS bucket location
    replicationRules CosBucketReplicationRuleReplicationRule[]
    Replicate objects between buckets, replicate across source and destination. A container for replication rules can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.
    cosBucketReplicationRuleId string
    endpointType string
    COS endpoint type: public, private, direct
    timeouts CosBucketReplicationRuleTimeouts
    bucket_crn str
    COS bucket CRN
    bucket_location str
    COS bucket location
    replication_rules Sequence[CosBucketReplicationRuleReplicationRuleArgs]
    Replicate objects between buckets, replicate across source and destination. A container for replication rules can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.
    cos_bucket_replication_rule_id str
    endpoint_type str
    COS endpoint type: public, private, direct
    timeouts CosBucketReplicationRuleTimeoutsArgs
    bucketCrn String
    COS bucket CRN
    bucketLocation String
    COS bucket location
    replicationRules List<Property Map>
    Replicate objects between buckets, replicate across source and destination. A container for replication rules can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.
    cosBucketReplicationRuleId String
    endpointType String
    COS endpoint type: public, private, direct
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CosBucketReplicationRule 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 CosBucketReplicationRule Resource

    Get an existing CosBucketReplicationRule 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?: CosBucketReplicationRuleState, opts?: CustomResourceOptions): CosBucketReplicationRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bucket_crn: Optional[str] = None,
            bucket_location: Optional[str] = None,
            cos_bucket_replication_rule_id: Optional[str] = None,
            endpoint_type: Optional[str] = None,
            replication_rules: Optional[Sequence[CosBucketReplicationRuleReplicationRuleArgs]] = None,
            timeouts: Optional[CosBucketReplicationRuleTimeoutsArgs] = None) -> CosBucketReplicationRule
    func GetCosBucketReplicationRule(ctx *Context, name string, id IDInput, state *CosBucketReplicationRuleState, opts ...ResourceOption) (*CosBucketReplicationRule, error)
    public static CosBucketReplicationRule Get(string name, Input<string> id, CosBucketReplicationRuleState? state, CustomResourceOptions? opts = null)
    public static CosBucketReplicationRule get(String name, Output<String> id, CosBucketReplicationRuleState state, CustomResourceOptions options)
    resources:  _:    type: ibm:CosBucketReplicationRule    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:
    BucketCrn string
    COS bucket CRN
    BucketLocation string
    COS bucket location
    CosBucketReplicationRuleId string
    EndpointType string
    COS endpoint type: public, private, direct
    ReplicationRules List<CosBucketReplicationRuleReplicationRule>
    Replicate objects between buckets, replicate across source and destination. A container for replication rules can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.
    Timeouts CosBucketReplicationRuleTimeouts
    BucketCrn string
    COS bucket CRN
    BucketLocation string
    COS bucket location
    CosBucketReplicationRuleId string
    EndpointType string
    COS endpoint type: public, private, direct
    ReplicationRules []CosBucketReplicationRuleReplicationRuleArgs
    Replicate objects between buckets, replicate across source and destination. A container for replication rules can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.
    Timeouts CosBucketReplicationRuleTimeoutsArgs
    bucketCrn String
    COS bucket CRN
    bucketLocation String
    COS bucket location
    cosBucketReplicationRuleId String
    endpointType String
    COS endpoint type: public, private, direct
    replicationRules List<CosBucketReplicationRuleReplicationRule>
    Replicate objects between buckets, replicate across source and destination. A container for replication rules can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.
    timeouts CosBucketReplicationRuleTimeouts
    bucketCrn string
    COS bucket CRN
    bucketLocation string
    COS bucket location
    cosBucketReplicationRuleId string
    endpointType string
    COS endpoint type: public, private, direct
    replicationRules CosBucketReplicationRuleReplicationRule[]
    Replicate objects between buckets, replicate across source and destination. A container for replication rules can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.
    timeouts CosBucketReplicationRuleTimeouts
    bucket_crn str
    COS bucket CRN
    bucket_location str
    COS bucket location
    cos_bucket_replication_rule_id str
    endpoint_type str
    COS endpoint type: public, private, direct
    replication_rules Sequence[CosBucketReplicationRuleReplicationRuleArgs]
    Replicate objects between buckets, replicate across source and destination. A container for replication rules can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.
    timeouts CosBucketReplicationRuleTimeoutsArgs
    bucketCrn String
    COS bucket CRN
    bucketLocation String
    COS bucket location
    cosBucketReplicationRuleId String
    endpointType String
    COS endpoint type: public, private, direct
    replicationRules List<Property Map>
    Replicate objects between buckets, replicate across source and destination. A container for replication rules can add up to 1,000 rules. The maximum size of a replication configuration is 2 MB.
    timeouts Property Map

    Supporting Types

    CosBucketReplicationRuleReplicationRule, CosBucketReplicationRuleReplicationRuleArgs

    DestinationBucketCrn string
    The Cloud Resource Name (CRN) of the bucket where you want COS to store the results
    Enable bool
    Enable or disable an replication rule for a bucket
    DeletemarkerReplicationStatus bool
    Indicates whether to replicate delete markers. It should be either Enable or Disable
    Prefix string
    The rule applies to any objects with keys that match this prefix
    Priority double
    A priority is associated with each rule. There may be cases where multiple rules may be applicable to an object that is uploaded.
    RuleId string
    A unique identifier for the rule. The maximum value is 255 characters.
    DestinationBucketCrn string
    The Cloud Resource Name (CRN) of the bucket where you want COS to store the results
    Enable bool
    Enable or disable an replication rule for a bucket
    DeletemarkerReplicationStatus bool
    Indicates whether to replicate delete markers. It should be either Enable or Disable
    Prefix string
    The rule applies to any objects with keys that match this prefix
    Priority float64
    A priority is associated with each rule. There may be cases where multiple rules may be applicable to an object that is uploaded.
    RuleId string
    A unique identifier for the rule. The maximum value is 255 characters.
    destinationBucketCrn String
    The Cloud Resource Name (CRN) of the bucket where you want COS to store the results
    enable Boolean
    Enable or disable an replication rule for a bucket
    deletemarkerReplicationStatus Boolean
    Indicates whether to replicate delete markers. It should be either Enable or Disable
    prefix String
    The rule applies to any objects with keys that match this prefix
    priority Double
    A priority is associated with each rule. There may be cases where multiple rules may be applicable to an object that is uploaded.
    ruleId String
    A unique identifier for the rule. The maximum value is 255 characters.
    destinationBucketCrn string
    The Cloud Resource Name (CRN) of the bucket where you want COS to store the results
    enable boolean
    Enable or disable an replication rule for a bucket
    deletemarkerReplicationStatus boolean
    Indicates whether to replicate delete markers. It should be either Enable or Disable
    prefix string
    The rule applies to any objects with keys that match this prefix
    priority number
    A priority is associated with each rule. There may be cases where multiple rules may be applicable to an object that is uploaded.
    ruleId string
    A unique identifier for the rule. The maximum value is 255 characters.
    destination_bucket_crn str
    The Cloud Resource Name (CRN) of the bucket where you want COS to store the results
    enable bool
    Enable or disable an replication rule for a bucket
    deletemarker_replication_status bool
    Indicates whether to replicate delete markers. It should be either Enable or Disable
    prefix str
    The rule applies to any objects with keys that match this prefix
    priority float
    A priority is associated with each rule. There may be cases where multiple rules may be applicable to an object that is uploaded.
    rule_id str
    A unique identifier for the rule. The maximum value is 255 characters.
    destinationBucketCrn String
    The Cloud Resource Name (CRN) of the bucket where you want COS to store the results
    enable Boolean
    Enable or disable an replication rule for a bucket
    deletemarkerReplicationStatus Boolean
    Indicates whether to replicate delete markers. It should be either Enable or Disable
    prefix String
    The rule applies to any objects with keys that match this prefix
    priority Number
    A priority is associated with each rule. There may be cases where multiple rules may be applicable to an object that is uploaded.
    ruleId String
    A unique identifier for the rule. The maximum value is 255 characters.

    CosBucketReplicationRuleTimeouts, CosBucketReplicationRuleTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud