@go-to-k/cdkd 0.239.0 → 0.241.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.
@@ -5765,6 +5765,27 @@ function attributeTypeChangedForSharedAttribute(oldValue, newValue) {
5765
5765
  return false;
5766
5766
  }
5767
5767
  /**
5768
+ * Conditional-replacement predicate for `AWS::Budgets::Budget.Budget`.
5769
+ *
5770
+ * The budget name (`Budget.BudgetName`, nested) is the physical id and is
5771
+ * createOnly — only a name change forces replacement; every other edit
5772
+ * inside the `Budget` block (limit, period, type, filters) is an in-place
5773
+ * `UpdateBudget`. A one-sided explicit name (added or removed) is treated as
5774
+ * a change: the other side's effective name was the cdkd-generated fallback,
5775
+ * which cannot match a user-supplied name.
5776
+ */
5777
+ function budgetNameChanged(oldValue, newValue) {
5778
+ const nameOf = (value) => {
5779
+ if (value === null || typeof value !== "object") return void 0;
5780
+ const name = value["BudgetName"];
5781
+ return typeof name === "string" ? name : void 0;
5782
+ };
5783
+ const oldName = nameOf(oldValue);
5784
+ const newName = nameOf(newValue);
5785
+ if (oldName === void 0 && newName === void 0) return false;
5786
+ return oldName !== newName;
5787
+ }
5788
+ /**
5768
5789
  * Replacement rules registry
5769
5790
  *
5770
5791
  * Maps resource types to their replacement rules
@@ -5931,6 +5952,15 @@ var ReplacementRulesRegistry = class {
5931
5952
  "Tags"
5932
5953
  ])
5933
5954
  });
5955
+ this.rules.set("AWS::CodeCommit::Repository", {
5956
+ replacementProperties: /* @__PURE__ */ new Set([]),
5957
+ updateableProperties: new Set([
5958
+ "RepositoryName",
5959
+ "RepositoryDescription",
5960
+ "KmsKeyId",
5961
+ "Tags"
5962
+ ])
5963
+ });
5934
5964
  this.rules.set("AWS::ECR::Repository", {
5935
5965
  replacementProperties: new Set(["RepositoryName"]),
5936
5966
  updateableProperties: new Set([
@@ -6004,6 +6034,11 @@ var ReplacementRulesRegistry = class {
6004
6034
  "Tags"
6005
6035
  ])
6006
6036
  });
6037
+ this.rules.set("AWS::Budgets::Budget", {
6038
+ replacementProperties: /* @__PURE__ */ new Set(),
6039
+ updateableProperties: new Set(["NotificationsWithSubscribers", "ResourceTags"]),
6040
+ conditionalReplacements: new Map([["Budget", budgetNameChanged]])
6041
+ });
6007
6042
  this.rules.set("AWS::CloudWatch::Alarm", {
6008
6043
  replacementProperties: new Set(["AlarmName"]),
6009
6044
  updateableProperties: new Set([
@@ -7550,6 +7585,10 @@ function cfnRefValueFromPhysicalId(resourceType, physicalId, stateLookup) {
7550
7585
  const selectionId = stateLookup(["SelectionId"]);
7551
7586
  if (selectionId) return selectionId;
7552
7587
  }
7588
+ if (resourceType === "AWS::CodeCommit::Repository" && stateLookup) {
7589
+ const repositoryId = stateLookup(["RepositoryId"]);
7590
+ if (repositoryId) return repositoryId;
7591
+ }
7553
7592
  if (resourceType === "AWS::WAFv2::WebACL" && physicalId.startsWith("arn:")) {
7554
7593
  const { id, name, scope } = parseWebACLArn(physicalId);
7555
7594
  if (name && id) return `${name}|${id}|${scope}`;
@@ -9258,9 +9297,7 @@ const NON_PROVISIONABLE_TYPES = new Set([
9258
9297
  "AWS::Bedrock::ModelInvocationJob",
9259
9298
  "AWS::BedrockAgentCore::Browser",
9260
9299
  "AWS::BedrockAgentCore::CodeInterpreter",
9261
- "AWS::BedrockAgentCore::Evaluator",
9262
9300
  "AWS::BedrockAgentCore::TokenVault",
9263
- "AWS::Budgets::Budget",
9264
9301
  "AWS::Cloud9::EnvironmentEC2",
9265
9302
  "AWS::CloudFormation::Macro",
9266
9303
  "AWS::CloudFormation::WaitCondition",
@@ -9268,23 +9305,16 @@ const NON_PROVISIONABLE_TYPES = new Set([
9268
9305
  "AWS::CloudWatch::AnomalyDetector",
9269
9306
  "AWS::CodeBuild::ReportGroup",
9270
9307
  "AWS::CodeBuild::SourceCredential",
9271
- "AWS::CodeCommit::Repository",
9272
9308
  "AWS::CodeStar::GitHubRepository",
9273
9309
  "AWS::Config::ConfigurationRecorder",
9274
9310
  "AWS::Config::DeliveryChannel",
9275
9311
  "AWS::Config::OrganizationConfigRule",
9276
- "AWS::DataSync::Agent",
9277
- "AWS::DataSync::LocationEFS",
9278
- "AWS::DataSync::LocationFSxLustre",
9279
- "AWS::DataZone::ProjectProfile",
9280
9312
  "AWS::DAX::Cluster",
9281
9313
  "AWS::DAX::ParameterGroup",
9282
9314
  "AWS::DAX::SubnetGroup",
9283
- "AWS::Deadline::Queue",
9284
9315
  "AWS::DirectoryService::MicrosoftAD",
9285
9316
  "AWS::DMS::Endpoint",
9286
9317
  "AWS::DMS::EventSubscription",
9287
- "AWS::DMS::ReplicationConfig",
9288
9318
  "AWS::DMS::ReplicationInstance",
9289
9319
  "AWS::DMS::ReplicationSubnetGroup",
9290
9320
  "AWS::DMS::ReplicationTask",
@@ -9296,8 +9326,6 @@ const NON_PROVISIONABLE_TYPES = new Set([
9296
9326
  "AWS::EC2::ClientVpnTargetNetworkAssociation",
9297
9327
  "AWS::EC2::NetworkInterfacePermission",
9298
9328
  "AWS::EC2::VPNGatewayRoutePropagation",
9299
- "AWS::ECS::TaskSet",
9300
- "AWS::EKS::IdentityProviderConfig",
9301
9329
  "AWS::ElastiCache::SecurityGroup",
9302
9330
  "AWS::ElastiCache::SecurityGroupIngress",
9303
9331
  "AWS::ElasticLoadBalancingV2::ListenerCertificate",
@@ -9305,7 +9333,6 @@ const NON_PROVISIONABLE_TYPES = new Set([
9305
9333
  "AWS::EMR::Cluster",
9306
9334
  "AWS::EMR::InstanceFleetConfig",
9307
9335
  "AWS::EMR::InstanceGroupConfig",
9308
- "AWS::EventSchemas::Discoverer",
9309
9336
  "AWS::FSx::FileSystem",
9310
9337
  "AWS::FSx::Snapshot",
9311
9338
  "AWS::FSx::StorageVirtualMachine",
@@ -9334,10 +9361,6 @@ const NON_PROVISIONABLE_TYPES = new Set([
9334
9361
  "AWS::Greengrass::SubscriptionDefinition",
9335
9362
  "AWS::Greengrass::SubscriptionDefinitionVersion",
9336
9363
  "AWS::IAM::AccessKey",
9337
- "AWS::ImageBuilder::DistributionConfiguration",
9338
- "AWS::ImageBuilder::ImageRecipe",
9339
- "AWS::InspectorV2::CodeSecurityIntegration",
9340
- "AWS::InspectorV2::Filter",
9341
9364
  "AWS::IoT::PolicyPrincipalAttachment",
9342
9365
  "AWS::IoT::ThingPrincipalAttachment",
9343
9366
  "AWS::IoTThingsGraph::FlowTemplate",
@@ -9350,7 +9373,6 @@ const NON_PROVISIONABLE_TYPES = new Set([
9350
9373
  "AWS::LakeFormation::DataLakeSettings",
9351
9374
  "AWS::LakeFormation::Permissions",
9352
9375
  "AWS::LakeFormation::Resource",
9353
- "AWS::M2::Environment",
9354
9376
  "AWS::ManagedBlockchain::Member",
9355
9377
  "AWS::ManagedBlockchain::Node",
9356
9378
  "AWS::MediaConvert::JobTemplate",
@@ -9360,8 +9382,6 @@ const NON_PROVISIONABLE_TYPES = new Set([
9360
9382
  "AWS::MediaLive::Input",
9361
9383
  "AWS::MediaLive::InputSecurityGroup",
9362
9384
  "AWS::MediaStore::Container",
9363
- "AWS::NetworkFirewall::LoggingConfiguration",
9364
- "AWS::NetworkManager::LinkAssociation",
9365
9385
  "AWS::OpsWorks::App",
9366
9386
  "AWS::OpsWorks::ElasticLoadBalancerAttachment",
9367
9387
  "AWS::OpsWorks::Instance",
@@ -9397,13 +9417,8 @@ const NON_PROVISIONABLE_TYPES = new Set([
9397
9417
  "AWS::Redshift::ClusterSecurityGroup",
9398
9418
  "AWS::Redshift::ClusterSecurityGroupIngress",
9399
9419
  "AWS::Route53::RecordSetGroup",
9400
- "AWS::Route53Resolver::OutpostResolver",
9401
- "AWS::Route53Resolver::ResolverConfig",
9402
- "AWS::S3::AccessGrant",
9403
- "AWS::S3::AccessGrantsInstance",
9404
9420
  "AWS::SageMaker::CodeRepository",
9405
9421
  "AWS::SageMaker::EndpointConfig",
9406
- "AWS::SageMaker::ExperimentTrialComponent",
9407
9422
  "AWS::SageMaker::ModelCardExportJob",
9408
9423
  "AWS::SageMaker::MonitoringScheduleAlert",
9409
9424
  "AWS::SageMaker::NotebookInstance",
@@ -11164,6 +11179,14 @@ const PROPERTY_COVERAGE_BY_TYPE = new Map([
11164
11179
  ["Tags", "not yet implemented by cdkd"]
11165
11180
  ])
11166
11181
  }],
11182
+ ["AWS::Budgets::Budget", {
11183
+ handled: new Set([
11184
+ "Budget",
11185
+ "NotificationsWithSubscribers",
11186
+ "ResourceTags"
11187
+ ]),
11188
+ silentDrop: /* @__PURE__ */ new Map()
11189
+ }],
11167
11190
  ["AWS::CertificateManager::Certificate", {
11168
11191
  handled: new Set([
11169
11192
  "CertificateAuthorityArn",
@@ -11286,6 +11309,15 @@ const PROPERTY_COVERAGE_BY_TYPE = new Map([
11286
11309
  ["Visibility", "not yet implemented by cdkd"]
11287
11310
  ])
11288
11311
  }],
11312
+ ["AWS::CodeCommit::Repository", {
11313
+ handled: new Set([
11314
+ "KmsKeyId",
11315
+ "RepositoryDescription",
11316
+ "RepositoryName",
11317
+ "Tags"
11318
+ ]),
11319
+ silentDrop: new Map([["Code", "CFn-only seed-content orchestration (S3 zip unpacked into an initial commit on a chosen branch); not wired in v1 — pre-flight rejects templates carrying it so nothing is silently dropped; a follow-up could implement it via CreateCommit/PutFile"], ["Triggers", "repository trigger management not wired in v1 — pre-flight rejects templates carrying it so nothing is silently dropped; a follow-up could implement it via PutRepositoryTriggers"]])
11320
+ }],
11289
11321
  ["AWS::Cognito::UserPool", {
11290
11322
  handled: new Set([
11291
11323
  "AccountRecoverySetting",
@@ -16021,4 +16053,4 @@ var DeployEngine = class {
16021
16053
 
16022
16054
  //#endregion
16023
16055
  export { getDockerCmd as $, DiffCalculator as A, buildAssetRedirectMap as B, findActionableSilentDrops as C, resolveBucketRegion as Ct, refStateLookupFromResource as D, cfnRefValueFromPhysicalId as E, rebuildClientForBucketRegion as F, BOOTSTRAP_MARKER_PREFIX as G, loadPublishableAssetManifest as H, shouldRetainResource as I, parseBootstrapMarker as J, ensureAssetStorage as K, AssetPublisher as L, TemplateParser as M, LockManager as N, WAFv2WebACLProvider as O, S3StateBackend as P, formatDockerLoginError as Q, stringifyValue as R, ProviderRegistry as S, clearBucketRegionCache as St, IntrinsicFunctionResolver as T, rewriteTemplateAssetReferences as U, createAssetRedirectResolver as V, AssetModeResolver as W, validateContainerRepoName as X, validateAssetBucketName as Y, buildDockerImage as Z, green as _, CFN_TEMPLATE_URL_LIMIT as _t, withRetry as a, synthesisStatusMessage as at, IAMRoleProvider as b, uploadCfnTemplate as bt, computeImplicitDeleteEdges as c, resolveApp as ct, isStatefulRecreateTargetSync as d, resolveSkipPrefix as dt, runDockerForeground as et, renderStatefulReason as f, resolveStateBucketWithDefault as ft, gray as g, CFN_TEMPLATE_BODY_LIMIT as gt, cyan as h, warnDeprecatedNoPrefixCliFlag as ht, withResourceDeadline as i, Synthesizer as it, DagBuilder as j, applyRoleArnIfSet as k, extractDeploymentEventError as l, resolveAutoAssetStorage as lt, bold as m, resolveUseCdkBootstrapAssets as mt, DEFAULT_RESOURCE_WARN_AFTER_MS as n, AssetManifestLoader as nt, isRetryableTransientError as o, getDefaultStateBucketName as ot, formatResourceLine as p, resolveStateBucketWithDefaultAndSource as pt, getBootstrapMarkerKey as q, DeployEngine as r, getDockerImageBySourceHash as rt, IMPLICIT_DELETE_DEPENDENCIES as s, getLegacyStateBucketName as st, DEFAULT_RESOURCE_TIMEOUT_MS as t, runDockerStreaming as tt, MULTI_REGION_RECREATE_BLOCKED_TYPES as u, resolveCaptureObservedState as ut, red as v, MIGRATE_TMP_PREFIX as vt, CloudControlProvider as w, collectInlinePolicyNamesManagedBySiblings as x, AssemblyReader as xt, yellow as y, findLargeInlineResources as yt, WorkGraph as z };
16024
- //# sourceMappingURL=deploy-engine-8lyaaElh.js.map
16056
+ //# sourceMappingURL=deploy-engine-BxXIBZoc.js.map