Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
Data source for managing an AWS S3 (Simple Storage) Bucket Replication Configuration.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.s3.getBucketReplicationConfiguration({
bucket: "example-bucket",
});
import pulumi
import pulumi_aws as aws
example = aws.s3.get_bucket_replication_configuration(bucket="example-bucket")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/s3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := s3.GetBucketReplicationConfiguration(ctx, &s3.GetBucketReplicationConfigurationArgs{
Bucket: "example-bucket",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.S3.GetBucketReplicationConfiguration.Invoke(new()
{
Bucket = "example-bucket",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.s3.S3Functions;
import com.pulumi.aws.s3.inputs.GetBucketReplicationConfigurationArgs;
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 example = S3Functions.getBucketReplicationConfiguration(GetBucketReplicationConfigurationArgs.builder()
.bucket("example-bucket")
.build());
}
}
variables:
example:
fn::invoke:
function: aws:s3:getBucketReplicationConfiguration
arguments:
bucket: example-bucket
Using getBucketReplicationConfiguration
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getBucketReplicationConfiguration(args: GetBucketReplicationConfigurationArgs, opts?: InvokeOptions): Promise<GetBucketReplicationConfigurationResult>
function getBucketReplicationConfigurationOutput(args: GetBucketReplicationConfigurationOutputArgs, opts?: InvokeOptions): Output<GetBucketReplicationConfigurationResult>def get_bucket_replication_configuration(bucket: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetBucketReplicationConfigurationResult
def get_bucket_replication_configuration_output(bucket: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetBucketReplicationConfigurationResult]func GetBucketReplicationConfiguration(ctx *Context, args *GetBucketReplicationConfigurationArgs, opts ...InvokeOption) (*GetBucketReplicationConfigurationResult, error)
func GetBucketReplicationConfigurationOutput(ctx *Context, args *GetBucketReplicationConfigurationOutputArgs, opts ...InvokeOption) GetBucketReplicationConfigurationResultOutput> Note: This function is named GetBucketReplicationConfiguration in the Go SDK.
public static class GetBucketReplicationConfiguration
{
public static Task<GetBucketReplicationConfigurationResult> InvokeAsync(GetBucketReplicationConfigurationArgs args, InvokeOptions? opts = null)
public static Output<GetBucketReplicationConfigurationResult> Invoke(GetBucketReplicationConfigurationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetBucketReplicationConfigurationResult> getBucketReplicationConfiguration(GetBucketReplicationConfigurationArgs args, InvokeOptions options)
public static Output<GetBucketReplicationConfigurationResult> getBucketReplicationConfiguration(GetBucketReplicationConfigurationArgs args, InvokeOptions options)
fn::invoke:
function: aws:s3/getBucketReplicationConfiguration:getBucketReplicationConfiguration
arguments:
# arguments dictionaryThe following arguments are supported:
getBucketReplicationConfiguration Result
The following output properties are available:
- Bucket string
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Role string
- The ARN of the IAM role that Amazon S3 assumes when replicating objects.
- Rules
List<Get
Bucket Replication Configuration Rule> - An unordered list of configuration blocks that define the rules managing replication.
- Bucket string
- Id string
- The provider-assigned unique ID for this managed resource.
- Region string
- Role string
- The ARN of the IAM role that Amazon S3 assumes when replicating objects.
- Rules
[]Get
Bucket Replication Configuration Rule - An unordered list of configuration blocks that define the rules managing replication.
- bucket String
- id String
- The provider-assigned unique ID for this managed resource.
- region String
- role String
- The ARN of the IAM role that Amazon S3 assumes when replicating objects.
- rules
List<Get
Bucket Replication Configuration Rule> - An unordered list of configuration blocks that define the rules managing replication.
- bucket string
- id string
- The provider-assigned unique ID for this managed resource.
- region string
- role string
- The ARN of the IAM role that Amazon S3 assumes when replicating objects.
- rules
Get
Bucket Replication Configuration Rule[] - An unordered list of configuration blocks that define the rules managing replication.
- bucket str
- id str
- The provider-assigned unique ID for this managed resource.
- region str
- role str
- The ARN of the IAM role that Amazon S3 assumes when replicating objects.
- rules
Sequence[Get
Bucket Replication Configuration Rule] - An unordered list of configuration blocks that define the rules managing replication.
Supporting Types
GetBucketReplicationConfigurationRule
- Delete
Marker List<GetReplications Bucket Replication Configuration Rule Delete Marker Replication> - Destinations
List<Get
Bucket Replication Configuration Rule Destination> - Existing
Object List<GetReplications Bucket Replication Configuration Rule Existing Object Replication> - Filters
List<Get
Bucket Replication Configuration Rule Filter> - Id string
- Prefix string
- The object key name prefix that identifies the subset of objects to which the rule applies.
- Priority int
- Source
Selection List<GetCriterias Bucket Replication Configuration Rule Source Selection Criteria> - Status string
- Delete
Marker []GetReplications Bucket Replication Configuration Rule Delete Marker Replication - Destinations
[]Get
Bucket Replication Configuration Rule Destination - Existing
Object []GetReplications Bucket Replication Configuration Rule Existing Object Replication - Filters
[]Get
Bucket Replication Configuration Rule Filter - Id string
- Prefix string
- The object key name prefix that identifies the subset of objects to which the rule applies.
- Priority int
- Source
Selection []GetCriterias Bucket Replication Configuration Rule Source Selection Criteria - Status string
- delete
Marker List<GetReplications Bucket Replication Configuration Rule Delete Marker Replication> - destinations
List<Get
Bucket Replication Configuration Rule Destination> - existing
Object List<GetReplications Bucket Replication Configuration Rule Existing Object Replication> - filters
List<Get
Bucket Replication Configuration Rule Filter> - id String
- prefix String
- The object key name prefix that identifies the subset of objects to which the rule applies.
- priority Integer
- source
Selection List<GetCriterias Bucket Replication Configuration Rule Source Selection Criteria> - status String
- delete
Marker GetReplications Bucket Replication Configuration Rule Delete Marker Replication[] - destinations
Get
Bucket Replication Configuration Rule Destination[] - existing
Object GetReplications Bucket Replication Configuration Rule Existing Object Replication[] - filters
Get
Bucket Replication Configuration Rule Filter[] - id string
- prefix string
- The object key name prefix that identifies the subset of objects to which the rule applies.
- priority number
- source
Selection GetCriterias Bucket Replication Configuration Rule Source Selection Criteria[] - status string
- delete_
marker_ Sequence[Getreplications Bucket Replication Configuration Rule Delete Marker Replication] - destinations
Sequence[Get
Bucket Replication Configuration Rule Destination] - existing_
object_ Sequence[Getreplications Bucket Replication Configuration Rule Existing Object Replication] - filters
Sequence[Get
Bucket Replication Configuration Rule Filter] - id str
- prefix str
- The object key name prefix that identifies the subset of objects to which the rule applies.
- priority int
- source_
selection_ Sequence[Getcriterias Bucket Replication Configuration Rule Source Selection Criteria] - status str
- delete
Marker List<Property Map>Replications - destinations List<Property Map>
- existing
Object List<Property Map>Replications - filters List<Property Map>
- id String
- prefix String
- The object key name prefix that identifies the subset of objects to which the rule applies.
- priority Number
- source
Selection List<Property Map>Criterias - status String
GetBucketReplicationConfigurationRuleDeleteMarkerReplication
- Status string
- Status string
- status String
- status string
- status str
- status String
GetBucketReplicationConfigurationRuleDestination
- Access
Control List<GetTranslations Bucket Replication Configuration Rule Destination Access Control Translation> - Account string
- Bucket string
- The name of the bucket to get the replication configuration for.
- Encryption
Configurations List<GetBucket Replication Configuration Rule Destination Encryption Configuration> - Metrics
List<Get
Bucket Replication Configuration Rule Destination Metric> - Replication
Times List<GetBucket Replication Configuration Rule Destination Replication Time> - Storage
Class string
- Access
Control []GetTranslations Bucket Replication Configuration Rule Destination Access Control Translation - Account string
- Bucket string
- The name of the bucket to get the replication configuration for.
- Encryption
Configurations []GetBucket Replication Configuration Rule Destination Encryption Configuration - Metrics
[]Get
Bucket Replication Configuration Rule Destination Metric - Replication
Times []GetBucket Replication Configuration Rule Destination Replication Time - Storage
Class string
- access
Control List<GetTranslations Bucket Replication Configuration Rule Destination Access Control Translation> - account String
- bucket String
- The name of the bucket to get the replication configuration for.
- encryption
Configurations List<GetBucket Replication Configuration Rule Destination Encryption Configuration> - metrics
List<Get
Bucket Replication Configuration Rule Destination Metric> - replication
Times List<GetBucket Replication Configuration Rule Destination Replication Time> - storage
Class String
- access
Control GetTranslations Bucket Replication Configuration Rule Destination Access Control Translation[] - account string
- bucket string
- The name of the bucket to get the replication configuration for.
- encryption
Configurations GetBucket Replication Configuration Rule Destination Encryption Configuration[] - metrics
Get
Bucket Replication Configuration Rule Destination Metric[] - replication
Times GetBucket Replication Configuration Rule Destination Replication Time[] - storage
Class string
- access_
control_ Sequence[Gettranslations Bucket Replication Configuration Rule Destination Access Control Translation] - account str
- bucket str
- The name of the bucket to get the replication configuration for.
- encryption_
configurations Sequence[GetBucket Replication Configuration Rule Destination Encryption Configuration] - metrics
Sequence[Get
Bucket Replication Configuration Rule Destination Metric] - replication_
times Sequence[GetBucket Replication Configuration Rule Destination Replication Time] - storage_
class str
- access
Control List<Property Map>Translations - account String
- bucket String
- The name of the bucket to get the replication configuration for.
- encryption
Configurations List<Property Map> - metrics List<Property Map>
- replication
Times List<Property Map> - storage
Class String
GetBucketReplicationConfigurationRuleDestinationAccessControlTranslation
- Owner string
- Owner string
- owner String
- owner string
- owner str
- owner String
GetBucketReplicationConfigurationRuleDestinationEncryptionConfiguration
- Replica
Kms stringKey Id
- Replica
Kms stringKey Id
- replica
Kms StringKey Id
- replica
Kms stringKey Id
- replica
Kms StringKey Id
GetBucketReplicationConfigurationRuleDestinationMetric
GetBucketReplicationConfigurationRuleDestinationMetricEventThreshold
- Minutes int
- Minutes int
- minutes Integer
- minutes number
- minutes int
- minutes Number
GetBucketReplicationConfigurationRuleDestinationReplicationTime
- status String
- times List<Property Map>
GetBucketReplicationConfigurationRuleDestinationReplicationTimeTime
- Minutes int
- Minutes int
- minutes Integer
- minutes number
- minutes int
- minutes Number
GetBucketReplicationConfigurationRuleExistingObjectReplication
- Status string
- Status string
- status String
- status string
- status str
- status String
GetBucketReplicationConfigurationRuleFilter
- Ands
List<Get
Bucket Replication Configuration Rule Filter And> - Prefix string
- The object key name prefix that identifies the subset of objects to which the rule applies.
-
List<Get
Bucket Replication Configuration Rule Filter Tag> - An unordered list of tags that identify a subset of objects to which the rule applies.
- Ands
[]Get
Bucket Replication Configuration Rule Filter And - Prefix string
- The object key name prefix that identifies the subset of objects to which the rule applies.
-
[]Get
Bucket Replication Configuration Rule Filter Tag - An unordered list of tags that identify a subset of objects to which the rule applies.
- ands
List<Get
Bucket Replication Configuration Rule Filter And> - prefix String
- The object key name prefix that identifies the subset of objects to which the rule applies.
-
List<Get
Bucket Replication Configuration Rule Filter Tag> - An unordered list of tags that identify a subset of objects to which the rule applies.
- ands
Get
Bucket Replication Configuration Rule Filter And[] - prefix string
- The object key name prefix that identifies the subset of objects to which the rule applies.
-
Get
Bucket Replication Configuration Rule Filter Tag[] - An unordered list of tags that identify a subset of objects to which the rule applies.
- ands
Sequence[Get
Bucket Replication Configuration Rule Filter And] - prefix str
- The object key name prefix that identifies the subset of objects to which the rule applies.
-
Sequence[Get
Bucket Replication Configuration Rule Filter Tag] - An unordered list of tags that identify a subset of objects to which the rule applies.
- ands List<Property Map>
- prefix String
- The object key name prefix that identifies the subset of objects to which the rule applies.
- List<Property Map>
- An unordered list of tags that identify a subset of objects to which the rule applies.
GetBucketReplicationConfigurationRuleFilterAnd
- Prefix string
- The object key name prefix that identifies the subset of objects to which the rule applies.
-
List<Get
Bucket Replication Configuration Rule Filter And Tag> - An unordered list of tags that identify a subset of objects to which the rule applies.
- Prefix string
- The object key name prefix that identifies the subset of objects to which the rule applies.
-
[]Get
Bucket Replication Configuration Rule Filter And Tag - An unordered list of tags that identify a subset of objects to which the rule applies.
- prefix String
- The object key name prefix that identifies the subset of objects to which the rule applies.
-
List<Get
Bucket Replication Configuration Rule Filter And Tag> - An unordered list of tags that identify a subset of objects to which the rule applies.
- prefix string
- The object key name prefix that identifies the subset of objects to which the rule applies.
-
Get
Bucket Replication Configuration Rule Filter And Tag[] - An unordered list of tags that identify a subset of objects to which the rule applies.
- prefix str
- The object key name prefix that identifies the subset of objects to which the rule applies.
-
Sequence[Get
Bucket Replication Configuration Rule Filter And Tag] - An unordered list of tags that identify a subset of objects to which the rule applies.
- prefix String
- The object key name prefix that identifies the subset of objects to which the rule applies.
- List<Property Map>
- An unordered list of tags that identify a subset of objects to which the rule applies.
GetBucketReplicationConfigurationRuleFilterAndTag
GetBucketReplicationConfigurationRuleFilterTag
GetBucketReplicationConfigurationRuleSourceSelectionCriteria
GetBucketReplicationConfigurationRuleSourceSelectionCriteriaReplicaModification
- Status string
- Status string
- status String
- status string
- status str
- status String
GetBucketReplicationConfigurationRuleSourceSelectionCriteriaSseKmsEncryptedObject
- Status string
- Status string
- status String
- status string
- status str
- status String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
Viewing docs for AWS v7.22.0
published on Wednesday, Mar 11, 2026 by Pulumi
published on Wednesday, Mar 11, 2026 by Pulumi
