From 860663ae3e2d2da0b725c66d96aeeab146c0a43c Mon Sep 17 00:00:00 2001 From: Andrew Lim Date: Wed, 29 Aug 2018 13:24:22 -0400 Subject: [PATCH] NIFI-5526 Improve PutS3Object processor documentation This closes #2975. Signed-off-by: Andy LoPresto --- .../nifi/processors/aws/s3/PutS3Object.java | 12 +++--- .../additionalDetails.html | 37 +++++++++++++++++++ 2 files changed, 43 insertions(+), 6 deletions(-) create mode 100644 nifi-nar-bundles/nifi-aws-bundle/nifi-aws-processors/src/main/resources/docs/org.apache.nifi.processors.aws.s3.PutS3Object/additionalDetails.html diff --git a/nifi-nar-bundles/nifi-aws-bundle/nifi-aws-processors/src/main/java/org/apache/nifi/processors/aws/s3/PutS3Object.java b/nifi-nar-bundles/nifi-aws-bundle/nifi-aws-processors/src/main/java/org/apache/nifi/processors/aws/s3/PutS3Object.java index 49a649e8c4..dfbcbda03a 100644 --- a/nifi-nar-bundles/nifi-aws-bundle/nifi-aws-processors/src/main/java/org/apache/nifi/processors/aws/s3/PutS3Object.java +++ b/nifi-nar-bundles/nifi-aws-bundle/nifi-aws-processors/src/main/java/org/apache/nifi/processors/aws/s3/PutS3Object.java @@ -88,13 +88,13 @@ import com.amazonaws.services.s3.model.UploadPartResult; @SeeAlso({FetchS3Object.class, DeleteS3Object.class, ListS3.class}) @InputRequirement(Requirement.INPUT_REQUIRED) @Tags({"Amazon", "S3", "AWS", "Archive", "Put"}) -@CapabilityDescription("Puts FlowFiles to an Amazon S3 Bucket\n" + - "The upload uses either the PutS3Object method or PutS3MultipartUpload methods. The PutS3Object method " + - "send the file in a single synchronous call, but it has a 5GB size limit. Larger files are sent using the " + - "multipart upload methods that initiate, transfer the parts, and complete an upload. This multipart process " + +@CapabilityDescription("Puts FlowFiles to an Amazon S3 Bucket.\n" + + "The upload uses either the PutS3Object method or the PutS3MultipartUpload method. The PutS3Object method " + + "sends the file in a single synchronous call, but it has a 5GB size limit. Larger files are sent using the " + + "PutS3MultipartUpload method. This multipart process " + "saves state after each step so that a large upload can be resumed with minimal loss if the processor or " + "cluster is stopped and restarted.\n" + - "A multipart upload consists of three steps\n" + + "A multipart upload consists of three steps:\n" + " 1) initiate upload,\n" + " 2) upload the parts, and\n" + " 3) complete the upload.\n" + @@ -103,7 +103,7 @@ import com.amazonaws.services.s3.model.UploadPartResult; "The AWS libraries select an endpoint URL based on the AWS region, but this can be overridden with the " + "'Endpoint Override URL' property for use with other S3-compatible endpoints.\n" + "The S3 API specifies that the maximum file size for a PutS3Object upload is 5GB. It also requires that " + - "parts in a multipart upload must be at least 5MB in size, except for the last part. These limits are " + + "parts in a multipart upload must be at least 5MB in size, except for the last part. These limits " + "establish the bounds for the Multipart Upload Threshold and Part Size properties.") @DynamicProperty(name = "The name of a User-Defined Metadata field to add to the S3 Object", value = "The value of a User-Defined Metadata field to add to the S3 Object", diff --git a/nifi-nar-bundles/nifi-aws-bundle/nifi-aws-processors/src/main/resources/docs/org.apache.nifi.processors.aws.s3.PutS3Object/additionalDetails.html b/nifi-nar-bundles/nifi-aws-bundle/nifi-aws-processors/src/main/resources/docs/org.apache.nifi.processors.aws.s3.PutS3Object/additionalDetails.html new file mode 100644 index 0000000000..50a0210cfb --- /dev/null +++ b/nifi-nar-bundles/nifi-aws-bundle/nifi-aws-processors/src/main/resources/docs/org.apache.nifi.processors.aws.s3.PutS3Object/additionalDetails.html @@ -0,0 +1,37 @@ + + + + + + PutS3Object + + + + +

Configuration Details

+

Object Key

+

The Object Key property value should not start with "/".

+

Credentials File

+

The Credentials File property allows the user to specify the path to a file containing the AWS access key and secret key. The contents of the file should be in the following format:

+
+        [default]
+		accessKey=<access key>
+		secretKey=<security key>
+    
+

Make sure the credentials file is readable by the NiFi service user.

+

When using the Credential File property, ensure that there are no values for the Access Key and Secret Key properties. The Value column should read "No value set" for both. Note: Do not check "Set empty string" for either as the empty string is considered a set value.

+ + \ No newline at end of file