Skip to content
v2.278.0

SourceSelectionCriteriaProperty ​

Struct External

A container that describes additional filters for identifying the source objects that you want to replicate.

You can choose to enable or disable the replication of these objects.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_s3 as s3 } from 'aws-cdk-lib';
const sourceSelectionCriteriaProperty: s3.CfnBucket.SourceSelectionCriteriaProperty = {
  replicaModifications: {
    status: 'status',
  },
  sseKmsEncryptedObjects: {
    status: 'status',
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_s3 as s3

source_selection_criteria_property = s3.CfnBucket.SourceSelectionCriteriaProperty(
    replica_modifications=s3.CfnBucket.ReplicaModificationsProperty(
        status="status"
    ),
    sse_kms_encrypted_objects=s3.CfnBucket.SseKmsEncryptedObjectsProperty(
        status="status"
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.s3.*;

SourceSelectionCriteriaProperty sourceSelectionCriteriaProperty = SourceSelectionCriteriaProperty.builder()
        .replicaModifications(ReplicaModificationsProperty.builder()
                .status("status")
                .build())
        .sseKmsEncryptedObjects(SseKmsEncryptedObjectsProperty.builder()
                .status("status")
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3;

var sourceSelectionCriteriaProperty = new SourceSelectionCriteriaProperty {
    ReplicaModifications = new ReplicaModificationsProperty {
        Status = "status"
    },
    SseKmsEncryptedObjects = new SseKmsEncryptedObjectsProperty {
        Status = "status"
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

sourceSelectionCriteriaProperty := &SourceSelectionCriteriaProperty{
	ReplicaModifications: &ReplicaModificationsProperty{
		Status: jsii.String("status"),
	},
	SseKmsEncryptedObjects: &SseKmsEncryptedObjectsProperty{
		Status: jsii.String("status"),
	},
}

Properties ​

replicaModificationsoptionalIResolvable | CfnBucket.ReplicaModificationsPropertyreplica_modificationsoptionaltyping.Union[IResolvable, ReplicaModificationsProperty]replicaModificationsoptionalIResolvableReplicaModificationsoptionalIResolvableReplicaModificationsoptionalinterface{} #
A filter that you can specify for selection for modifications on replicas.
sseKmsEncryptedObjectsoptionalIResolvable | CfnBucket.SseKmsEncryptedObjectsPropertysse_kms_encrypted_objectsoptionaltyping.Union[IResolvable, SseKmsEncryptedObjectsProperty]sseKmsEncryptedObjectsoptionalIResolvableSseKmsEncryptedObjectsoptionalIResolvableSseKmsEncryptedObjectsoptionalinterface{} #
A container for filter information for the selection of Amazon S3 objects encrypted with AWS KMS.