ibm.CosBucketReplicationRule
Explore with Pulumi AI
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:
- Bucket
Crn string - COS bucket CRN
- Bucket
Location string - COS bucket location
- Replication
Rules List<CosBucket Replication Rule Replication Rule> - 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 stringReplication Rule Id - Endpoint
Type string - COS endpoint type: public, private, direct
- Timeouts
Cos
Bucket Replication Rule Timeouts
- Bucket
Crn string - COS bucket CRN
- Bucket
Location string - COS bucket location
- Replication
Rules []CosBucket Replication Rule Replication Rule Args - 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 stringReplication Rule Id - Endpoint
Type string - COS endpoint type: public, private, direct
- Timeouts
Cos
Bucket Replication Rule Timeouts Args
- bucket
Crn String - COS bucket CRN
- bucket
Location String - COS bucket location
- replication
Rules List<CosBucket Replication Rule Replication Rule> - 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 StringReplication Rule Id - endpoint
Type String - COS endpoint type: public, private, direct
- timeouts
Cos
Bucket Replication Rule Timeouts
- bucket
Crn string - COS bucket CRN
- bucket
Location string - COS bucket location
- replication
Rules CosBucket Replication Rule Replication Rule[] - 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 stringReplication Rule Id - endpoint
Type string - COS endpoint type: public, private, direct
- timeouts
Cos
Bucket Replication Rule Timeouts
- bucket_
crn str - COS bucket CRN
- bucket_
location str - COS bucket location
- replication_
rules Sequence[CosBucket Replication Rule Replication Rule Args] - 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_ strreplication_ rule_ id - endpoint_
type str - COS endpoint type: public, private, direct
- timeouts
Cos
Bucket Replication Rule Timeouts Args
- bucket
Crn String - COS bucket CRN
- bucket
Location String - COS bucket location
- replication
Rules 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.
- cos
Bucket StringReplication Rule Id - endpoint
Type 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.
- Bucket
Crn string - COS bucket CRN
- Bucket
Location string - COS bucket location
- Cos
Bucket stringReplication Rule Id - Endpoint
Type string - COS endpoint type: public, private, direct
- Replication
Rules List<CosBucket Replication Rule Replication Rule> - 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
Cos
Bucket Replication Rule Timeouts
- Bucket
Crn string - COS bucket CRN
- Bucket
Location string - COS bucket location
- Cos
Bucket stringReplication Rule Id - Endpoint
Type string - COS endpoint type: public, private, direct
- Replication
Rules []CosBucket Replication Rule Replication Rule Args - 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
Cos
Bucket Replication Rule Timeouts Args
- bucket
Crn String - COS bucket CRN
- bucket
Location String - COS bucket location
- cos
Bucket StringReplication Rule Id - endpoint
Type String - COS endpoint type: public, private, direct
- replication
Rules List<CosBucket Replication Rule Replication Rule> - 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
Cos
Bucket Replication Rule Timeouts
- bucket
Crn string - COS bucket CRN
- bucket
Location string - COS bucket location
- cos
Bucket stringReplication Rule Id - endpoint
Type string - COS endpoint type: public, private, direct
- replication
Rules CosBucket Replication Rule Replication Rule[] - 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
Cos
Bucket Replication Rule Timeouts
- bucket_
crn str - COS bucket CRN
- bucket_
location str - COS bucket location
- cos_
bucket_ strreplication_ rule_ id - endpoint_
type str - COS endpoint type: public, private, direct
- replication_
rules Sequence[CosBucket Replication Rule Replication Rule Args] - 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
Cos
Bucket Replication Rule Timeouts Args
- bucket
Crn String - COS bucket CRN
- bucket
Location String - COS bucket location
- cos
Bucket StringReplication Rule Id - endpoint
Type String - COS endpoint type: public, private, direct
- replication
Rules 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
- Destination
Bucket stringCrn - 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 boolStatus - 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.
- Rule
Id string - A unique identifier for the rule. The maximum value is 255 characters.
- Destination
Bucket stringCrn - 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 boolStatus - 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.
- Rule
Id string - A unique identifier for the rule. The maximum value is 255 characters.
- destination
Bucket StringCrn - 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
- deletemarker
Replication BooleanStatus - 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.
- rule
Id String - A unique identifier for the rule. The maximum value is 255 characters.
- destination
Bucket stringCrn - 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
- deletemarker
Replication booleanStatus - 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.
- rule
Id string - A unique identifier for the rule. The maximum value is 255 characters.
- destination_
bucket_ strcrn - 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_ boolstatus - 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.
- destination
Bucket StringCrn - 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
- deletemarker
Replication BooleanStatus - 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.
- rule
Id String - A unique identifier for the rule. The maximum value is 255 characters.
CosBucketReplicationRuleTimeouts, CosBucketReplicationRuleTimeoutsArgs
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.