@awsless/awsless 0.0.55 → 0.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +14 -2
- package/package.json +2 -2
package/dist/bin.js
CHANGED
|
@@ -1914,7 +1914,7 @@ var Table = class extends Resource {
|
|
|
1914
1914
|
return getAtt(this.logicalId, "StreamArn");
|
|
1915
1915
|
}
|
|
1916
1916
|
get permissions() {
|
|
1917
|
-
|
|
1917
|
+
const permissions = [{
|
|
1918
1918
|
actions: [
|
|
1919
1919
|
"dynamodb:DescribeTable",
|
|
1920
1920
|
"dynamodb:PutItem",
|
|
@@ -1934,7 +1934,19 @@ var Table = class extends Resource {
|
|
|
1934
1934
|
resourceName: this.name
|
|
1935
1935
|
})
|
|
1936
1936
|
]
|
|
1937
|
-
};
|
|
1937
|
+
}];
|
|
1938
|
+
const indexNames = Object.keys(this.indexes ?? {});
|
|
1939
|
+
if (indexNames.length > 0) {
|
|
1940
|
+
permissions.push({
|
|
1941
|
+
actions: ["dynamodb:Query"],
|
|
1942
|
+
resources: indexNames.map((indexName) => formatArn({
|
|
1943
|
+
service: "dynamodb",
|
|
1944
|
+
resource: "table",
|
|
1945
|
+
resourceName: `${this.name}/index/${indexName}`
|
|
1946
|
+
}))
|
|
1947
|
+
});
|
|
1948
|
+
}
|
|
1949
|
+
return permissions;
|
|
1938
1950
|
}
|
|
1939
1951
|
attributeDefinitions() {
|
|
1940
1952
|
const fields = this.props.fields || {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/awsless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.56",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
+
"@awsless/lambda": "^0.0.6",
|
|
26
27
|
"@awsless/sns": "^0.0.6",
|
|
27
28
|
"@awsless/sqs": "^0.0.6",
|
|
28
|
-
"@awsless/lambda": "^0.0.6",
|
|
29
29
|
"@awsless/ssm": "^0.0.7"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|