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

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.
@@ -1,9 +1,9 @@
1
- import { Scope } from '@aws-blocks/core/cdk';
1
+ import { BuildingBlockScope } from '@aws-blocks/core/cdk';
2
2
  import type { ScopeParent } from '@aws-blocks/core';
3
3
  export { EmailErrors } from './errors.js';
4
4
  export type { EmailOptions, EmailMessage, SendResult, SendBatchResult } from './types.js';
5
5
  import type { EmailOptions } from './types.js';
6
- export declare class EmailClient extends Scope {
6
+ export declare class EmailClient extends BuildingBlockScope {
7
7
  constructor(scope: ScopeParent, id: string, options: EmailOptions);
8
8
  }
9
9
  //# sourceMappingURL=index.cdk.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cdk.d.ts","sourceRoot":"","sources":["../src/index.cdk.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAGpD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE1F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,qBAAa,WAAY,SAAQ,KAAK;gBACzB,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY;CAgCjE"}
1
+ {"version":3,"file":"index.cdk.d.ts","sourceRoot":"","sources":["../src/index.cdk.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAGpD,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE1F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C,qBAAa,WAAY,SAAQ,kBAAkB;gBACtC,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY;CAgCjE"}
package/dist/index.cdk.js CHANGED
@@ -1,13 +1,14 @@
1
1
  // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  // SPDX-License-Identifier: Apache-2.0
3
+ import * as ec2 from 'aws-cdk-lib/aws-ec2';
3
4
  import { Effect, PolicyStatement } from 'aws-cdk-lib/aws-iam';
4
5
  import { Stack } from 'aws-cdk-lib';
5
- import { Scope } from '@aws-blocks/core/cdk';
6
+ import { BuildingBlockScope } from '@aws-blocks/core/cdk';
6
7
  // Re-export public types and errors (no runtime dependencies)
7
8
  export { EmailErrors } from './errors.js';
8
- export class EmailClient extends Scope {
9
+ export class EmailClient extends BuildingBlockScope {
9
10
  constructor(scope, id, options) {
10
- super(id, { parent: scope });
11
+ super(id, { parent: scope, vpc: { interfaceEndpoints: [ec2.InterfaceVpcEndpointAwsService.SES] } });
11
12
  console.warn(`\n⚠️ [Email] Prerequisite: Domain for "${options.fromAddress}" must be verified in SES.\n` +
12
13
  ` Guide: https://docs.aws.amazon.com/ses/latest/dg/creating-identities.html\n`);
13
14
  // TODO: Add a CDK custom resource that validates the SES email identity at deploy time.
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.6";
2
+ export declare const BB_VERSION = "0.1.7";
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.6';
3
+ export const BB_VERSION = '0.1.7';
package/package.json CHANGED
@@ -1,6 +1,12 @@
1
1
  {
2
2
  "name": "@aws-blocks/bb-email-client",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
+ "keywords": [
5
+ "aws-blocks",
6
+ "email",
7
+ "ses",
8
+ "transactional-email"
9
+ ],
4
10
  "repository": {
5
11
  "type": "git",
6
12
  "url": "git+https://github.com/aws-devtools-labs/aws-blocks.git",
@@ -38,8 +44,8 @@
38
44
  "test": "node --test --test-concurrency=1 dist/*.test.js"
39
45
  },
40
46
  "dependencies": {
41
- "@aws-blocks/core": "^0.4.0",
42
- "@aws-blocks/bb-logger": "^0.1.6",
47
+ "@aws-blocks/core": "^0.5.0",
48
+ "@aws-blocks/bb-logger": "^0.2.0",
43
49
  "@aws-sdk/client-sesv2": "^3.0.0"
44
50
  },
45
51
  "devDependencies": {
package/src/index.cdk.ts CHANGED
@@ -2,9 +2,10 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
3
 
4
4
  import { CfnConfigurationSet } from 'aws-cdk-lib/aws-ses';
5
+ import * as ec2 from 'aws-cdk-lib/aws-ec2';
5
6
  import { Effect, PolicyStatement } from 'aws-cdk-lib/aws-iam';
6
7
  import { Stack } from 'aws-cdk-lib';
7
- import { Scope } from '@aws-blocks/core/cdk';
8
+ import { BuildingBlockScope } from '@aws-blocks/core/cdk';
8
9
  import type { ScopeParent } from '@aws-blocks/core';
9
10
 
10
11
  // Re-export public types and errors (no runtime dependencies)
@@ -13,9 +14,9 @@ export type { EmailOptions, EmailMessage, SendResult, SendBatchResult } from './
13
14
 
14
15
  import type { EmailOptions } from './types.js';
15
16
 
16
- export class EmailClient extends Scope {
17
+ export class EmailClient extends BuildingBlockScope {
17
18
  constructor(scope: ScopeParent, id: string, options: EmailOptions) {
18
- super(id, { parent: scope });
19
+ super(id, { parent: scope, vpc: { interfaceEndpoints: [ec2.InterfaceVpcEndpointAwsService.SES] } });
19
20
 
20
21
  console.warn(
21
22
  `\n⚠️ [Email] Prerequisite: Domain for "${options.fromAddress}" must be verified in SES.\n` +
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.6';
3
+ export const BB_VERSION = '0.1.7';