You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2019/08/04 06:28:36 UTC
[GitHub] [nifi] turcsanyip commented on a change in pull request #3601:
NIFI-6468: Adding AWS S3 'requester pays' to Fetch and List processors.
turcsanyip commented on a change in pull request #3601: NIFI-6468: Adding AWS S3 'requester pays' to Fetch and List processors.
URL: https://github.com/apache/nifi/pull/3601#discussion_r310372294
##########
File path: nifi-nar-bundles/nifi-aws-bundle/nifi-aws-abstract-processors/src/main/java/org/apache/nifi/processors/aws/s3/AbstractS3Processor.java
##########
@@ -126,6 +126,15 @@
new AllowableValue("S3SignerType", "Signature v2"))
.defaultValue("Default Signature")
.build();
+ public static final PropertyDescriptor REQUESTER_PAYS = new PropertyDescriptor.Builder()
+ .name("requester-pays")
+ .displayName("Requester Pays")
+ .description("If set to 'True', the 'x-amz-request-payer' header will be set to 'requester', indicating that you agree to pay S3 bucket request "
+ + " charges. Note that this is not supported when listing object versions.")
+ .required(true)
Review comment:
In order to validate multiple properties together, you'll need to override `AbstractConfigurableComponent.customValidate()` method in `ListS3`. You can access all the processor's properties from the ValidationContext parameter of the method and can implement more complex validation logic. Please see `CouchbaseClusterService..customValidate()` for example.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services