NotificationFilterProperty Struct
Specifies object key name filtering rules.
For information about key name filtering, see Configuring event notifications using object key name filtering in the Amazon S3 User Guide .
| Source | |
|---|---|
| Type last changed |
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 notificationFilterProperty: s3.CfnBucket.NotificationFilterProperty = {
s3Key: {
rules: [{
name: 'name',
value: 'value',
}],
},
};
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
notification_filter_property = s3.CfnBucket.NotificationFilterProperty(
s3_key=s3.CfnBucket.S3KeyFilterProperty(
rules=[s3.CfnBucket.FilterRuleProperty(
name="name",
value="value"
)]
)
)
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.*;
NotificationFilterProperty notificationFilterProperty = NotificationFilterProperty.builder()
.s3Key(S3KeyFilterProperty.builder()
.rules(List.of(FilterRuleProperty.builder()
.name("name")
.value("value")
.build()))
.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 notificationFilterProperty = new NotificationFilterProperty {
S3Key = new S3KeyFilterProperty {
Rules = new [] { new FilterRuleProperty {
Name = "name",
Value = "value"
} }
}
};
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"
notificationFilterProperty := &NotificationFilterProperty{
S3Key: &S3KeyFilterProperty{
Rules: []interface{}{
&FilterRuleProperty{
Name: jsii.String("name"),
Value: jsii.String("value"),
},
},
},
}
Properties
s3KeyIResolvable | CfnBucket.S3KeyFilterPropertys3_keytyping.Union[IResolvable, S3KeyFilterProperty]s3KeyIResolvableS3KeyIResolvableS3Keyinterface{} required #A container for object key name prefix and suffix filtering rules.