@aws-blocks/bb-email-client 0.1.5 → 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.
- package/dist/index.cdk.d.ts +2 -2
- package/dist/index.cdk.d.ts.map +1 -1
- package/dist/index.cdk.js +4 -3
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +9 -3
- package/src/index.cdk.ts +4 -3
- package/src/version.ts +1 -1
package/dist/index.cdk.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
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
|
|
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
|
package/dist/index.cdk.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cdk.d.ts","sourceRoot":"","sources":["../src/index.cdk.ts"],"names":[],"mappings":"
|
|
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 {
|
|
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
|
|
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
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-blocks/bb-email-client",
|
|
3
|
-
"version": "0.1.
|
|
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.
|
|
42
|
-
"@aws-blocks/bb-logger": "^0.
|
|
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 {
|
|
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
|
|
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