cdk-real-drift 0.20.1 → 0.21.0
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/cli.js +56 -1
- package/dist/cli.js.map +1 -1
- package/package.json +2 -1
package/dist/cli.js
CHANGED
|
@@ -55,6 +55,7 @@ import { GetWorkgroupCommand, RedshiftServerlessClient } from "@aws-sdk/client-r
|
|
|
55
55
|
import { BuildBotLocaleCommand, CreateIntentCommand, CreateSlotCommand, CreateSlotTypeCommand, DeleteIntentCommand, DeleteSlotCommand, DeleteSlotTypeCommand, DescribeBotLocaleCommand, DescribeIntentCommand, DescribeSlotCommand, DescribeSlotTypeCommand, LexModelsV2Client, ListBotLocalesCommand, ListIntentsCommand, ListSlotTypesCommand, ListSlotsCommand, UpdateBotLocaleCommand, UpdateIntentCommand, UpdateSlotCommand, UpdateSlotTypeCommand } from "@aws-sdk/client-lex-models-v2";
|
|
56
56
|
import { GetScheduleCommand, SchedulerClient } from "@aws-sdk/client-scheduler";
|
|
57
57
|
import { DescribeReceiptRuleCommand, DescribeReceiptRuleSetCommand, ListReceiptFiltersCommand, SESClient, UpdateReceiptRuleCommand } from "@aws-sdk/client-ses";
|
|
58
|
+
import { GetConfigurationSetEventDestinationsCommand, SESv2Client } from "@aws-sdk/client-sesv2";
|
|
58
59
|
import { DescribeEndpointConfigCommand, DescribeMonitoringScheduleCommand, ListTagsCommand as ListTagsCommand$1, SageMakerClient, UpdateMonitoringScheduleCommand } from "@aws-sdk/client-sagemaker";
|
|
59
60
|
import { GetNamespaceCommand, GetServiceCommand, ListTagsForResourceCommand as ListTagsForResourceCommand$4, ServiceDiscoveryClient, UpdateHttpNamespaceCommand, UpdateServiceCommand as UpdateServiceCommand$1 } from "@aws-sdk/client-servicediscovery";
|
|
60
61
|
import { createHash } from "node:crypto";
|
|
@@ -4193,7 +4194,8 @@ function isPropertiesFileEqual(a, b) {
|
|
|
4193
4194
|
const CASE_INSENSITIVE_ARRAY_PATHS = {
|
|
4194
4195
|
"AWS::ApiGatewayV2::Api": new Set(["CorsConfiguration.AllowHeaders", "CorsConfiguration.ExposeHeaders"]),
|
|
4195
4196
|
"AWS::Lambda::Url": new Set(["Cors.AllowHeaders", "Cors.ExposeHeaders"]),
|
|
4196
|
-
"AWS::CertificateManager::Certificate": new Set(["SubjectAlternativeNames"])
|
|
4197
|
+
"AWS::CertificateManager::Certificate": new Set(["SubjectAlternativeNames"]),
|
|
4198
|
+
"AWS::SES::ConfigurationSetEventDestination": new Set(["EventDestination.MatchingEventTypes"])
|
|
4197
4199
|
};
|
|
4198
4200
|
function isCaseInsensitiveEqualScalarSet(a, b) {
|
|
4199
4201
|
if (!Array.isArray(a) || !Array.isArray(b) || a.length !== b.length) return false;
|
|
@@ -12977,6 +12979,58 @@ const readSesReceiptFilter = async ({ physicalId, declared, region }) => {
|
|
|
12977
12979
|
} }
|
|
12978
12980
|
} };
|
|
12979
12981
|
};
|
|
12982
|
+
const SES_EVENT_TYPE_TO_CFN = {
|
|
12983
|
+
SEND: "send",
|
|
12984
|
+
REJECT: "reject",
|
|
12985
|
+
BOUNCE: "bounce",
|
|
12986
|
+
COMPLAINT: "complaint",
|
|
12987
|
+
DELIVERY: "delivery",
|
|
12988
|
+
OPEN: "open",
|
|
12989
|
+
CLICK: "click",
|
|
12990
|
+
RENDERING_FAILURE: "renderingFailure",
|
|
12991
|
+
DELIVERY_DELAY: "deliveryDelay",
|
|
12992
|
+
SUBSCRIPTION: "subscription"
|
|
12993
|
+
};
|
|
12994
|
+
const SES_DIMENSION_VALUE_SOURCE_TO_CFN = {
|
|
12995
|
+
MESSAGE_TAG: "messageTag",
|
|
12996
|
+
EMAIL_HEADER: "emailHeader",
|
|
12997
|
+
LINK_TAG: "linkTag"
|
|
12998
|
+
};
|
|
12999
|
+
const readSesConfigurationSetEventDestination = async ({ physicalId, declared, region }) => {
|
|
13000
|
+
const csName = str$1(declared.ConfigurationSetName);
|
|
13001
|
+
if (!csName) return void 0;
|
|
13002
|
+
const declDest = declared.EventDestination;
|
|
13003
|
+
const destName = str$1(declDest?.Name) ?? str$1(physicalId);
|
|
13004
|
+
if (!destName) return void 0;
|
|
13005
|
+
const live = ((await new SESv2Client({
|
|
13006
|
+
region,
|
|
13007
|
+
...READ_RETRY
|
|
13008
|
+
}).send(new GetConfigurationSetEventDestinationsCommand({ ConfigurationSetName: csName }))).EventDestinations ?? []).find((d) => d.Name === destName);
|
|
13009
|
+
if (!live) throw new ResourceGoneError(`SES event destination ${destName} absent from configuration set ${csName}`);
|
|
13010
|
+
const dest = {};
|
|
13011
|
+
if (str$1(declDest?.Name) !== void 0) dest.Name = live.Name;
|
|
13012
|
+
if (live.Enabled !== void 0) dest.Enabled = live.Enabled;
|
|
13013
|
+
if (live.MatchingEventTypes && live.MatchingEventTypes.length > 0) dest.MatchingEventTypes = live.MatchingEventTypes.map((t) => SES_EVENT_TYPE_TO_CFN[t] ?? t);
|
|
13014
|
+
const dims = live.CloudWatchDestination?.DimensionConfigurations;
|
|
13015
|
+
if (dims && dims.length > 0) dest.CloudWatchDestination = { DimensionConfigurations: dims.map((d) => ({
|
|
13016
|
+
DimensionName: d.DimensionName,
|
|
13017
|
+
DimensionValueSource: d.DimensionValueSource ? SES_DIMENSION_VALUE_SOURCE_TO_CFN[d.DimensionValueSource] ?? d.DimensionValueSource : d.DimensionValueSource,
|
|
13018
|
+
DefaultDimensionValue: d.DefaultDimensionValue
|
|
13019
|
+
})) };
|
|
13020
|
+
const kfh = live.KinesisFirehoseDestination;
|
|
13021
|
+
if (kfh) dest.KinesisFirehoseDestination = {
|
|
13022
|
+
...str$1(kfh.IamRoleArn) !== void 0 && { IAMRoleARN: kfh.IamRoleArn },
|
|
13023
|
+
...str$1(kfh.DeliveryStreamArn) !== void 0 && { DeliveryStreamARN: kfh.DeliveryStreamArn }
|
|
13024
|
+
};
|
|
13025
|
+
const sns = live.SnsDestination;
|
|
13026
|
+
if (sns && str$1(sns.TopicArn) !== void 0) dest.SnsDestination = { TopicARN: sns.TopicArn };
|
|
13027
|
+
const eb = live.EventBridgeDestination;
|
|
13028
|
+
if (eb && str$1(eb.EventBusArn) !== void 0) dest.EventBridgeDestination = { EventBusArn: eb.EventBusArn };
|
|
13029
|
+
return {
|
|
13030
|
+
ConfigurationSetName: csName,
|
|
13031
|
+
EventDestination: dest
|
|
13032
|
+
};
|
|
13033
|
+
};
|
|
12980
13034
|
const ACM_DEFAULT_TRANSPARENCY = "ENABLED";
|
|
12981
13035
|
const readAcmCertificate = async ({ physicalId, declared, region }) => {
|
|
12982
13036
|
const arn = str$1(physicalId);
|
|
@@ -13116,6 +13170,7 @@ const SDK_OVERRIDES = {
|
|
|
13116
13170
|
"AWS::SES::ReceiptRuleSet": readSesReceiptRuleSet,
|
|
13117
13171
|
"AWS::SES::ReceiptRule": readSesReceiptRule,
|
|
13118
13172
|
"AWS::SES::ReceiptFilter": readSesReceiptFilter,
|
|
13173
|
+
"AWS::SES::ConfigurationSetEventDestination": readSesConfigurationSetEventDestination,
|
|
13119
13174
|
"AWS::Cognito::IdentityPool": readCognitoIdentityPool,
|
|
13120
13175
|
"AWS::AppSync::ApiKey": readAppSyncApiKey,
|
|
13121
13176
|
"AWS::ServiceDiscovery::HttpNamespace": readServiceDiscoveryNamespace,
|