cdk-real-drift 0.2.9 → 0.2.11

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
@@ -1946,10 +1946,15 @@ const DESCEND_UNDECLARED_OBJECT_PATHS = {
1946
1946
  "AWS::EKS::Cluster": new Set(["KubernetesNetworkConfig"]),
1947
1947
  "AWS::Athena::WorkGroup": new Set(["WorkGroupConfiguration"])
1948
1948
  };
1949
- const GENERATED_LOGICALID_PREFIX_PATHS = { "AWS::Cognito::UserPoolClient": new Set(["ClientName"]) };
1950
- const CFN_LOGICALID_RANDOM = /-[0-9A-Za-z]{12,}$/;
1949
+ const GENERATED_LOGICALID_PREFIX_PATHS = {
1950
+ "AWS::Cognito::UserPoolClient": new Set(["ClientName"]),
1951
+ "AWS::Cognito::IdentityPool": new Set(["IdentityPoolName"]),
1952
+ "AWS::Cognito::UserPool": new Set(["UserPoolName"]),
1953
+ "AWS::Batch::JobDefinition": new Set(["JobDefinitionName"])
1954
+ };
1955
+ const CFN_LOGICALID_RANDOM = /[-_][0-9A-Za-z]{12,}$/;
1951
1956
  function isLogicalIdPrefixedGeneratedName(value, logicalId) {
1952
- return typeof value === "string" && value.startsWith(`${logicalId}-`) && CFN_LOGICALID_RANDOM.test(value);
1957
+ return typeof value === "string" && (value.startsWith(`${logicalId}-`) || value.startsWith(`${logicalId}_`)) && CFN_LOGICALID_RANDOM.test(value);
1953
1958
  }
1954
1959
  const GENERATED_NESTED_PATHS = {
1955
1960
  "AWS::KMS::Key": new Set(["KeyPolicy.Id"]),