dawson-snippets
Advanced tools
Comparing version 0.17.2 to 0.17.3
@@ -31,3 +31,3 @@ | ||
gsiKeyName: 'Email', | ||
projectedAttributes: ['Password', 'SessionToken'] | ||
projectedAttributes: ['Password', 'SessionToken'] // optional, defaults to undefined | ||
}); | ||
@@ -38,3 +38,3 @@ | ||
gsiKeyName: 'SessionToken', | ||
projectedAttributes: ['UserId'] | ||
projectedAttributes: ['UserId'] // optional, defaults to undefined | ||
}); | ||
@@ -64,2 +64,3 @@ | ||
* This snippet is composable with all the others `dynamodb-*` snippets | ||
* If `projectedAttributes` is specified, then *only the specified table attributes are projected into the index*; else *all of the table attributes are projected into the index* ([AWS Documentation for INCLUDE and ALL](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-dynamodb-projectionobject.html)). | ||
* `lodash.merge` does not `.concat` Arrays, so you need to use `lodash.mergeWith` to add many GSIs without overwriting previous ones or overriding Primary Key's Schema. `mergeCustomizer` is a shortcut [customizer function](https://lodash.com/docs/4.17.4#mergeWith). | ||
@@ -66,0 +67,0 @@ * This snippet supports Global Secondary Indexes with a Partition (Hash) Key of type String |
{ | ||
"name": "dawson-snippets", | ||
"version": "0.17.2", | ||
"version": "0.17.3", | ||
"description": "Snippets for CloudFormation templates", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -5,3 +5,3 @@ | ||
Creates an S3 Bucket with a basic CORS Configuration. The Physical Bucket Name is automatically generated. | ||
Creates an S3 Bucket which sends Notifications to a Lambda Function you have defined. The Physical Bucket Name is automatically generated. | ||
@@ -41,2 +41,4 @@ ![](https://nodei.co/npm/dawson-snippets.png?mini=true) | ||
* This snippet is composable with all the others `s3-bucket-*` snippets | ||
* This snipped does not create a Lambda Function. You must specify a Logical Resource Id of a Lambda Function that is defined in the current `CloudFormation Template` | ||
* Appropriate `Lambda::Permission` are automatically added, allowing your Lambda Function to be called by S3 | ||
* [Documentation for the `eventType` property](https://docs.aws.amazon.com/AmazonS3/latest/dev/NotificationHowTo.html) (scroll to «Supported Event Types») | ||
@@ -43,0 +45,0 @@ * [Documentation for the `filterRules` property](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-notificationconfiguration-config-filter-s3key-rules.html), example: ```[{ Name: 'suffix', Value: 'latest/data.json' }]``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
194380
28
930