diff --git a/provider/cmd/pulumi-resource-aws/schema.json b/provider/cmd/pulumi-resource-aws/schema.json index 433c2495f42..63a71f4ab06 100644 --- a/provider/cmd/pulumi-resource-aws/schema.json +++ b/provider/cmd/pulumi-resource-aws/schema.json @@ -352139,7 +352139,7 @@ "items": { "$ref": "#/types/aws:s3/BucketReplicationConfigRule:BucketReplicationConfigRule" }, - "description": "List of configuration blocks describing the rules managing the replication. See below.\n" + "description": "List of configuration blocks describing the rules managing the replication. See below.\n\u003e **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified.\n\n\u003e **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules.\n\n\u003e **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors.\nTo replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide.\n" }, "token": { "type": "string", @@ -352167,7 +352167,7 @@ "items": { "$ref": "#/types/aws:s3/BucketReplicationConfigRule:BucketReplicationConfigRule" }, - "description": "List of configuration blocks describing the rules managing the replication. See below.\n" + "description": "List of configuration blocks describing the rules managing the replication. See below.\n\u003e **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified.\n\n\u003e **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules.\n\n\u003e **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors.\nTo replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide.\n" }, "token": { "type": "string", @@ -352197,7 +352197,7 @@ "items": { "$ref": "#/types/aws:s3/BucketReplicationConfigRule:BucketReplicationConfigRule" }, - "description": "List of configuration blocks describing the rules managing the replication. See below.\n" + "description": "List of configuration blocks describing the rules managing the replication. See below.\n\u003e **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified.\n\n\u003e **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules.\n\n\u003e **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors.\nTo replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide.\n" }, "token": { "type": "string", diff --git a/provider/doc_edits.go b/provider/doc_edits.go index fe2017a66d1..9267a298858 100644 --- a/provider/doc_edits.go +++ b/provider/doc_edits.go @@ -29,6 +29,7 @@ func editRules(defaults []tfbridge.DocsEdit) []tfbridge.DocsEdit { fixUpCloudFrontPublicKey, fixUpEcsServiceNameTrigger, fixUpEcsServiceNameForceNewDeployment, + fixUpBucketReplicationConfig, // This fixes up strings such as: // // name = "terraform-kinesis-firehose-os", @@ -68,7 +69,7 @@ func editRules(defaults []tfbridge.DocsEdit) []tfbridge.DocsEdit { " `pulumi up --refresh`."+ " See [#4766](https://github.com/pulumi/pulumi-aws/issues/4766)"+ " for tracking making this work with regular `pulumi up`"), - + targetedSimpleReplace("iam_policy_attachment.html.markdown", "Terraform", "Pulumi"), ) } @@ -108,6 +109,26 @@ func targetedSimpleReplace(filePath, from, to string) tfbridge.DocsEdit { } } +func targetedReplace(filePath, from, to string) tfbridge.DocsEdit { + fromBytes, toBytes := []byte(from), []byte(to) + return tfbridge.DocsEdit{ + Path: filePath, + Edit: func(_ string, content []byte) ([]byte, error) { + if bytes.Contains(content, fromBytes) { + content = bytes.ReplaceAll( + content, + fromBytes, + toBytes) + } else { + // Hard error to ensure we keep this content up to date + return nil, fmt.Errorf("could not find text in upstream %s, "+ + "please verify replace content in doc_edits.go: %s", filePath, string(fromBytes)) + } + return content, nil + }, + } +} + var fixUpCloudFrontPublicKey = targetedSimpleReplace("cloudfront_public_key.html.markdown", "* `name` - (Optional) The name for the public key. By default generated by this provider.", "* `name` - (Optional) The name for the public key. By default generated by this provider. "+ @@ -134,6 +155,55 @@ var fixUpEcsServiceNameForceNewDeployment = targetedSimpleReplace( "(e.g., `myimage:latest`), roll Fargate tasks onto a newer platform version, or immediately deploy "+ "`ordered_placement_strategy` and `placement_constraints` updates.\n"+ "When using the forceNewDeployment property you also need to configure the triggers property.\n") +var fixUpBucketReplicationConfig = tfbridge.DocsEdit{ + Path: "s3_bucket_replication_configuration.html.markdown", + Edit: func(path string, content []byte) ([]byte, error) { + fromBytes := []byte( + "* `rule` - (Required) List of configuration blocks describing the rules managing the replication. " + + "[See below](#rule).\n") + toBytes := []byte( + "* `rule` - (Required) List of configuration blocks describing the rules managing the replication. " + + "[See below](#rule).\n" + + "~> **NOTE:** Replication to multiple destination buckets requires that `priority` is specified " + + "in the `rule` object. If the corresponding rule requires no filter, an empty configuration block " + + "`filter {}` must be specified." + + "\n\n~> **NOTE:** Amazon S3's latest version of the replication configuration is V2, " + + "which includes the `filter` attribute for replication rules.\n\n" + + "~> **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time " + + "and should not be included in your `rule` configurations. " + + "Specifying this parameter will result in `MalformedXML` errors.\n" + + "To replicate existing objects, please refer to the " + + "[Replicating existing objects with S3 Batch Replication]" + + "(https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) " + + "documentation in the Amazon S3 User Guide.\n", + ) + noteBytes := []byte( + "~> **NOTE:** Replication to multiple destination buckets requires that `priority` is specified " + + "in the `rule` object. If the corresponding rule requires no filter, an empty configuration block " + + "`filter {}` must be specified." + + "\n\n~> **NOTE:** Amazon S3's latest version of the replication configuration is V2, " + + "which includes the `filter` attribute for replication rules.\n\n" + + "~> **NOTE:** The `existing_object_replication` parameter is not supported by Amazon S3 at this time " + + "and should not be included in your `rule` configurations. " + + "Specifying this parameter will result in `MalformedXML` errors.\n" + + "To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication]" + + "(https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) " + + "documentation in the Amazon S3 User Guide.\n", + ) + + if bytes.Contains(content, noteBytes) && bytes.Contains(content, fromBytes) { + content = bytes.ReplaceAll( + content, + fromBytes, + toBytes) + } else { + // Hard error to ensure we keep this content up to date + return nil, fmt.Errorf("could not find NOTE snippets in upstream %s, "+ + "please verify replace content in doc_edits.go: %s", path, string(noteBytes)) + } + return content, nil + }, +} func reReplace(from string, to string) tfbridge.DocsEdit { fromR, toB := regexp.MustCompile(from), []byte(to) diff --git a/sdk/dotnet/S3/BucketReplicationConfig.cs b/sdk/dotnet/S3/BucketReplicationConfig.cs index 75b7040810c..5760bdea9a9 100644 --- a/sdk/dotnet/S3/BucketReplicationConfig.cs +++ b/sdk/dotnet/S3/BucketReplicationConfig.cs @@ -311,6 +311,12 @@ public partial class BucketReplicationConfig : global::Pulumi.CustomResource /// /// List of configuration blocks describing the rules managing the replication. See below. + /// > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + /// + /// > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + /// + /// > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + /// To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. /// [Output("rules")] public Output> Rules { get; private set; } = null!; @@ -389,6 +395,12 @@ public sealed class BucketReplicationConfigArgs : global::Pulumi.ResourceArgs /// /// List of configuration blocks describing the rules managing the replication. See below. + /// > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + /// + /// > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + /// + /// > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + /// To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. /// public InputList Rules { @@ -438,6 +450,12 @@ public sealed class BucketReplicationConfigState : global::Pulumi.ResourceArgs /// /// List of configuration blocks describing the rules managing the replication. See below. + /// > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + /// + /// > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + /// + /// > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + /// To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. /// public InputList Rules { diff --git a/sdk/go/aws/s3/bucketReplicationConfig.go b/sdk/go/aws/s3/bucketReplicationConfig.go index e76c6aa73a1..e70200a3aa8 100644 --- a/sdk/go/aws/s3/bucketReplicationConfig.go +++ b/sdk/go/aws/s3/bucketReplicationConfig.go @@ -296,6 +296,12 @@ type BucketReplicationConfig struct { // ARN of the IAM role for Amazon S3 to assume when replicating the objects. Role pulumi.StringOutput `pulumi:"role"` // List of configuration blocks describing the rules managing the replication. See below. + // > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + // + // > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + // + // > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + // To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. Rules BucketReplicationConfigRuleArrayOutput `pulumi:"rules"` // Token to allow replication to be enabled on an Object Lock-enabled bucket. You must contact AWS support for the bucket's "Object Lock token". // For more details, see [Using S3 Object Lock with replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-managing.html#object-lock-managing-replication). @@ -353,6 +359,12 @@ type bucketReplicationConfigState struct { // ARN of the IAM role for Amazon S3 to assume when replicating the objects. Role *string `pulumi:"role"` // List of configuration blocks describing the rules managing the replication. See below. + // > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + // + // > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + // + // > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + // To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. Rules []BucketReplicationConfigRule `pulumi:"rules"` // Token to allow replication to be enabled on an Object Lock-enabled bucket. You must contact AWS support for the bucket's "Object Lock token". // For more details, see [Using S3 Object Lock with replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-managing.html#object-lock-managing-replication). @@ -365,6 +377,12 @@ type BucketReplicationConfigState struct { // ARN of the IAM role for Amazon S3 to assume when replicating the objects. Role pulumi.StringPtrInput // List of configuration blocks describing the rules managing the replication. See below. + // > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + // + // > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + // + // > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + // To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. Rules BucketReplicationConfigRuleArrayInput // Token to allow replication to be enabled on an Object Lock-enabled bucket. You must contact AWS support for the bucket's "Object Lock token". // For more details, see [Using S3 Object Lock with replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-managing.html#object-lock-managing-replication). @@ -381,6 +399,12 @@ type bucketReplicationConfigArgs struct { // ARN of the IAM role for Amazon S3 to assume when replicating the objects. Role string `pulumi:"role"` // List of configuration blocks describing the rules managing the replication. See below. + // > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + // + // > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + // + // > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + // To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. Rules []BucketReplicationConfigRule `pulumi:"rules"` // Token to allow replication to be enabled on an Object Lock-enabled bucket. You must contact AWS support for the bucket's "Object Lock token". // For more details, see [Using S3 Object Lock with replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-managing.html#object-lock-managing-replication). @@ -394,6 +418,12 @@ type BucketReplicationConfigArgs struct { // ARN of the IAM role for Amazon S3 to assume when replicating the objects. Role pulumi.StringInput // List of configuration blocks describing the rules managing the replication. See below. + // > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + // + // > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + // + // > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + // To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. Rules BucketReplicationConfigRuleArrayInput // Token to allow replication to be enabled on an Object Lock-enabled bucket. You must contact AWS support for the bucket's "Object Lock token". // For more details, see [Using S3 Object Lock with replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-managing.html#object-lock-managing-replication). @@ -498,6 +528,12 @@ func (o BucketReplicationConfigOutput) Role() pulumi.StringOutput { } // List of configuration blocks describing the rules managing the replication. See below. +// > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. +// +// > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. +// +// > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. +// To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. func (o BucketReplicationConfigOutput) Rules() BucketReplicationConfigRuleArrayOutput { return o.ApplyT(func(v *BucketReplicationConfig) BucketReplicationConfigRuleArrayOutput { return v.Rules }).(BucketReplicationConfigRuleArrayOutput) } diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/BucketReplicationConfig.java b/sdk/java/src/main/java/com/pulumi/aws/s3/BucketReplicationConfig.java index 165bf2a791a..e9d013f1c2b 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/BucketReplicationConfig.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/BucketReplicationConfig.java @@ -313,6 +313,12 @@ public Output role() { } /** * List of configuration blocks describing the rules managing the replication. See below. + * > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + * + * > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + * + * > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + * To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. * */ @Export(name="rules", refs={List.class,BucketReplicationConfigRule.class}, tree="[0,1]") @@ -320,6 +326,12 @@ public Output role() { /** * @return List of configuration blocks describing the rules managing the replication. See below. + * > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + * + * > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + * + * > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + * To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. * */ public Output> rules() { diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/BucketReplicationConfigArgs.java b/sdk/java/src/main/java/com/pulumi/aws/s3/BucketReplicationConfigArgs.java index 1bda4c8e484..f84c247534f 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/BucketReplicationConfigArgs.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/BucketReplicationConfigArgs.java @@ -50,6 +50,12 @@ public Output role() { /** * List of configuration blocks describing the rules managing the replication. See below. + * > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + * + * > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + * + * > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + * To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. * */ @Import(name="rules", required=true) @@ -57,6 +63,12 @@ public Output role() { /** * @return List of configuration blocks describing the rules managing the replication. See below. + * > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + * + * > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + * + * > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + * To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. * */ public Output> rules() { @@ -151,6 +163,12 @@ public Builder role(String role) { /** * @param rules List of configuration blocks describing the rules managing the replication. See below. + * > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + * + * > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + * + * > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + * To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. * * @return builder * @@ -162,6 +180,12 @@ public Builder rules(Output> rules) { /** * @param rules List of configuration blocks describing the rules managing the replication. See below. + * > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + * + * > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + * + * > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + * To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. * * @return builder * @@ -172,6 +196,12 @@ public Builder rules(List rules) { /** * @param rules List of configuration blocks describing the rules managing the replication. See below. + * > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + * + * > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + * + * > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + * To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/aws/s3/inputs/BucketReplicationConfigState.java b/sdk/java/src/main/java/com/pulumi/aws/s3/inputs/BucketReplicationConfigState.java index b8057e7f9cb..d6e4dbfbaa5 100644 --- a/sdk/java/src/main/java/com/pulumi/aws/s3/inputs/BucketReplicationConfigState.java +++ b/sdk/java/src/main/java/com/pulumi/aws/s3/inputs/BucketReplicationConfigState.java @@ -49,6 +49,12 @@ public Optional> role() { /** * List of configuration blocks describing the rules managing the replication. See below. + * > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + * + * > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + * + * > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + * To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. * */ @Import(name="rules") @@ -56,6 +62,12 @@ public Optional> role() { /** * @return List of configuration blocks describing the rules managing the replication. See below. + * > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + * + * > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + * + * > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + * To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. * */ public Optional>> rules() { @@ -150,6 +162,12 @@ public Builder role(String role) { /** * @param rules List of configuration blocks describing the rules managing the replication. See below. + * > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + * + * > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + * + * > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + * To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. * * @return builder * @@ -161,6 +179,12 @@ public Builder rules(@Nullable Output> rul /** * @param rules List of configuration blocks describing the rules managing the replication. See below. + * > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + * + * > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + * + * > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + * To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. * * @return builder * @@ -171,6 +195,12 @@ public Builder rules(List rules) { /** * @param rules List of configuration blocks describing the rules managing the replication. See below. + * > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + * + * > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + * + * > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + * To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. * * @return builder * diff --git a/sdk/nodejs/s3/bucketReplicationConfig.ts b/sdk/nodejs/s3/bucketReplicationConfig.ts index b093f9631dd..d47e91c236e 100644 --- a/sdk/nodejs/s3/bucketReplicationConfig.ts +++ b/sdk/nodejs/s3/bucketReplicationConfig.ts @@ -214,6 +214,12 @@ export class BucketReplicationConfig extends pulumi.CustomResource { public readonly role!: pulumi.Output; /** * List of configuration blocks describing the rules managing the replication. See below. + * > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + * + * > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + * + * > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + * To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. */ public readonly rules!: pulumi.Output; /** @@ -276,6 +282,12 @@ export interface BucketReplicationConfigState { role?: pulumi.Input; /** * List of configuration blocks describing the rules managing the replication. See below. + * > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + * + * > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + * + * > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + * To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. */ rules?: pulumi.Input[]>; /** @@ -299,6 +311,12 @@ export interface BucketReplicationConfigArgs { role: pulumi.Input; /** * List of configuration blocks describing the rules managing the replication. See below. + * > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + * + * > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + * + * > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + * To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. */ rules: pulumi.Input[]>; /** diff --git a/sdk/python/pulumi_aws/s3/bucket_replication_config.py b/sdk/python/pulumi_aws/s3/bucket_replication_config.py index 60d5d132744..f8f1ebabe61 100644 --- a/sdk/python/pulumi_aws/s3/bucket_replication_config.py +++ b/sdk/python/pulumi_aws/s3/bucket_replication_config.py @@ -30,6 +30,12 @@ def __init__(__self__, *, :param pulumi.Input[str] bucket: Name of the source S3 bucket you want Amazon S3 to monitor. :param pulumi.Input[str] role: ARN of the IAM role for Amazon S3 to assume when replicating the objects. :param pulumi.Input[Sequence[pulumi.Input['BucketReplicationConfigRuleArgs']]] rules: List of configuration blocks describing the rules managing the replication. See below. + > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + + > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + + > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. :param pulumi.Input[str] token: Token to allow replication to be enabled on an Object Lock-enabled bucket. You must contact AWS support for the bucket's "Object Lock token". For more details, see [Using S3 Object Lock with replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-managing.html#object-lock-managing-replication). """ @@ -68,6 +74,12 @@ def role(self, value: pulumi.Input[str]): def rules(self) -> pulumi.Input[Sequence[pulumi.Input['BucketReplicationConfigRuleArgs']]]: """ List of configuration blocks describing the rules managing the replication. See below. + > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + + > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + + > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. """ return pulumi.get(self, "rules") @@ -101,6 +113,12 @@ def __init__(__self__, *, :param pulumi.Input[str] bucket: Name of the source S3 bucket you want Amazon S3 to monitor. :param pulumi.Input[str] role: ARN of the IAM role for Amazon S3 to assume when replicating the objects. :param pulumi.Input[Sequence[pulumi.Input['BucketReplicationConfigRuleArgs']]] rules: List of configuration blocks describing the rules managing the replication. See below. + > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + + > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + + > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. :param pulumi.Input[str] token: Token to allow replication to be enabled on an Object Lock-enabled bucket. You must contact AWS support for the bucket's "Object Lock token". For more details, see [Using S3 Object Lock with replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-managing.html#object-lock-managing-replication). """ @@ -142,6 +160,12 @@ def role(self, value: Optional[pulumi.Input[str]]): def rules(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['BucketReplicationConfigRuleArgs']]]]: """ List of configuration blocks describing the rules managing the replication. See below. + > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + + > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + + > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. """ return pulumi.get(self, "rules") @@ -329,6 +353,12 @@ def __init__(__self__, :param pulumi.Input[str] bucket: Name of the source S3 bucket you want Amazon S3 to monitor. :param pulumi.Input[str] role: ARN of the IAM role for Amazon S3 to assume when replicating the objects. :param pulumi.Input[Sequence[pulumi.Input[Union['BucketReplicationConfigRuleArgs', 'BucketReplicationConfigRuleArgsDict']]]] rules: List of configuration blocks describing the rules managing the replication. See below. + > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + + > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + + > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. :param pulumi.Input[str] token: Token to allow replication to be enabled on an Object Lock-enabled bucket. You must contact AWS support for the bucket's "Object Lock token". For more details, see [Using S3 Object Lock with replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-managing.html#object-lock-managing-replication). """ @@ -553,6 +583,12 @@ def get(resource_name: str, :param pulumi.Input[str] bucket: Name of the source S3 bucket you want Amazon S3 to monitor. :param pulumi.Input[str] role: ARN of the IAM role for Amazon S3 to assume when replicating the objects. :param pulumi.Input[Sequence[pulumi.Input[Union['BucketReplicationConfigRuleArgs', 'BucketReplicationConfigRuleArgsDict']]]] rules: List of configuration blocks describing the rules managing the replication. See below. + > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + + > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + + > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. :param pulumi.Input[str] token: Token to allow replication to be enabled on an Object Lock-enabled bucket. You must contact AWS support for the bucket's "Object Lock token". For more details, see [Using S3 Object Lock with replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/object-lock-managing.html#object-lock-managing-replication). """ @@ -587,6 +623,12 @@ def role(self) -> pulumi.Output[str]: def rules(self) -> pulumi.Output[Sequence['outputs.BucketReplicationConfigRule']]: """ List of configuration blocks describing the rules managing the replication. See below. + > **NOTE:** Replication to multiple destination buckets requires that `priority` is specified in the `rule` object. If the corresponding rule requires no filter, an empty configuration block `filter {}` must be specified. + + > **NOTE:** Amazon S3's latest version of the replication configuration is V2, which includes the `filter` attribute for replication rules. + + > **NOTE:** The `existingObjectReplication` parameter is not supported by Amazon S3 at this time and should not be included in your `rule` configurations. Specifying this parameter will result in `MalformedXML` errors. + To replicate existing objects, please refer to the [Replicating existing objects with S3 Batch Replication](https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-batch-replication-batch.html) documentation in the Amazon S3 User Guide. """ return pulumi.get(self, "rules")