Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// extensions to: https://docs.aws.amazon.com/sdk-for-go/api/service/s3/
type RGWNotificationConfigurationFilter struct {
// A container for object key name prefix and suffix filtering rules.
Key *KeyFilter `locationName:"S3Key" type:"structure"`
Metadata *RGWMapFilter `locationName:"RGWMetadata" type:"structure"`
Tag *RGWMapFilter `locationName:"RGWTag" type:"structure"`
// contains filtered or unexported fields
}
type RGWMapFilter struct {
// A list of containers for the key-value pair that defines the criteria for
// the filter rule.
FilterRules []*MapFilterRule `locationName:"MapFilterRule" type:"list" flattened:"true"`
// contains filtered or unexported fields
}
type RGWFilterRule struct {
// name of attribute or tag
Name *string `type:"string"`
// value of attribute or tag
Value *string `type:"string"`
}
const (
// FilterRuleNamePrefix is a FilterRuleName enum value
FilterRuleNamePrefix = "prefix"
// FilterRuleNameSuffix is a FilterRuleName enum value
FilterRuleNameSuffix = "suffix"
// FilterRuleNameRegex is a FilterRuleName enum value
FilterRuleNameRegex = "regex"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment