@aws-blocks/bb-email-client 0.1.4 → 0.1.6

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/index.cdk.js CHANGED
@@ -18,7 +18,7 @@ export class EmailClient extends Scope {
18
18
  // 3. Include a link to the SES identity setup guide in the warning message
19
19
  // Grant the Lambda handler permission to send emails
20
20
  // Scoped to this account's SES identities rather than '*'
21
- this.handler.addToRolePolicy(new PolicyStatement({
21
+ this.executionRole.addToPrincipalPolicy(new PolicyStatement({
22
22
  effect: Effect.ALLOW,
23
23
  actions: [
24
24
  'ses:SendEmail',
package/dist/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export declare const BB_NAME = "EmailClient";
2
- export declare const BB_VERSION = "0.1.4";
2
+ export declare const BB_VERSION = "0.1.6";
3
3
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // Auto-generated by scripts/generate-version.mjs — do not edit manually
2
2
  export const BB_NAME = 'EmailClient';
3
- export const BB_VERSION = '0.1.4';
3
+ export const BB_VERSION = '0.1.6';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-blocks/bb-email-client",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/aws-devtools-labs/aws-blocks.git",
@@ -38,8 +38,8 @@
38
38
  "test": "node --test --test-concurrency=1 dist/*.test.js"
39
39
  },
40
40
  "dependencies": {
41
- "@aws-blocks/core": "^0.2.0",
42
- "@aws-blocks/bb-logger": "^0.1.4",
41
+ "@aws-blocks/core": "^0.4.0",
42
+ "@aws-blocks/bb-logger": "^0.1.6",
43
43
  "@aws-sdk/client-sesv2": "^3.0.0"
44
44
  },
45
45
  "devDependencies": {
package/src/index.cdk.ts CHANGED
@@ -31,7 +31,7 @@ export class EmailClient extends Scope {
31
31
 
32
32
  // Grant the Lambda handler permission to send emails
33
33
  // Scoped to this account's SES identities rather than '*'
34
- this.handler.addToRolePolicy(new PolicyStatement({
34
+ this.executionRole.addToPrincipalPolicy(new PolicyStatement({
35
35
  effect: Effect.ALLOW,
36
36
  actions: [
37
37
  'ses:SendEmail',
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  // Auto-generated by scripts/generate-version.mjs — do not edit manually
2
2
  export const BB_NAME = 'EmailClient';
3
- export const BB_VERSION = '0.1.4';
3
+ export const BB_VERSION = '0.1.6';