From b6497d4a7ea9893f6974a1baefb1a6d638dca205 Mon Sep 17 00:00:00 2001 From: Nathan Gillett Date: Fri, 21 Feb 2020 09:29:24 -0500 Subject: [PATCH 1/2] Docs: fix map_to_s3-schema from_date description Fills some missing words in the sentence to make more sense --- docs/schemas/map_to_s3-schema.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/schemas/map_to_s3-schema.rst b/docs/schemas/map_to_s3-schema.rst index 75bef00e..d0ed7a71 100644 --- a/docs/schemas/map_to_s3-schema.rst +++ b/docs/schemas/map_to_s3-schema.rst @@ -32,7 +32,7 @@ Keys The datetime at which the content is made available, i.e., "2020-02-17T20:48:13.037+00:00". - Only content sooner than or equal to the current date and time may be + Only content with a from_date sooner than or equal to the current date and time may be retrieved from the origin. Attributes From a42a5568291f340756e9066f06ab3bcfad2aee35 Mon Sep 17 00:00:00 2001 From: Nathan Gillett Date: Fri, 21 Feb 2020 10:47:21 -0500 Subject: [PATCH 2/2] Docs: improve map_to_s3 function description Adds an example of the URI transformation and clarifies sentence about DynamoDB table --- docs/functions/map_to_s3.rst | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/functions/map_to_s3.rst b/docs/functions/map_to_s3.rst index fefde8ed..1a39e68d 100644 --- a/docs/functions/map_to_s3.rst +++ b/docs/functions/map_to_s3.rst @@ -1,11 +1,14 @@ map_to_s3 ========= -This function provides mapping from a web URI, delivered by an AWS CloudFront -event, to the key of an object in an AWS S3 bucket. +The map_to_s3 function provides mapping from a web URI, delivered by an AWS +CloudFront event, to the key of an object in an AWS S3 bucket. -The mapping between the URI and the object key is defined by the provided AWS -DynamoDB table this function is deployed with. +Using this function, a URI like "/path/to/s3/file" would be transformed to +something like "/some-s3-file-object-key". + +The mapping between the URI and the object key is defined by the AWS DynamoDB +table specified in the configuration file that this function is deployed with. Required schemas for the DynamoDB table and S3 bucket can be found in the :doc:`schema reference <../schema-reference>`.