private static void initializeModel()

in aws-amplify-domain/src/main/java/software/amazon/amplify/domain/Translator.java [174:183]


  private static void initializeModel(ResourceModel model) {
    if (model.getAppId() == null || model.getDomainName() == null) {
      String arn = model.getArn();
      if (arn == null) {
        throw new CfnNotFoundException(ResourceModel.TYPE_NAME, null);
      }
      model.setAppId(ArnUtils.getAppId(arn, ARN_SPLIT_KEY));
      model.setDomainName(ArnUtils.getResourceName(arn, ARN_SPLIT_KEY));
    }
  }