@go-to-k/cdkd 0.94.2 → 0.94.3

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 CHANGED
@@ -17838,6 +17838,14 @@ var PATTERN_B_RESOURCE_TYPES = [
17838
17838
  "AWS::ElasticLoadBalancingV2::LoadBalancer",
17839
17839
  "AWS::ElasticLoadBalancingV2::TargetGroup"
17840
17840
  ];
17841
+ var PATTERN_B_NAME_PROPERTIES = {
17842
+ "AWS::IAM::Role": "RoleName",
17843
+ "AWS::IAM::User": "UserName",
17844
+ "AWS::IAM::Group": "GroupName",
17845
+ "AWS::IAM::InstanceProfile": "InstanceProfileName",
17846
+ "AWS::ElasticLoadBalancingV2::LoadBalancer": "Name",
17847
+ "AWS::ElasticLoadBalancingV2::TargetGroup": "Name"
17848
+ };
17841
17849
  function generateResourceName(name, options) {
17842
17850
  const {
17843
17851
  maxLength,
@@ -65532,6 +65540,12 @@ function findPendingPrefixRenames(stackName, state) {
65532
65540
  continue;
65533
65541
  if (!resource.physicalId.startsWith(prefix))
65534
65542
  continue;
65543
+ const nameProperty = PATTERN_B_NAME_PROPERTIES[resource.resourceType];
65544
+ if (!nameProperty)
65545
+ continue;
65546
+ const userSuppliedName = resource.properties?.[nameProperty];
65547
+ if (typeof userSuppliedName !== "string" || userSuppliedName === "")
65548
+ continue;
65535
65549
  const newPhysicalId = resource.physicalId.slice(prefix.length);
65536
65550
  if (newPhysicalId.length === 0)
65537
65551
  continue;
@@ -81162,7 +81176,7 @@ function reorderArgs(argv) {
81162
81176
  }
81163
81177
  async function main() {
81164
81178
  const program = new Command18();
81165
- program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.94.2");
81179
+ program.name("cdkd").description("CDK Direct - Deploy AWS CDK apps directly via SDK/Cloud Control API").version("0.94.3");
81166
81180
  program.addCommand(createBootstrapCommand());
81167
81181
  program.addCommand(createSynthCommand());
81168
81182
  program.addCommand(createListCommand());