Ashishkumar Pandey
10/04/2021, 12:51 AM-
(hyphens), what are these? I’ve never seen these before, is this something new in javascript? Code snippet for reference :-
cron.attachPermissions([
new cdk.aws() -
iam.PolicyStatement({
actions: ["execute-api:Invoke"],
effect: cdk.aws - iam.Effect.ALLOW,
resources: [
`arn:aws:execute-api:${region}:${account}:${api.httpApiId}/*`,
],
}),
]);
Adrián Mouly
10/04/2021, 12:52 AMAdrián Mouly
10/04/2021, 12:53 AMAshishkumar Pandey
10/04/2021, 12:53 AMFrank
import { PolicyStatement, Effect } from "@aws-cdk/aws-iam";
cron.attachPermissions([
new PolicyStatement({
actions: ["execute-api:Invoke"],
effect: Effect.ALLOW,
resources: [
`arn:aws:execute-api:${region}:${account}:${api.httpApiId}/*`,
],
}),
]);
Frank
Ashishkumar Pandey
10/04/2021, 3:54 AM